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.50 by root, Thu Jan 8 00:54:55 2009 UTC vs.
Revision 1.54 by root, Thu Sep 17 00:10:03 2009 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify 8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 9 * it under the terms of the GNU General Public License as published by
337 buf << "&lt;"; 337 buf << "&lt;";
338 break; 338 break;
339 339
340 case '\r': 340 case '\r':
341 buf << '\n'; 341 buf << '\n';
342 /* \r\n+ becomes one or more newlines */
343 while (*cfpod == '\n')
344 buf << *cfpod++;
342 break; 345 break;
343 346
344 case '\n': 347 case '\n':
345 if (end == -2) 348 if (end == -2)
346 return cfpod; 349 return cfpod;
396 case 'C': pfx = "<tt>" ; sfx = "</tt>" ; break; 399 case 'C': pfx = "<tt>" ; sfx = "</tt>" ; break;
397 case 'E': pfx = "&" ; sfx = ";" ; break; 400 case 'E': pfx = "&" ; sfx = ";" ; break;
398 case 'I': pfx = "<i>" ; sfx = "</i>" ; break; 401 case 'I': pfx = "<i>" ; sfx = "</i>" ; break;
399 case 'U': pfx = "<u>" ; sfx = "</u>" ; break; 402 case 'U': pfx = "<u>" ; sfx = "</u>" ; break;
400 case 'T': pfx = "<big><b>"; sfx = "</b></big>"; break; 403 case 'T': pfx = "<big><b>"; sfx = "</b></big>"; break;
404 case 'Z': pfx = "" ; sfx = "" ; break;
401 405
402 case 'H': // hint 406 case 'H': // hint
403 { 407 {
404 if (pl->hintmode) 408 if (pl->hintmode)
405 { 409 {
406 cfpod = expand_cfpod (pl, nest, cfpod, end); 410 cfpod = expand_cfpod (pl, nest, cfpod, end);
407 nest.clear (); 411 nest.clear ();
408 412
409 if (pl->hintmode == 1) 413 if (pl->hintmode == 1)
410 buf << "<fg name=\"lightblue\">[Hint suppressed, see hintmode]</fg>"; 414 buf << "<fg name=\"lightblue\">[Hint available]</fg>";
411 else 415 else
412 while (*cfpod == ' ') // eat trailing whitespace 416 while (*cfpod <= ' '&& *cfpod) // eat trailing whitespace
413 ++cfpod; 417 ++cfpod;
414 418
415 goto skip; 419 goto skip;
416 } 420 }
417 else 421 else
418 { 422 {
419 pfx = "<fg name=\"lightblue\">["; 423 pfx = "<fg name=\"lightblue\">[Hint: ";
420 sfx = " (Use hintmode to suppress hints)]</fg>"; 424 sfx = "]</fg>";
421 } 425 }
422 } 426 }
423 break; 427 break;
424 428
425 case 'G': // gender 429 case 'G': // gender

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines