From f6ee23265cf2e798c7a9d2d9010add035cfeb68a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 6 Jun 2013 09:03:18 +0200 Subject: [PATCH] Corrected parentheses. --- roguelike.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roguelike.c b/roguelike.c index 9139cb3..4c294e5 100644 --- 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.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; } -- 2.30.2