Skip to content
Permalink
Browse files

Add tooltips for locked AIs in game setup screen

* make it easier to identify AIs with custom names in challenges
* also show tooltips to players who join multiplayer games

Fixes #281
  • Loading branch information...
Forgon2100 committed Mar 20, 2019
1 parent 262f182 commit 3157cf53a54f0d2358ec5d375bc84c80cbd40af6
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/multiint.cpp
@@ -2687,9 +2687,17 @@ void addPlayerBox(bool players)
{
sButInit.pTip = _("Click to change player position");
}
else if (!NetPlay.players[i].allocated && NetPlay.isHost && !locked.ai)
else if (!NetPlay.players[i].allocated)
{
sButInit.pTip = _("Click to change AI");
if (NetPlay.isHost && !locked.ai)
{
sButInit.pTip = _("Click to change AI");
}
else
{
// show AI description. Useful for challenges.
sButInit.pTip = aidata[NetPlay.players[i].ai].tip;
}
}
if (NetPlay.players[i].allocated && !getMultiStats(i).identity.empty())
{

0 comments on commit 3157cf5

Please sign in to comment.
You can’t perform that action at this time.