Changeset 360
- Timestamp:
- 07/19/07 15:37:04 (1 year ago)
- Files:
-
- branches/angband-3.0.8/src/spells2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/angband-3.0.8/src/spells2.c
r344 r360 78 78 void warding_glyph(void) 79 79 { 80 object_type *o_ptr; 80 81 int py = p_ptr->py; 81 82 int px = p_ptr->px; 82 83 83 /* XXX XXX XXX */ 84 if (!cave_clean_bold(py, px)) 85 { 86 msg_print("The object resists the spell."); 84 if (cave_feat[py][px] != FEAT_FLOOR) 85 { 86 msg_print("There is no clear floor on which to cast the spell."); 87 87 return; 88 88 } … … 90 90 /* Create a glyph */ 91 91 cave_set_feat(py, px, FEAT_GLYPH); 92 93 /* Shift any objects to further away */ 94 for (o_ptr = get_first_object(py, px); o_ptr; o_ptr = get_next_object(o_ptr)) 95 { 96 drop_near(o_ptr, 0, py, px); 97 } 98 99 /* Delete the "moved" objects from their original position */ 100 delete_object(py, px); 92 101 } 93 102
