ALiVEOS / ALiVE.OS

ALiVE Open Source GPL v2
http://alivemod.com/
Other
160 stars 80 forks source link

[mil_command] Fix fnc_ambush typo causing premature timeout #788

Closed ttrebuchon closed 1 year ago

ttrebuchon commented 1 year ago

Rather than waiting until 1800 seconds had passed since the code started, it would wait until 3600 seconds had passed since mission start. Any executions after 3600 seconds (an hour) would finish the timeout after a single "sleep 10" call, essentially immediately deleting the bombs.

New code ensures that the timeout period is _timeout (1800) since ambush start instead.

DarrellJMartin commented 1 year ago

Merged for public testing