diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-15 17:00:11 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-15 17:00:11 +0200 |
commit | b34d3b09e7fc9d796d56157ca5f9adb864a31c76 (patch) | |
tree | 4cbfc46f3e824394520a409cff5667dba5e24ff1 /Museum.cpp | |
parent | 3d9a47f0f6dcb6e6e33bf2d2bd34fa903422ac62 (diff) |
more shuffling
Diffstat (limited to 'Museum.cpp')
-rw-r--r-- | Museum.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -18,14 +18,14 @@ Museum::~Museum() { void Museum::update() { this->people.update(); this->canvas.update(); + this->tick++; } -void Museum::time_jump(long offset) { - if (offset >= 0) { - this->jump = offset; - return; - } +void Museum::skip_forward() { + this->jump += this->snapshot_ticks; +} +void Museum::skip_backward() { } |