From: Tomas Wenström Date: Sat, 2 Jan 2021 18:36:46 +0000 (+0100) Subject: Bugfix X-Git-Url: http://git.dolda2000.com/gitweb/?p=kaka%2Frust-sdl-test.git;a=commitdiff_plain;h=5cbbebbe00b5f27d1f9c7dfcfc3855e505a0045a Bugfix 0.. is the same as 0..0 --- diff --git a/src/game/app.rs b/src/game/app.rs index 438f2e7..e1fafdc 100644 --- a/src/game/app.rs +++ b/src/game/app.rs @@ -83,7 +83,7 @@ impl ActiveState { self.add_boll(); } } else if delta < 0 { - for _i in 0..delta { + for _i in 0..(-delta) { self.bolls.pop(); } }