LCEMP commit: support more max players

This commit is contained in:
2026-08-14 11:46:19 +03:00
parent 6853eab85f
commit 67a8111974
11 changed files with 36 additions and 22 deletions
+3 -3
View File
@@ -531,7 +531,7 @@ void LivingEntityRenderer::renderNameTag(shared_ptr<LivingEntity> mob, const wst
int offs = 0;
wstring playerName;
WCHAR wchName[2];
WCHAR wchName[8];
if(mob->instanceof(eTYPE_PLAYER))
{
@@ -551,7 +551,7 @@ void LivingEntityRenderer::renderNameTag(shared_ptr<LivingEntity> mob, const wst
}
else
{
memset(wchName,0,sizeof(WCHAR)*2);
memset(wchName,0,sizeof(wchName));
swprintf(wchName, 2, L"%d",player->getPlayerIndex()+1);
playerName=wchName;
player->SetPlayerNameValidState(false);
@@ -561,7 +561,7 @@ void LivingEntityRenderer::renderNameTag(shared_ptr<LivingEntity> mob, const wst
playerName=name;
break;
case Player::ePlayerNameValid_False:
memset(wchName,0,sizeof(WCHAR)*2);
memset(wchName,0,sizeof(wchName)d);
swprintf(wchName, 2, L"%d",player->getPlayerIndex()+1);
playerName=wchName;
break;