home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5412e81
)
Use more descriptive variable name.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Jun 2013 17:06:29 +0000
(19:06 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Jun 2013 17:06:29 +0000
(19:06 +0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index aef863e532f071a73b7d63f320666234b755b8b2..d7347261125487598cef36082a5f2c4d2c09c060 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-345,7
+345,7
@@
int main (int argc, char *argv[]) {
toggle_window(&win_meta, &win_log);
int key;
toggle_window(&win_meta, &win_log);
int key;
- unsigned char
result
;
+ unsigned char
quit_called
;
if (0 == world.interactive) {
int action;
while (1) {
if (0 == world.interactive) {
int action;
while (1) {
@@
-366,8
+366,8
@@
int main (int argc, char *argv[]) {
else if ('w' == action)
move_player(&world, 'w'); }
else
else if ('w' == action)
move_player(&world, 'w'); }
else
-
result
= meta_keys(key, &world, &win_meta, &win_keys, &win_map, &win_info, &win_log);
- if (1 ==
result
)
+
quit_called
= meta_keys(key, &world, &win_meta, &win_keys, &win_map, &win_info, &win_log);
+ if (1 ==
quit_called
)
break; } }
else {
uint32_t last_turn = 0;
break; } }
else {
uint32_t last_turn = 0;
@@
-388,8
+388,8
@@
int main (int argc, char *argv[]) {
else if (key == get_action_key(world.keybindings, "wait / next turn"))
player_wait (&world);
else
else if (key == get_action_key(world.keybindings, "wait / next turn"))
player_wait (&world);
else
-
result
= meta_keys(key, &world, &win_meta, &win_keys, &win_map, &win_info, &win_log);
- if (1 ==
result
)
+
quit_called
= meta_keys(key, &world, &win_meta, &win_keys, &win_map, &win_info, &win_log);
+ if (1 ==
quit_called
)
break; } }
free(map.cells);
break; } }
free(map.cells);