--- deliantra/server/random_maps/exit.C 2016/11/16 23:42:02 1.55 +++ deliantra/server/random_maps/exit.C 2018/11/17 23:40:02 1.57 @@ -1,6 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * + * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2001 Mark Wedel & Crossfire Development Team * Copyright (©) 1992 Frank Tore Johansen @@ -225,11 +226,11 @@ /* surround the exits with notices that this is a random map. */ for (int j = 1; j < 9; j++) - if (!wall_blocked (map, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j])) + if (!wall_blocked (map, the_exit_up->x + DIRX (j), the_exit_up->y + DIRY (j))) { object *random_sign = archetype::get (shstr_sign); random_sign->msg = format ("This is a random map.\nLevel: %d of %d.\n", RP->dungeon_level - 1, RP->dungeon_depth); - map->insert (random_sign, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j], 0, 0); + map->insert (random_sign, the_exit_up->x + DIRX (j), the_exit_up->y + DIRY (j), 0, 0); } /* Block the exit so things don't get dumped on top of it. */ @@ -281,8 +282,8 @@ { int i = rmg_find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1); - the_exit_down->x = downx + freearr_x[i]; - the_exit_down->y = downy + freearr_y[i]; + the_exit_down->x = downx + DIRX (i); + the_exit_down->y = downy + DIRY (i); RP->set ("origin_x", (IV)the_exit_down->x); RP->set ("origin_y", (IV)the_exit_down->y);