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:
18a698f
)
Corrected parentheses.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Jun 2013 07:03:18 +0000
(09:03 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Jun 2013 07:03:18 +0000
(09:03 +0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 9139cb30fce16383c056f8aaf2a7cd0c58358fe4..4c294e5564aae21262c404ea3583f5f958e185f9 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-122,7
+122,7
@@
struct Map init_map () {
( (curpos >= map.width && '.' == map.cells[curpos - map.width])
|| (curpos < map.width * (map.height - 1) && '.' == map.cells[curpos + map.width])
|| (curpos > 0 && '.' == map.cells[curpos - 1] && curpos % map.width != 0)
( (curpos >= map.width && '.' == map.cells[curpos - map.width])
|| (curpos < map.width * (map.height - 1) && '.' == map.cells[curpos + map.width])
|| (curpos > 0 && '.' == map.cells[curpos - 1] && curpos % map.width != 0)
- || (curpos < (map.width * map.height) && '.' == map.cells[curpos + 1]
) && (curpos + 1) % map.width != 0
))
+ || (curpos < (map.width * map.height) && '.' == map.cells[curpos + 1]
&& (curpos + 1) % map.width != 0)
))
map.cells[y * map.width + x] = '.'; }
return map; }
map.cells[y * map.width + x] = '.'; }
return map; }