X-Git-Url: https://plomlompom.com/repos/todo?a=blobdiff_plain;f=roguelike.c;h=4c294e5564aae21262c404ea3583f5f958e185f9;hb=f6ee23265cf2e798c7a9d2d9010add035cfeb68a;hp=9139cb30fce16383c056f8aaf2a7cd0c58358fe4;hpb=18a698f3107109f8cd6ba0d89e41386ac394cf02;p=plomrogue 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; }