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

Comparing deliantra/server/server/monster.C (file contents):
Revision 1.98 by root, Sun Jan 29 02:47:05 2017 UTC vs.
Revision 1.99 by root, Sat Sep 16 22:17:42 2017 UTC

125 for (i = 0; i < SIZEOFFREE; i++) 125 for (i = 0; i < SIZEOFFREE; i++)
126 { 126 {
127 /* modified to implement smart searching using search_arr 127 /* modified to implement smart searching using search_arr
128 * guidance array to determine direction of search order 128 * guidance array to determine direction of search order
129 */ 129 */
130 nx = npc->x + freearr_x[search_arr[i]]; 130 nx = npc->x + DIRX (search_arr[i]);
131 ny = npc->y + freearr_y[search_arr[i]]; 131 ny = npc->y + DIRY (search_arr[i]);
132 m = npc->map; 132 m = npc->map;
133 133
134 mflags = get_map_flags (m, &m, nx, ny, &nx, &ny); 134 mflags = get_map_flags (m, &m, nx, ny, &nx, &ny);
135 135
136 if (mflags & P_OUT_OF_MAP) 136 if (mflags & P_OUT_OF_MAP)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines