X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=roguelike.c;h=aef863e532f071a73b7d63f320666234b755b8b2;hb=5412e81a7b206b84e82c73ff322e0f34db71dcf3;hp=23a686a468ec8e4dc0ad357cfdf66b258451a9c4;hpb=cc54db8c41c3d0e00248422b6dc1a67187cd4e16;p=plomrogue 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, '-');