From: Christian Heller Date: Thu, 6 Jun 2013 07:03:18 +0000 (+0200) Subject: Corrected parentheses. X-Git-Tag: tce~1250 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/copy_structured?a=commitdiff_plain;h=f6ee23265cf2e798c7a9d2d9010add035cfeb68a;p=plomrogue Corrected parentheses. --- 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; }