ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/exit.C
(Generate patch)

Comparing deliantra/server/random_maps/exit.C (file contents):
Revision 1.49 by root, Mon Jul 5 00:07:21 2010 UTC vs.
Revision 1.50 by root, Mon Jul 5 00:09:54 2010 UTC

209 else 209 else
210 upy = RP->Ysize - 2; 210 upy = RP->Ysize - 2;
211 211
212 /* find an empty place far from the center */ 212 /* find an empty place far from the center */
213 if (upx == 1 && upy == 1) find_in_layout (1, 0, upx, upy, maze); 213 if (upx == 1 && upy == 1) find_in_layout (1, 0, upx, upy, maze);
214 else if (upx == 1 && upy > 1) find_in_layout (4, 0, upx, upy, maze);
215 else if (upx > 1 && upy == 1) find_in_layout (2, 0, upx, upy, maze); 214 else if (upx > 1 && upy == 1) find_in_layout (2, 0, upx, upy, maze);
216 else if (upx > 1 && upy > 1) find_in_layout (3, 0, upx, upy, maze); 215 else if (upx > 1 && upy > 1) find_in_layout (3, 0, upx, upy, maze);
216 else if (upx == 1 && upy > 1) find_in_layout (4, 0, upx, upy, maze);
217 } 217 }
218 218
219 /* no indication of where to place the exit, so just place it. */ 219 /* no indication of where to place the exit, so just place it. */
220 if (upx == -1) 220 if (upx == -1)
221 find_in_layout (0, 0, upx, upy, maze); 221 find_in_layout (0, 0, upx, upy, maze);
266 else 266 else
267 downy = RP->Ysize - 2; 267 downy = RP->Ysize - 2;
268 268
269 /* find an empty place far from the entrance */ 269 /* find an empty place far from the entrance */
270 if (downx == 1 && downy == 1) find_in_layout (1, 0, downx, downy, maze); 270 if (downx == 1 && downy == 1) find_in_layout (1, 0, downx, downy, maze);
271 else if (downx == 1 && downy > 1) find_in_layout (4, 0, downx, downy, maze);
272 else if (downx > 1 && downy == 1) find_in_layout (2, 0, downx, downy, maze); 271 else if (downx > 1 && downy == 1) find_in_layout (2, 0, downx, downy, maze);
273 else if (downx > 1 && downy > 1) find_in_layout (3, 0, downx, downy, maze); 272 else if (downx > 1 && downy > 1) find_in_layout (3, 0, downx, downy, maze);
273 else if (downx == 1 && downy > 1) find_in_layout (4, 0, downx, downy, maze);
274 } 274 }
275 275
276 /* no indication of where to place the down exit, so just place it */ 276 /* no indication of where to place the down exit, so just place it */
277 if (downx == -1) 277 if (downx == -1)
278 find_in_layout (0, 0, downx, downy, maze); 278 find_in_layout (0, 0, downx, downy, maze);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines