From: Christian Heller Date: Mon, 3 Jun 2013 17:02:51 +0000 (+0200) Subject: Corrected minor inconsistencies. X-Git-Tag: tce~1255 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/index.html?a=commitdiff_plain;h=5412e81a7b206b84e82c73ff322e0f34db71dcf3;p=plomrogue Corrected minor inconsistencies. --- diff --git a/roguelike.c b/roguelike.c index 23a686a..aef863e 100644 --- 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) { -// +// Append action to game record 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; - 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, '-');