X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/git-logo.png?a=blobdiff_plain;f=roguelike.c;h=5203b4b66279fc7010be005331ae1423afbb0d1e;hb=54aa7a81ed47dc6cdc9cc332806a0c1771a1ec3c;hp=cd96364a9979221903bbc07ecf17f5e16fe568fd;hpb=a09638673d6c79fcf430299c63aab915e2ca19ba;p=plomrogue diff --git a/roguelike.c b/roguelike.c index cd96364..5203b4b 100644 --- a/roguelike.c +++ b/roguelike.c @@ -146,7 +146,6 @@ void update_info (struct World * world) { // Update info data by incrementing turn value. world->turn++; } -//void update_log (struct Win * win, char * text) { void update_log (struct World * world, char * text) { // Update log with new text to be appended. char * new_text; @@ -276,7 +275,7 @@ void init_keybindings(struct World * world) { keycount++; digicount = 0; commcount = 0; } - else if (-1 != digicount) + else if (-1 != digicount) { if (' ' == c) { key = 0; digimax = digicount - 1; @@ -286,7 +285,7 @@ void init_keybindings(struct World * world) { digicount = -1; } else { digits[digicount] = c; - digicount++; } + digicount++; } } else { command[commcount] = c; commcount++; }