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
+2 -2
View File
@@ -666,8 +666,8 @@ GlobalScriptPaths=scripts\gl*.int,scripts\sfall\gl*.int
Enable=0
;Fallout 2 Debug Patch
;Set to 1 to enable debugging output to screen or 2 to create a debug.log file
;While you don't need to create an environment variable, you do still need to set the appropriate lines in fallout2.cfg
;Set to 1 to send debug output to the screen, 2 to a debug.log file, or 3 to both the screen and a debug.log file
;While you don't need to create an environment variable, you do still need to set the appropriate lines in fallout2.cfg:
;-------
;[debug]
;mode=environment
Binary file not shown.
+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