Skip to content

Commit

Permalink
Fix script timers being delayed when loading saves
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jul 19, 2016
1 parent 39fb9a0 commit a499c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/ChangeLevel.cpp
Expand Up @@ -2142,7 +2142,7 @@ static Entity * ARX_CHANGELEVEL_Pop_IO(const std::string & idString, EntityInsta
// TODO if the script has changed since the last save, this position may be invalid

const unsigned long tim = checked_range_cast<unsigned long>(ats->tim);
const ArxInstant tt = ARX_CHANGELEVEL_DesiredTime + tim;
const ArxInstant tt = (ARX_CHANGELEVEL_DesiredTime + tim) - ats->msecs;
scr_timer[num].tim = tt;

scr_timer[num].times = ats->times;
Expand Down

0 comments on commit a499c23

Please sign in to comment.