mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- Applied Chilly's patch to fix excessive name change notifications.
This commit is contained in:
parent
e5d7077d74
commit
7af8b78b9f
2 changed files with 5 additions and 2 deletions
|
@ -861,7 +861,7 @@ void D_ReadUserInfoStrings (int pnum, BYTE **stream, bool update)
|
|||
val.String = CleanseString(value.LockBuffer());
|
||||
(*cvar_ptr)->SetGenericRep(val, CVAR_String);
|
||||
value.UnlockBuffer();
|
||||
if (keyname == NAME_Name && update && oldname != value)
|
||||
if (keyname == NAME_Name && update && oldname.Compare (value))
|
||||
{
|
||||
Printf("%s is now known as %s\n", oldname.GetChars(), value.GetChars());
|
||||
}
|
||||
|
|
|
@ -996,7 +996,10 @@ bool DPlayerMenu::MenuEvent (int mkey, bool fromcontroller)
|
|||
// item specific handling comes here
|
||||
|
||||
case NAME_Playerbox:
|
||||
PlayerNameChanged(li);
|
||||
if (mkey == MKEY_Input)
|
||||
{
|
||||
PlayerNameChanged(li);
|
||||
}
|
||||
break;
|
||||
|
||||
case NAME_Team:
|
||||
|
|
Loading…
Reference in a new issue