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.46 by root, Sat Jul 3 01:12:44 2010 UTC vs.
Revision 1.47 by root, Sat Jul 3 13:14:35 2010 UTC

218 the_exit_up->x = upx; 218 the_exit_up->x = upx;
219 the_exit_up->y = upy; 219 the_exit_up->y = upy;
220 220
221 /* surround the exits with notices that this is a random map. */ 221 /* surround the exits with notices that this is a random map. */
222 for (int j = 1; j < 9; j++) 222 for (int j = 1; j < 9; j++)
223 {
224 if (!wall_blocked (map, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j])) 223 if (!wall_blocked (map, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j]))
225 { 224 {
226 object *random_sign = archetype::get (shstr_sign); 225 object *random_sign = archetype::get (shstr_sign);
227 random_sign->msg = format ("This is a random map.\nLevel: %d\n", RP->dungeon_level - 1); 226 random_sign->msg = format ("This is a random map.\nLevel: %d of %d.\n", RP->dungeon_level - 1, RP->dungeon_depth);
228 map->insert (random_sign, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j], 0, 0); 227 map->insert (random_sign, the_exit_up->x + freearr_x[j], the_exit_up->y + freearr_y[j], 0, 0);
229 } 228 }
230 }
231 229
232 /* Block the exit so things don't get dumped on top of it. */ 230 /* Block the exit so things don't get dumped on top of it. */
233 the_exit_up->move_block = MOVE_ALL; 231 the_exit_up->move_block = MOVE_ALL;
234 232
235 insert_ob_in_map (the_exit_up, map, NULL, 0); 233 insert_ob_in_map (the_exit_up, map, NULL, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines