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

Comparing deliantra/server/server/pets.C (file contents):
Revision 1.30 by root, Mon Apr 30 04:25:30 2007 UTC vs.
Revision 1.31 by root, Sun May 6 04:49:37 2007 UTC

106 106
107 /* Since the pet has no existing enemy, look for anything nasty 107 /* Since the pet has no existing enemy, look for anything nasty
108 * around the owner that it should go and attack. (if the owner is 108 * around the owner that it should go and attack. (if the owner is
109 * still on a map) 109 * still on a map)
110 */ 110 */
111 // owners sometimes are not on a map but in the inventory of somehting else
111 if (!owner->flag [FLAG_REMOVED]) 112 if (!owner->flag [FLAG_REMOVED] && owner->map)
112 { 113 {
113 tmp3 = 0; 114 tmp3 = 0;
114 115
115 for (i = 0; i < SIZEOFFREE; i++) 116 for (i = 0; i < SIZEOFFREE; i++)
116 { 117 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines