home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb21eb
)
Made if-else-order more clear.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 11 May 2013 08:24:25 +0000
(10:24 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 11 May 2013 08:24:25 +0000
(10:24 +0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 740b9571c81af32ce22a274b778327adfb9a488d..5203b4b66279fc7010be005331ae1423afbb0d1e 100644
(file)
--- 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++; }