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

Comparing deliantra/server/server/rune.C (file contents):
Revision 1.12 by root, Mon Dec 18 03:00:02 2006 UTC vs.
Revision 1.13 by root, Wed Dec 20 09:14:22 2006 UTC

65 { 65 {
66 new_draw_info (NDI_UNIQUE, 0, op, "Can't make a rune there!"); 66 new_draw_info (NDI_UNIQUE, 0, op, "Can't make a rune there!");
67 return 0; 67 return 0;
68 } 68 }
69 69
70 for (tmp = get_map_ob (m, nx, ny); tmp != NULL; tmp = tmp->above) 70 for (tmp = GET_MAP_OB (m, nx, ny); tmp != NULL; tmp = tmp->above)
71 if (tmp->type == RUNE) 71 if (tmp->type == RUNE)
72 break; 72 break;
73 73
74 if (tmp) 74 if (tmp)
75 { 75 {
357 { 357 {
358 new_draw_info (NDI_UNIQUE, 0, op, "There's nothing there!"); 358 new_draw_info (NDI_UNIQUE, 0, op, "There's nothing there!");
359 return 0; 359 return 0;
360 } 360 }
361 361
362 for (tmp = get_map_ob (m, x, y); tmp != NULL; tmp = tmp->above) 362 for (tmp = GET_MAP_OB (m, x, y); tmp != NULL; tmp = tmp->above)
363 { 363 {
364 if (tmp->type == RUNE || tmp->type == TRAP) 364 if (tmp->type == RUNE || tmp->type == TRAP)
365 break; 365 break;
366 366
367 /* we could put a probability chance here, but since nothing happens 367 /* we could put a probability chance here, but since nothing happens

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines