diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-17 11:54:58 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-17 11:54:58 -0500 |
| commit | 95aad715b636c7e1326b2675668bd0fa12349cf5 (patch) | |
| tree | 100bf04c68acbf62eefd66a30cac6b9749a30c99 /graphics/src/render.rs | |
| parent | wasm: fix C_INCLUDE_PATH for non wasm builds (diff) | |
| download | DungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.tar.gz DungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.tar.bz2 DungeonCrawl-95aad715b636c7e1326b2675668bd0fa12349cf5.zip | |
update min rust version to 1.88.0
Diffstat (limited to 'graphics/src/render.rs')
| -rw-r--r-- | graphics/src/render.rs | 2 |
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; } |