summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/render.rs')
-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;
}