Skip to content

Commit

Permalink
Update vehicle's last_update timepoint every turn
Browse files Browse the repository at this point in the history
  • Loading branch information
SurFlurer authored Jun 28, 2023
1 parent eddf858 commit a84b025
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7492,10 +7492,6 @@ void vehicle::update_time( const time_point &update_to )
return;
}

if( update_to >= update_from && update_to - update_from < 1_minutes ) {
// We don't need to check every turn
return;
}
time_duration elapsed = update_to - last_update;
last_update = update_to;

Expand Down

0 comments on commit a84b025

Please sign in to comment.