home · contact · privacy
Made if-else-order more clear.
[plomrogue] / roguelike.c
index cd96364a9979221903bbc07ecf17f5e16fe568fd..5203b4b66279fc7010be005331ae1423afbb0d1e 100644 (file)
@@ -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++; }