mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
dont savestate at 0s
This commit is contained in:
parent
792c25b40b
commit
37173fc72c
@ -203,7 +203,7 @@ impl Sim {
|
||||
|
||||
// Savestate?
|
||||
if let Some(t) = self.savestate_every {
|
||||
if self.time.is_multiple_of(t) {
|
||||
if self.time.is_multiple_of(t) && self.time != Tick::zero() {
|
||||
self.save();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user