Skip to content

Commit

Permalink
updated gl_0 with @NovaRain suggestion which i missed previously
Browse files Browse the repository at this point in the history
  • Loading branch information
wipe2238 committed Jul 5, 2024
1 parent d186774 commit 532060d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ procedure error_DisableHorrigan;
procedure error_UseFileSystemOverride;
procedure error_Fallout1Behavior;
procedure force_settings;
procedure force_crash;

procedure start begin
variable init;
Expand Down Expand Up @@ -75,4 +76,10 @@ procedure force_settings begin

set_ini_setting("ddraw.ini|Debugging|AllowUnsafeScripting", 1);
signal_close_game;
// deliberately crash the game for older sfall
call force_crash in 3;
end

procedure force_crash begin
variable panik := read(0xBADCF6);
end

3 comments on commit 532060d

@NovaRain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd ditch the "leet-speak" address and use a more foolproof one, e.g. read_int(1).

@wipe2238
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to make it easily recognizable, "attempt to read 0x1" can be anything, from script bug to cosmic rays :(

@wipe2238
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, 3708a8d; i just hope sslc won't optimize it out, didn't really test :S

Please sign in to comment.