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

Comparing deliantra/server/server/disease.C (file contents):
Revision 1.50 by root, Sun Dec 28 07:38:49 2008 UTC vs.
Revision 1.51 by root, Thu Jan 1 15:43:34 2009 UTC

237 return 0; 237 return 0;
238 238
239 if (victim->flag [FLAG_WIZ]) 239 if (victim->flag [FLAG_WIZ])
240 return 0; 240 return 0;
241 241
242 if (strstr (disease->race, "*") && !QUERY_FLAG (victim, FLAG_UNDEAD)) 242 if (disease->race.contains ("*") && !QUERY_FLAG (victim, FLAG_UNDEAD))
243 return 1; 243 return 1;
244 244
245 if ((disease->race == shstr_undead) && QUERY_FLAG (victim, FLAG_UNDEAD)) 245 if ((disease->race == shstr_undead) && QUERY_FLAG (victim, FLAG_UNDEAD))
246 return 1; 246 return 1;
247 247
248 if ((victim->race && strstr (disease->race, victim->race)) || strstr (disease->race, victim->name)) 248 if ((victim->race && disease->race.contains (victim->race)) || disease->race.contains (victim->name))
249 return 1; 249 return 1;
250 250
251 return 0; 251 return 0;
252} 252}
253 253

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines