We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dd26ce commit 19b7403Copy full SHA for 19b7403
src/main.rs
@@ -373,14 +373,12 @@ fn move_bullets(world: &mut World) {
373
world.bullet[index].location.l -= 2;
374
world.bullet[index].energy -= 1;
375
376
- if world.bullet[index].location.c < world.map[world.bullet[index].location.l as usize].0
377
- || world.bullet[index].location.c
378
- >= world.map[world.bullet[index].location.l as usize].1
379
- {
+ if world.bullet[index].location.c < world.map[world.bullet[index].location.l as usize].0 ||
+ world.bullet[index].location.c >= world.map[world.bullet[index].location.l as usize].1 {
380
world.bullet.remove(index);
381
- }
382
383
+ }
384
}
385
386
fn welcome_screen(mut sc: &Stdout, world: &World) {
0 commit comments