Added a new setting to DebugMode to send debug output to both the screen and the debug log (from Crafty)

Simplified the code for ObjCanSeeObj_ShootThru_Fix a bit (from Mr.Stalin)
Changed sfall to not to create sfallfs.sav when UseFileSystemOverride is not enabled.
Updated item highlighting mod to be disabled while in the loot screen.
This commit is contained in:
NovaRain
2018-10-27 09:43:12 +08:00
parent a60f58c0eb
commit 919384bac7
8 changed files with 49 additions and 32 deletions
+9 -1
View File
@@ -67,7 +67,7 @@ procedure KeyPressHandler begin
scanCode := get_sfall_arg,
scanner, charges;
if scanCode == highlightKey then begin
if scanCode == highlightKey and not(get_game_mode bwand INTFACELOOT) then begin
if pressed then begin
isHighlight := true;
if motionScanner then begin
@@ -105,6 +105,13 @@ procedure CombatTurnHandler begin
end
end
procedure GameModeChangeHandler begin
if isHighlight and (get_game_mode bwand INTFACELOOT) then begin
isHighlight := false;
call ToggleHighlight(false);
end
end
procedure start begin
if game_loaded and (sfall_ver_major >= 4) then begin
call InitConfigs;
@@ -122,5 +129,6 @@ procedure start begin
register_hook_proc(HOOK_KEYPRESS, KeyPressHandler);
register_hook_proc(HOOK_COMBATTURN, CombatTurnHandler);
register_hook_proc(HOOK_GAMEMODECHANGE, GameModeChangeHandler);
end
end