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.48 by root, Sun Dec 28 06:59:26 2008 UTC vs.
Revision 1.52 by root, Wed Sep 16 23:33:24 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
338 buf << "&lt;"; 337 buf << "&lt;";
339 break; 338 break;
340 339
341 case '\r': 340 case '\r':
342 buf << '\n'; 341 buf << '\n';
342 /* \r\n+ becomes one or more newlines */
343 while (*cfpod == '\n')
344 buf << *cfpod++;
343 break; 345 break;
344 346
345 case '\n': 347 case '\n':
346 if (end == -2) 348 if (end == -2)
347 return cfpod; 349 return cfpod;
356 --cfpod; 358 --cfpod;
357 do 359 do
358 buf << *cfpod++; 360 buf << *cfpod++;
359 while (*cfpod == '\n'); 361 while (*cfpod == '\n');
360 } 362 }
361 else if (*cfpod != ' ') 363 else if (*cfpod == ' ')
364 buf << '\n';
365 else
362 buf << ' '; 366 buf << ' ';
363 367
364 // verbatim block? 368 // verbatim block?
365 if (*cfpod == ' ') 369 if (*cfpod == ' ')
366 goto verbatim; 370 goto verbatim;
395 case 'C': pfx = "<tt>" ; sfx = "</tt>" ; break; 399 case 'C': pfx = "<tt>" ; sfx = "</tt>" ; break;
396 case 'E': pfx = "&" ; sfx = ";" ; break; 400 case 'E': pfx = "&" ; sfx = ";" ; break;
397 case 'I': pfx = "<i>" ; sfx = "</i>" ; break; 401 case 'I': pfx = "<i>" ; sfx = "</i>" ; break;
398 case 'U': pfx = "<u>" ; sfx = "</u>" ; break; 402 case 'U': pfx = "<u>" ; sfx = "</u>" ; break;
399 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;
400 405
401 case 'H': // hint 406 case 'H': // hint
402 { 407 {
403 if (pl->hintmode) 408 if (pl->hintmode)
404 { 409 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines