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

Comparing deliantra/server/common/player.C (file contents):
Revision 1.44 by root, Tue Sep 9 10:51:59 2008 UTC vs.
Revision 1.46 by root, Mon Sep 29 09:04:50 2008 UTC

259 259
260failure: 260failure:
261 LOG (llevError, "%s: too many or too grave errors, aborting player load.\n", f.name); 261 LOG (llevError, "%s: too many or too grave errors, aborting player load.\n", f.name);
262 262
263 if (pl->ob) 263 if (pl->ob)
264 pl->ob->destroy (); 264 pl->ob->destroy (true);
265 265
266 pl->destroy (); 266 pl->destroy ();
267 267
268 return 0; 268 return 0;
269} 269}
421 } 421 }
422 break; 422 break;
423 423
424 case 'G': // gender 424 case 'G': // gender
425 { 425 {
426 expand_cfpod (pl, nest, cfpod, end); 426 cfpod = expand_cfpod (pl, nest, cfpod, end);
427 nest << '\0'; // zero-terminate 427 nest << '\0'; // zero-terminate
428 428
429 const char *str = nest.linearise (); 429 const char *str = nest.linearise ();
430 const char *sep = strchr (str, '|'); 430 const char *sep = strchr (str, '|');
431 431
432 if (sep) 432 if (sep)
433 { 433 {
434 if (pl->gender || 1) 434 if (pl->gender)
435 buf.add (sep + 1, nest.size () - (sep - str) - 2); 435 buf.add (sep + 1, nest.size () - (sep - str) - 2);
436 else 436 else
437 buf.add (str, sep - str); 437 buf.add (str, sep - str);
438 } 438 }
439 439

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines