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.46 by root, Mon Sep 29 09:04:50 2008 UTC vs.
Revision 1.50 by root, Thu Jan 8 00:54:55 2009 UTC

46is_dragon_pl (const object *op) 46is_dragon_pl (const object *op)
47{ 47{
48 if (op 48 if (op
49 && op->type == PLAYER 49 && op->type == PLAYER
50 && op->arch 50 && op->arch
51 && op->arch->race 51 && op->arch->race == shstr_dragon)
52 && !strcmp (op->arch->race, "dragon"))
53 return 1; 52 return 1;
54 53
55 return 0; 54 return 0;
56} 55}
57 56
259 258
260failure: 259failure:
261 LOG (llevError, "%s: too many or too grave errors, aborting player load.\n", f.name); 260 LOG (llevError, "%s: too many or too grave errors, aborting player load.\n", f.name);
262 261
263 if (pl->ob) 262 if (pl->ob)
264 pl->ob->destroy (true); 263 pl->ob->destroy ();
265 264
266 pl->destroy (); 265 pl->destroy ();
267 266
268 return 0; 267 return 0;
269} 268}
356 --cfpod; 355 --cfpod;
357 do 356 do
358 buf << *cfpod++; 357 buf << *cfpod++;
359 while (*cfpod == '\n'); 358 while (*cfpod == '\n');
360 } 359 }
361 else if (*cfpod != ' ') 360 else if (*cfpod == ' ')
361 buf << '\n';
362 else
362 buf << ' '; 363 buf << ' ';
363 364
364 // verbatim block? 365 // verbatim block?
365 if (*cfpod == ' ') 366 if (*cfpod == ' ')
366 goto verbatim; 367 goto verbatim;
461 do 462 do
462 { 463 {
463 buf << "<tt>"; 464 buf << "<tt>";
464 cfpod = expand_cfpod (pl, buf, cfpod, -2); 465 cfpod = expand_cfpod (pl, buf, cfpod, -2);
465 buf << "</tt>\n"; 466 buf << "</tt>\n";
467
468 while (*cfpod == '\n')
469 buf << *cfpod++;
466 } 470 }
467 while (*cfpod == ' '); 471 while (*cfpod == ' ');
468 472
469 while (*cfpod == '\n')
470 buf << *cfpod++;
471
472 break; 473 break;
473 } 474 }
474} 475}
475 476
476dynbuf_text * 477dynbuf_text *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines