Skip to content

Commit e80e9ae

Browse files
committed
Remove old player slots code
1 parent f499ee6 commit e80e9ae

3 files changed

Lines changed: 6 additions & 20 deletions

File tree

‎GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/OnlineServices_RoomsInterface.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
#include "OnlineServices_Init.h"
77
#include "Common/MultiplayerSettings.h"
88

9-
extern Color PlayerSlotColors[MAX_SLOTS];
10-
119
extern NGMPGame* TheNGMPGame;
1210

1311
enum class EChatMessageType

‎GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,11 +1438,11 @@ void InitWOLGameGadgets( void )
14381438

14391439
if (theGameInfo->getLocalSlotNum() != i)
14401440
{
1441-
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:Open"), PlayerSlotColors[i]);
1442-
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:Closed"), PlayerSlotColors[i]);
1443-
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:EasyAI"), PlayerSlotColors[i]);
1444-
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:MediumAI"), PlayerSlotColors[i]);
1445-
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:HardAI"), PlayerSlotColors[i]);
1441+
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:Open"), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1442+
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:Closed"), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1443+
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:EasyAI"), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1444+
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:MediumAI"), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1445+
GadgetComboBoxAddEntry(comboBoxPlayer[i], TheGameText->fetch("GUI:HardAI"), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
14461446
GadgetComboBoxSetSelectedPos(comboBoxPlayer[i], 0);
14471447
}
14481448
else
@@ -1451,7 +1451,7 @@ void InitWOLGameGadgets( void )
14511451
NGMPGameSlot* slot = theGameInfo->getGameSpySlot(i);
14521452
if (slot)
14531453
{
1454-
GadgetComboBoxAddEntry(comboBoxPlayer[i], slot->getName(), PlayerSlotColors[i]);
1454+
GadgetComboBoxAddEntry(comboBoxPlayer[i], slot->getName(), GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
14551455
GadgetComboBoxSetSelectedPos(comboBoxPlayer[i], 0);
14561456
}
14571457
}

‎GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/NGMP_Helpers.cpp‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,6 @@
99
std::string m_strNetworkLogFileName;
1010
std::mutex m_logMutex;
1111

12-
Color PlayerSlotColors[MAX_SLOTS] =
13-
{
14-
GameMakeColor(0, 162, 232, 255),
15-
GameMakeColor(255, 0, 0, 255),
16-
GameMakeColor(0, 255, 0, 255),
17-
GameMakeColor(0, 0, 255, 255),
18-
GameMakeColor(255, 194, 15, 255),
19-
GameMakeColor(163, 73, 164, 255),
20-
GameMakeColor(230, 157, 181, 255),
21-
GameMakeColor(16, 82, 35, 255),
22-
};
23-
2412
std::string to_utf8(const std::wstring& wstr)
2513
{
2614
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;

0 commit comments

Comments
 (0)