Reverted the change in Tiles.cpp from previous commit.

This commit is contained in:
NovaRain
2019-05-10 10:44:34 +08:00
parent efe00b9faf
commit 1891612f38
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -631,7 +631,7 @@ DontTurnOffSneakIfYouRun=0
;Set to 0 to disable switching. (Default is 3)
UseWalkDistance=3
;Set to 1 to fix the bug that unable to sell used geiger counters or stealth boys
;Set to 1 to fix the bug of being unable to sell used geiger counters or stealth boys
CanSellUsedGeiger=1
;Set to 1 to fix the issue with being able to charge the car by using cells on other scenary/critters
+3 -3
View File
@@ -2283,9 +2283,9 @@ void BugFixesInit()
MakeCall(0x4130E5, action_explode_hack1);
dlogr(" Done", DL_INIT);
// Fix for unable to sell used geiger counters or stealth boys
// Fix for being unable to sell used geiger counters or stealth boys
if (GetPrivateProfileIntA("Misc", "CanSellUsedGeiger", 1, ini)) {
dlog("Applying fix for unable to sell used geiger counters or stealth boys.", DL_INIT);
dlog("Applying fix for being unable to sell used geiger counters or stealth boys.", DL_INIT);
SafeWrite8(0x478115, 0xBA);
SafeWrite8(0x478138, 0xBA);
MakeJump(0x474D22, barter_attempt_transaction_hack);
@@ -2444,7 +2444,7 @@ void BugFixesInit()
SafeWrite8(0x4C1015, 0x90);
HookCall(0x4C1042, wmSetupRandomEncounter_hook);
// Fix for unable to sell/give items in the barter screen when the player/party member is overloaded
// Fix for being unable to sell/give items in the barter screen when the player/party member is overloaded
HookCall(0x474C73, barter_attempt_transaction_hook_weight);
HookCall(0x474CCA, barter_attempt_transaction_hook_weight);
+1 -1
View File
@@ -205,7 +205,7 @@ static int ProcessTile(sArt* tiles, int tile, int listpos) {
frame.height = ByteSwapW(36);
frame.width = ByteSwapW(80);
frame.frameSize = ByteSwapD(80 * 36);
frame.frameAreaSize = frame.frameSize + 12;
frame.frameAreaSize = ByteSwapD(80 * 36 + 12);
int xoffset = x * 48 + (ysize - (y + 1)) * 32;
int yoffset = height - (36 + x * 12 + y * 24);
for (int y2 = 0; y2 < 36; y2++) {