diff options
Diffstat (limited to 'src/world.rs')
| -rw-r--r-- | src/world.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/world.rs b/src/world.rs index 9f86cb8..40d600a 100644 --- a/src/world.rs +++ b/src/world.rs @@ -47,6 +47,10 @@ impl <'a, 'b>World<'a, 'b> { if let Ok(state) = self.persistence.load_room(id.clone()){ room.load_saved(&state); } + let last_time = self.timestamp - 1; + if room.get_time() < last_time { + room.update(last_time); + } self.rooms.insert(id.clone(), room); } self.rooms.get_mut(id).ok_or(aerr!("can't get room after loading it")) |
