From: Christian Heller Date: Sat, 11 May 2013 08:24:25 +0000 (+0200) Subject: Made if-else-order more clear. X-Git-Tag: tce~1314 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/reset_cookie?a=commitdiff_plain;h=54aa7a81ed47dc6cdc9cc332806a0c1771a1ec3c;p=plomrogue Made if-else-order more clear. --- diff --git a/roguelike.c b/roguelike.c index 740b957..5203b4b 100644 --- a/roguelike.c +++ b/roguelike.c @@ -275,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; @@ -285,7 +285,7 @@ void init_keybindings(struct World * world) { digicount = -1; } else { digits[digicount] = c; - digicount++; } + digicount++; } } else { command[commcount] = c; commcount++; }