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.6 by root, Sun Sep 3 00:18:42 2006 UTC vs.
Revision 1.7 by pippijn, Thu Sep 7 10:01:58 2006 UTC

1/* 1/*
2 * static char *rcsid_monster_c = 2 * static char *rcsid_monster_c =
3 * "$Id: monster.C,v 1.6 2006/09/03 00:18:42 root Exp $"; 3 * "$Id: monster.C,v 1.7 2006/09/07 10:01:58 pippijn Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
268 else if(!QUERY_FLAG(op,FLAG_SLEEP)) return 1; 268 else if(!QUERY_FLAG(op,FLAG_SLEEP)) return 1;
269 269
270 /* enemy should already be on this map, so don't really need to check 270 /* enemy should already be on this map, so don't really need to check
271 * for that. 271 * for that.
272 */ 272 */
273 if (rv->distance < (QUERY_FLAG(enemy, FLAG_STEALTH)?(radius/2)+1:radius)) { 273 if (rv->distance < (unsigned int) (QUERY_FLAG(enemy, FLAG_STEALTH) ? (radius / 2) + 1 : radius)) {
274 CLEAR_FLAG(op,FLAG_SLEEP); 274 CLEAR_FLAG(op,FLAG_SLEEP);
275 return 1; 275 return 1;
276 } 276 }
277 return 0; 277 return 0;
278} 278}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines