From ba819f7213b64600dad93b5ac99ee2d83f76baef Mon Sep 17 00:00:00 2001 From: ptrstr Date: Wed, 29 Apr 2020 16:05:31 -0400 Subject: [PATCH] Centered "Set Next Spawn" text on the new button. Added check for being alive when displaying the new button so you can't request a loadout for your next spawn while being dead, you must just click spawn. --- Sources/Client/LimboView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Client/LimboView.cpp b/Sources/Client/LimboView.cpp index 7e60d3b32..dce87479e 100644 --- a/Sources/Client/LimboView.cpp +++ b/Sources/Client/LimboView.cpp @@ -164,7 +164,7 @@ namespace spades { } break; case MenuNextSpawn: - if (client->GetWorld() && !(client->world->GetLocalPlayer() && !client->world->GetLocalPlayer()->IsSpectator())) + if (client->GetWorld() && !(client->world->GetLocalPlayer() && client->world->GetLocalPlayer()->IsAlive() && !client->world->GetLocalPlayer()->IsSpectator())) item.visible = false; break; default:; @@ -242,7 +242,7 @@ namespace spades { } renderer->SetColorAlphaPremultiplied(fillColor); - if (item.type == MenuSpawn) { + if (item.type == MenuSpawn || item.type == MenuNextSpawn) { renderer->DrawImage(menuItemBigImage, item.rect); std::string msg = item.text;