mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- 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:
parent
3424548bec
commit
35aa6e7847
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ void FPlayerNameBox::Drawer(bool selected)
|
||||||
{
|
{
|
||||||
size_t l = strlen(mEditName);
|
size_t l = strlen(mEditName);
|
||||||
mEditName[l] = (gameinfo.gametype & (GAME_DoomStrifeChex)) ? '_' : '[';
|
mEditName[l] = (gameinfo.gametype & (GAME_DoomStrifeChex)) ? '_' : '[';
|
||||||
|
mEditName[l+1] = 0;
|
||||||
|
|
||||||
screen->DrawText (SmallFont, CR_UNTRANSLATED, x + mFrameSize, mYpos, mEditName,
|
screen->DrawText (SmallFont, CR_UNTRANSLATED, x + mFrameSize, mYpos, mEditName,
|
||||||
DTA_Clean, true, TAG_DONE);
|
DTA_Clean, true, TAG_DONE);
|
||||||
|
|
Loading…
Reference in a new issue