summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-30 16:29:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-30 16:30:25 +0100
commit13042bb941068e7f36ca7b292301a9aba0f4b3d5 (patch)
tree1897c4b27908cc09a8e2f5038633298a8408e8b2
parent3299d6e6be7281bd0b670ded9f2c0bc431514de1 (diff)
scenery: clear 'closing' flag when finished
-rw-r--r--src/scenery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index 23967af8..4056f49f 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -82,7 +82,7 @@ void scenery::update(float dt, const anim_atlas& anim)
blocks_view = !passable;
frame = (frame_t)std::clamp(fr, 0, nframes-1);
if (!active)
- delta = 0;
+ delta = closing = 0;
break;
}
}