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.51 by elmex, Fri Jun 26 16:21:57 2009 UTC vs.
Revision 1.53 by root, Thu Sep 17 00:07:04 2009 UTC

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;
406 { 409 {
407 cfpod = expand_cfpod (pl, nest, cfpod, end); 410 cfpod = expand_cfpod (pl, nest, cfpod, end);
408 nest.clear (); 411 nest.clear ();
409 412
410 if (pl->hintmode == 1) 413 if (pl->hintmode == 1)
411 buf << "<fg name=\"lightblue\">[Hint suppressed, see hintmode]</fg>"; 414 buf << "<fg name=\"lightblue\">[Hint available]</fg>";
412 else 415 else
413 while (*cfpod == ' ') // eat trailing whitespace 416 while (*cfpod <= ' '&& *cfpod) // eat trailing whitespace
414 ++cfpod; 417 ++cfpod;
415 418
416 goto skip; 419 goto skip;
417 } 420 }
418 else 421 else
419 { 422 {
420 pfx = "<fg name=\"lightblue\">["; 423 pfx = "<fg name=\"lightblue\">[Hint: ";
421 sfx = " (Use hintmode to suppress hints)]</fg>"; 424 sfx = "]</fg>";
422 } 425 }
423 } 426 }
424 break; 427 break;
425 428
426 case 'G': // gender 429 case 'G': // gender

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines