mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Minor code format edits in ScriptExtender/LoadGameHook.cpp
This commit is contained in:
@@ -622,7 +622,7 @@ static void __declspec(naked) LootContainerHook_End() {
|
||||
cmp dword ptr [esp + 0x150 - 0x58 + 4], 0; // JESSE_CONTAINER
|
||||
jz skip; // container is not created
|
||||
_InLoop2(0, INTFACELOOT);
|
||||
xor eax,eax;
|
||||
xor eax, eax;
|
||||
skip:
|
||||
call ResetBodyState; // reset object pointer used in calculating the weight/size of equipped and hidden items on NPCs after exiting loot/barter screens
|
||||
retn 0x13C;
|
||||
|
||||
@@ -680,8 +680,8 @@ static DWORD __stdcall HandleMapUpdateForScripts(const DWORD procId) {
|
||||
onMapExit.invoke();
|
||||
}
|
||||
|
||||
RunGlobalScriptsAtProc(procId); // gl* scripts of types 0 and 3
|
||||
HookScripts::RunHookScriptsAtProc(procId); // all hs_ scripts
|
||||
RunGlobalScriptsAtProc(procId); // gl* scripts of types 0 and 3
|
||||
HookScripts::RunHookScriptsAtProc(procId); // all hs_ scripts
|
||||
|
||||
return procId; // restore eax (don't delete)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user