Ticket #222: spells2.diff
| File spells2.diff, 0.8 kB (added by Big Al, 1 year ago) |
|---|
-
trunk-r440/src/spells2.c
old new 982 982 /* Hack -- Memorize */ 983 983 cave_info[y][x] |= (CAVE_MARK); 984 984 985 /* Redraw */986 lite_spot(y, x);987 988 985 /* We found something to detect */ 989 986 detect = TRUE; 990 987 } … … 994 991 } 995 992 } 996 993 994 /* Rescan the map for the new dtrap edge */ 995 for (y = 1; y < DUNGEON_HGT - 1; y++) 996 { 997 for (x = 1; x < DUNGEON_WID - 1; x++) 998 { 999 if (!in_bounds_fully(y, x)) continue; 1000 1001 /* Restrict to being in the radius + 1 to erase the old DTrap radius*/ 1002 if (distance(p_ptr->py, p_ptr->px, y, x) > DET_RADIUS + 1) continue; 1003 1004 /* Redraw */ 1005 lite_spot(y, x); 1006 } 1007 } 1008 997 1009 /* Describe */ 998 1010 if (detect) 999 1011 msg_print("You sense the presence of traps!");
