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 (from parent 1:
549e294
)
Corrected minor inconsistencies.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Jun 2013 17:02:51 +0000
(19:02 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 3 Jun 2013 17:02:51 +0000
(19:02 +0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 23a686a468ec8e4dc0ad357cfdf66b258451a9c4..aef863e532f071a73b7d63f320666234b755b8b2 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-173,7
+173,7
@@
char is_passable (struct World * world, uint16_t x, uint16_t y) {
return passable; }
void record_action (char action) {
return passable; }
void record_action (char action) {
-//
+//
Append action to game record file.
FILE * file = fopen("record", "a");
fputc(action, file);
fclose(file); }
FILE * file = fopen("record", "a");
fputc(action, file);
fclose(file); }
@@
-241,7
+241,7
@@
unsigned char meta_keys(int key, struct World * world, struct WinMeta * win_meta
// Call some meta program / window management actions dependent on key. Return 1 to signal quitting.
if (key == get_action_key(world->keybindings, "quit"))
return 1;
// Call some meta program / window management actions dependent on key. Return 1 to signal quitting.
if (key == get_action_key(world->keybindings, "quit"))
return 1;
- if (key == get_action_key(world->keybindings, "scroll pad right"))
+
else
if (key == get_action_key(world->keybindings, "scroll pad right"))
scroll_pad (win_meta, '+');
else if (key == get_action_key(world->keybindings, "scroll pad left"))
scroll_pad (win_meta, '-');
scroll_pad (win_meta, '+');
else if (key == get_action_key(world->keybindings, "scroll pad left"))
scroll_pad (win_meta, '-');