- fixed: The player name input box did not 0-terminate the string when temporarily appending an underscore for the cursor display.

SVN r2804 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-16 23:16:06 +00:00
parent 3424548bec
commit 35aa6e7847
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ void FPlayerNameBox::Drawer(bool selected)
{
size_t l = strlen(mEditName);
mEditName[l] = (gameinfo.gametype & (GAME_DoomStrifeChex)) ? '_' : '[';
mEditName[l+1] = 0;
screen->DrawText (SmallFont, CR_UNTRANSLATED, x + mFrameSize, mYpos, mEditName,
DTA_Clean, true, TAG_DONE);