--- deliantra/server/random_maps/exit.C 2010/07/05 00:07:21 1.49 +++ deliantra/server/random_maps/exit.C 2011/04/23 04:56:52 1.52 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2001 Mark Wedel & Crossfire Development Team * Copyright (©) 1992 Frank Tore Johansen * @@ -23,7 +23,7 @@ */ #include -#include +#include #include #include @@ -211,9 +211,9 @@ /* find an empty place far from the center */ if (upx == 1 && upy == 1) find_in_layout (1, 0, upx, upy, maze); - else if (upx == 1 && upy > 1) find_in_layout (4, 0, upx, upy, maze); else if (upx > 1 && upy == 1) find_in_layout (2, 0, upx, upy, maze); else if (upx > 1 && upy > 1) find_in_layout (3, 0, upx, upy, maze); + else if (upx == 1 && upy > 1) find_in_layout (4, 0, upx, upy, maze); } /* no indication of where to place the exit, so just place it. */ @@ -268,9 +268,9 @@ /* find an empty place far from the entrance */ if (downx == 1 && downy == 1) find_in_layout (1, 0, downx, downy, maze); - else if (downx == 1 && downy > 1) find_in_layout (4, 0, downx, downy, maze); else if (downx > 1 && downy == 1) find_in_layout (2, 0, downx, downy, maze); else if (downx > 1 && downy > 1) find_in_layout (3, 0, downx, downy, maze); + else if (downx == 1 && downy > 1) find_in_layout (4, 0, downx, downy, maze); } /* no indication of where to place the down exit, so just place it */