From ee2aedc27eeb8c0c50bf662dfa3a2dcdcdb3ff91 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 15 Oct 2024 13:47:43 +0200 Subject: immediately update tile when canvas is paused --- TileDecayCommand.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TileDecayCommand.cpp b/TileDecayCommand.cpp index 9497121..e986cc5 100644 --- a/TileDecayCommand.cpp +++ b/TileDecayCommand.cpp @@ -5,6 +5,8 @@ void TileDecayCommand::execute(unsigned int x, unsigned int y) { Museum & museum = this->get_museum(); if (x >= museum.canvas.data.columns) return; if (y >= museum.canvas.data.rows) return; - museum.canvas.get_tile(x, y).step(nullptr); + Tile & tile = museum.canvas.get_tile(x, y); + tile.step(nullptr); + tile.update(); } -- cgit v1.2.3