make more efficent location (and more accurate to pinto) update packets

This commit is contained in:
SilicaAndPina 2021-06-28 23:49:48 +12:00
parent 831523da45
commit e8e445a751
4 changed files with 192 additions and 27 deletions

View file

@ -1519,7 +1519,10 @@ namespace HISP.Game
}
public static string FormatPlayerHereMenu(int playerIcon, string playerName, string button)
{
return PlayerHereMenuFormat.Replace("%PLAYERICON%", playerIcon.ToString()).Replace("%PLAYERNAME%", playerName).Replace("%BUTTONS%", button);
string vstr = "^I" + playerIcon.ToString();
if (playerIcon == -1)
vstr = "";
return PlayerHereMenuFormat.Replace("%PLAYERICON%", vstr).Replace("%PLAYERNAME%", playerName).Replace("%BUTTONS%", button);
}
// Auctions