projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6e31d5
)
Weiterkommen wieder möglich.
author
Wintermute
<wintermute@hannover.ccc.de>
Sat, 19 Oct 2013 13:27:21 +0000
(15:27 +0200)
committer
Wintermute
<wintermute@hannover.ccc.de>
Sat, 19 Oct 2013 13:27:21 +0000
(15:27 +0200)
badge/jumpnrun/jumpnrun.c
patch
|
blob
|
history
diff --git
a/badge/jumpnrun/jumpnrun.c
b/badge/jumpnrun/jumpnrun.c
index
28d5976
..
d3fa992
100644
(file)
--- a/
badge/jumpnrun/jumpnrun.c
+++ b/
badge/jumpnrun/jumpnrun.c
@@
-338,14
+338,13
@@
uint8_t jumpnrun_play(char const *lvname) {
jumpnrun_game_state gs;
memset(&gs, 0, sizeof(gs));
- for(gs.lives = 3; gs.lives != 0; --gs.lives) {
+ for(gs.lives = 3; gs.
status != JUMPNRUN_WON && gs.
lives != 0; --gs.lives) {
gs.status = JUMPNRUN_PLAYING;
gs.left = 0;
memset(&gs.player, 0, sizeof(gs.player));
gs.player.current_box = rectangle_new(lv.start_pos,
hacker_extents());
-
for(size_t i = 0; i < lv.header.enemy_count; ++i) {
lv.enemies[i].flags = 0;
}
This page took
0.025396 seconds
and
4
git commands to generate.