rotators / Fo1in2

Fallout 1 to 2 engine conversion
https://nma-fallout.com/threads/218045/
585 stars 30 forks source link

Attacked by the guard in Killian's store for no reason #139

Closed NovaRain closed 2 years ago

NovaRain commented 2 years ago

The bug is duo to the line 114 in JTGENGRD.ssl: https://github.com/rotators/Fo1in2/blob/cdefba1bdf8806596467cacc530c9c651f06fbde/Fallout2/Fallout1in2/Mapper/source/scripts/03junktown/JTGENGRD.ssl#L114 Killian's store is open from 0700 to 1900, but the day macro is defined in command.h as 0700-1800: https://github.com/rotators/Fo1in2/blob/cdefba1bdf8806596467cacc530c9c651f06fbde/Fallout2/Fallout1in2/Mapper/source/scripts/headers/command.h#L597 So if you go to the store between 1800 and 1900, you will get attacked by the guard inside the store for "trespassing at night".

The conditions should be

if ((game_time_hour >= 1900) or (game_time_hour < 700) and (tmp_hostile != 1) and self_can_see_dude) then begin