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.45 by root, Fri Sep 19 01:39:45 2008 UTC

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