home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made if-else-order more clear.
[plomrogue]
/
roguelike.c
diff --git
a/roguelike.c
b/roguelike.c
index cd96364a9979221903bbc07ecf17f5e16fe568fd..5203b4b66279fc7010be005331ae1423afbb0d1e 100644
(file)
--- 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++; }
// 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;
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; }
keycount++;
digicount = 0;
commcount = 0; }
- else if (-1 != digicount)
+ else if (-1 != digicount)
{
if (' ' == c) {
key = 0;
digimax = digicount - 1;
if (' ' == c) {
key = 0;
digimax = digicount - 1;
@@
-286,7
+285,7
@@
void init_keybindings(struct World * world) {
digicount = -1; }
else {
digits[digicount] = c;
digicount = -1; }
else {
digits[digicount] = c;
- digicount++; }
+ digicount++; }
}
else {
command[commcount] = c;
commcount++; }
else {
command[commcount] = c;
commcount++; }