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.17 by root, Wed Dec 20 09:14:22 2006 UTC vs.
Revision 1.18 by root, Tue Dec 26 08:55:00 2006 UTC

20 20
21 The authors can be reached via e-mail at <crossfire@schmorp.de> 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
22*/ 22*/
23 23
24#include <global.h> 24#include <global.h>
25#ifndef __CEXTRACT__
26# include <sproto.h> 25#include <sproto.h>
27# include <spells.h> 26#include <spells.h>
28# include <skills.h> 27#include <skills.h>
29#endif
30
31 28
32#define MIN_MON_RADIUS 3 /* minimum monster detection radius */ 29#define MIN_MON_RADIUS 3 /* minimum monster detection radius */
33
34 30
35/* checks npc->enemy and returns that enemy if still valid, 31/* checks npc->enemy and returns that enemy if still valid,
36 * NULL otherwise. 32 * NULL otherwise.
37 * this is map tile aware. 33 * this is map tile aware.
38 * If this returns an enemy, the range vector rv should also be 34 * If this returns an enemy, the range vector rv should also be
987 { 983 {
988 if (wand->arch) 984 if (wand->arch)
989 { 985 {
990 CLEAR_FLAG (wand, FLAG_ANIMATE); 986 CLEAR_FLAG (wand, FLAG_ANIMATE);
991 wand->face = wand->arch->clone.face; 987 wand->face = wand->arch->clone.face;
992 wand->speed = 0; 988 wand->set_speed (0);
993 update_ob_speed (wand);
994 } 989 }
995 } 990 }
996 /* Success */ 991 /* Success */
997 return 1; 992 return 1;
998 } 993 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines