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.31 by root, Tue Aug 7 22:57:57 2007 UTC vs.
Revision 1.32 by root, Tue Aug 7 23:38:13 2007 UTC

508 symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127); 508 symptom->stats.stat (i) = clamp (int (scale * disease->stats.stat (i)), -128, 127);
509 509
510 symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024); 510 symptom->stats.dam = clamp (scale * disease->stats.dam , -1024, 1024);
511 symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024); 511 symptom->stats.food = clamp (scale * disease->last_eat , -1024, 1024);
512 symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024); 512 symptom->stats.maxsp = clamp (scale * disease->stats.maxsp, -1024, 1024);
513 symptom->last_sp = clamp (scale * disease->last_sp , -1024, 1024);
514 symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024); 513 symptom->stats.sp = clamp (scale * disease->stats.sp , -1024, 1024);
515 symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024); 514 symptom->stats.hp = clamp (scale * disease->stats.hp , -1024, 1024);
516 symptom->stats.exp = 0; 515 symptom->stats.exp = 0;
517 516 symptom->last_sp = last_sp ? clamp (disease->last_sp / scale, 1, 1024) : 0;
518 symptom->msg = disease->msg; 517 symptom->msg = disease->msg;
519 symptom->attacktype = disease->attacktype; 518 symptom->attacktype = disease->attacktype;
520 symptom->other_arch = disease->other_arch; 519 symptom->other_arch = disease->other_arch;
521 } 520 }
522 521

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines