From: Christian Heller Date: Thu, 16 May 2013 00:29:01 +0000 (+0200) Subject: Corrected mixed up coordinates. X-Git-Tag: tce~1301 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/processes?a=commitdiff_plain;h=849f93dcd5195f5237bdf8324bfbac2fbf2d611c;p=plomrogue Corrected mixed up coordinates. --- diff --git a/roguelike.c b/roguelike.c index 9fb9d31..fc5ce00 100644 --- a/roguelike.c +++ b/roguelike.c @@ -317,7 +317,7 @@ char * get_keyname(int keycode) { sprintf(keyname, "(unknown)"); return keyname; } -char is_passable (struct World * world, int y, int x) { +char is_passable (struct World * world, int x, int y) { // Check if coordinate on (or beyond) map is accessible to movement. char passable = 0; if (0 <= x && x < world->map->width && 0 <= y && y < world->map->height)