-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Phobos-developers/develop
merge from phobos main repo
- Loading branch information
Showing
7 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
/* Allow usage of TileSet of 255 and above without making NE-SW broken bridges unrepairable | ||
When TileSet number crosses 255 in theater INI files, the NE-SW broken bridges | ||
become non-repairable. The reason is that the NonMarbleMadnessTile array of size 256 | ||
overflows when filled and affects the variables like BridgeTopRight1 and BridgeBottomLeft2 | ||
that come after it. This patch removes the filling of the unused NonMarbleMadnessTile array | ||
and its references. | ||
*/ | ||
|
||
#include <Helpers/Macro.h> | ||
|
||
DEFINE_HOOK(545CE2, Tileset255Fix_RemoveNonMMArrayFill, 0) | ||
{ | ||
return 0x545CE9; | ||
} | ||
|
||
DEFINE_HOOK(546C23, Tileset255Fix_RefNonMMArray, 0) | ||
{ | ||
return 0x546C8B; | ||
} |