BGforgeNet / Fallout2_Restoration_Project

Fallout 2 Restoration Project, updated
https://forums.bgforge.net/viewforum.php?f=39
583 stars 38 forks source link

EPA holograms: fixed duplicating timer events #288

Closed phobos2077 closed 5 months ago

phobos2077 commented 5 months ago

This fixes holograms spitting multiple floaters at a time, making them hard to read.

start function is called on every map or save load, multiple times even. While all timer events are persistent, they are saved to a save game.

phobos2077 commented 5 months ago

For some reason removing timer events is not working from within map_enter_p_proc, that's why it is necessary to call from timed_event_p_proc (to fix the issue for existing saves). My guess is timers aren't fully loaded at that point.