Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580ab3f
)
Bugfix
author
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sat, 2 Jan 2021 18:36:46 +0000
(19:36 +0100)
committer
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sat, 2 Jan 2021 18:36:46 +0000
(19:36 +0100)
0..<any negative number> is the same as 0..0
src/game/app.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/game/app.rs
b/src/game/app.rs
index
438f2e7
..
e1fafdc
100644
(file)
--- 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();
}
}