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

Comparing deliantra/server/common/living.C (file contents):
Revision 1.7 by root, Sat Sep 9 21:48:28 2006 UTC vs.
Revision 1.8 by root, Sat Sep 9 22:09:19 2006 UTC

1/* 1/*
2 * static char *rcsid_living_c = 2 * static char *rcsid_living_c =
3 * "$Id: living.C,v 1.7 2006/09/09 21:48:28 root Exp $"; 3 * "$Id: living.C,v 1.8 2006/09/09 22:09:19 root 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
375 375
376 /* remember what object was like before it was changed. note that 376 /* remember what object was like before it was changed. note that
377 * refop is a local copy of op only to be used for detecting changes 377 * refop is a local copy of op only to be used for detecting changes
378 * found by fix_player. refop is not a real object 378 * found by fix_player. refop is not a real object
379 */ 379 */
380 object_pod refop; 380 object_pod refop = *op;
381 memcpy (&refop, static_cast<object_pod *>(op), sizeof (object_pod));
382 381
383 if(op->type==PLAYER) { 382 if(op->type==PLAYER) {
384 if (tmp->type==POTION) { 383 if (tmp->type==POTION) {
385 potion_max=1; 384 potion_max=1;
386 for(j=0;j<NUM_STATS;j++) { 385 for(j=0;j<NUM_STATS;j++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines