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.55 by root, Wed Nov 16 23:42:02 2016 UTC vs.
Revision 1.56 by root, Sat Sep 16 22:17:42 2017 UTC

223 the_exit_up->x = upx; 223 the_exit_up->x = upx;
224 the_exit_up->y = upy; 224 the_exit_up->y = upy;
225 225
226 /* surround the exits with notices that this is a random map. */ 226 /* surround the exits with notices that this is a random map. */
227 for (int j = 1; j < 9; j++) 227 for (int j = 1; j < 9; j++)
228 if (!wall_blocked (map, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j])) 228 if (!wall_blocked (map, the_exit_up->x + DIRX (j), the_exit_up->y + DIRY (j)))
229 { 229 {
230 object *random_sign = archetype::get (shstr_sign); 230 object *random_sign = archetype::get (shstr_sign);
231 random_sign->msg = format ("This is a random map.\nLevel: %d of %d.\n", RP->dungeon_level - 1, RP->dungeon_depth); 231 random_sign->msg = format ("This is a random map.\nLevel: %d of %d.\n", RP->dungeon_level - 1, RP->dungeon_depth);
232 map->insert (random_sign, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j], 0, 0); 232 map->insert (random_sign, the_exit_up->x + DIRX (j), the_exit_up->y + DIRY (j), 0, 0);
233 } 233 }
234 234
235 /* Block the exit so things don't get dumped on top of it. */ 235 /* Block the exit so things don't get dumped on top of it. */
236 the_exit_up->move_block = MOVE_ALL; 236 the_exit_up->move_block = MOVE_ALL;
237 237
279 279
280 if (the_exit_down) 280 if (the_exit_down)
281 { 281 {
282 int i = rmg_find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1); 282 int i = rmg_find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1);
283 283
284 the_exit_down->x = downx + freearr_x[i]; 284 the_exit_down->x = downx + DIRX (i);
285 the_exit_down->y = downy + freearr_y[i]; 285 the_exit_down->y = downy + DIRY (i);
286 286
287 RP->set ("origin_x", (IV)the_exit_down->x); 287 RP->set ("origin_x", (IV)the_exit_down->x);
288 RP->set ("origin_y", (IV)the_exit_down->y); 288 RP->set ("origin_y", (IV)the_exit_down->y);
289 289
290 the_exit_down->msg = RP->as_shstr (); 290 the_exit_down->msg = RP->as_shstr ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines