summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-17 11:54:58 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-17 11:54:58 -0500
commit95aad715b636c7e1326b2675668bd0fa12349cf5 (patch)
tree100bf04c68acbf62eefd66a30cac6b9749a30c99 /graphics
parentwasm: fix C_INCLUDE_PATH for non wasm builds (diff)
downloadDungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.tar.gz
DungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.tar.bz2
DungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.zip
update min rust version to 1.88.0
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 1c10f57..a03d545 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -502,7 +502,7 @@ impl Renderer {
Direction::East => (1, 0),
Direction::West => (1, 1),
};
- if self.timer.since_start().as_millis() / 250 % 2 == 0 {
+ if (self.timer.since_start().as_millis() / 250).is_multiple_of(2) {
// entity animtion frame every 250 millis
ax += 2;
}