diff options
Diffstat (limited to 'src/chunk.inl')
-rw-r--r-- | src/chunk.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chunk.inl b/src/chunk.inl index 3d40c30e..bbfec37a 100644 --- a/src/chunk.inl +++ b/src/chunk.inl @@ -1,6 +1,6 @@ #pragma once #include "chunk.hpp" -#include "anim-atlas.hpp" +#include "scenery.hpp" namespace floormat { @@ -30,7 +30,7 @@ void chunk::with_scenery_update(entity& s, F&& fun) if (bbox bb; !is_passability_modified()) if (bool b = _bbox_for_scenery(s, bb); b != b0 || bb != bb0) _replace_bbox(bb0, bb, b0, b); - if (!is_scenery_modified() && s.atlas->info().fps == 0 && s != s0) + if (!is_scenery_modified() && !s.is_dynamic() && s != s0) mark_scenery_modified(false); } |