Skip to content

Commit

Permalink
Update vehicle::last_update after unfolding it.
Browse files Browse the repository at this point in the history
So the game does not think the vehicle came into the reality bubble just now and does not simulate the time since the last update (the point when it was folded).
This simulation would add electricity from solar panels and water from funnels.
  • Loading branch information
BevapDin committed Nov 25, 2018
1 parent 9f89194 commit 9b87013
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4519,6 +4519,7 @@ bool vehicle::restore( const std::string &data )
turn( 0 );
precalc_mounts( 0, pivot_rotation[0], pivot_anchor[0] );
precalc_mounts( 1, pivot_rotation[1], pivot_anchor[1] );
last_update = calendar::turn;
return true;
}

Expand Down

0 comments on commit 9b87013

Please sign in to comment.