- use FString to manage strings in bot code.

This commit is contained in:
Christoph Oelckers 2020-04-11 12:11:22 +02:00
commit 5865c4dcca
4 changed files with 23 additions and 44 deletions

View file

@ -186,7 +186,7 @@ void FCajunMaster::ClearPlayer (int i, bool keepTeam)
players[i].mo = nullptr;
}
botinfo_t *bot = botinfo;
while (bot && stricmp (players[i].userinfo.GetName(), bot->name))
while (bot && stricmp (players[i].userinfo.GetName(), bot->Name.GetChars()))
bot = bot->next;
if (bot)
{
@ -237,7 +237,7 @@ CCMD (listbots)
while (thebot)
{
Printf ("%s%s\n", thebot->name, thebot->inuse == BOTINUSE_Yes ? " (active)" : "");
Printf ("%s%s\n", thebot->Name.GetChars(), thebot->inuse == BOTINUSE_Yes ? " (active)" : "");
thebot = thebot->next;
count++;
}