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