Skip to content

Commit

Permalink
Centered "Set Next Spawn" text on the new button. Added check for bei…
Browse files Browse the repository at this point in the history
…ng 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.
  • Loading branch information
ptrstr committed Apr 29, 2020
1 parent 6418d42 commit ba819f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Client/LimboView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ba819f7

Please sign in to comment.