File tree Expand file tree Collapse file tree 4 files changed +16
-26
lines changed Expand file tree Collapse file tree 4 files changed +16
-26
lines changed Original file line number Diff line number Diff line change @@ -671,11 +671,7 @@ void InitLanGameGadgets( void )
671
671
GadgetComboBoxReset (comboBoxPlayer[i]);
672
672
GadgetComboBoxGetEditBox (comboBoxPlayer[i])->winSetTooltipFunc (playerTooltip);
673
673
674
- if (localSlotNum == i)
675
- {
676
- GadgetComboBoxAddEntry (comboBoxPlayer[i],TheLAN->GetMyName (),white);
677
- }
678
- else
674
+ if (localSlotNum != i)
679
675
{
680
676
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Open" ),white);
681
677
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Closed" ),white);
@@ -819,6 +815,9 @@ void LanGameOptionsMenuInit( WindowLayout *layout, void *userData )
819
815
lanUpdateSlotList ();
820
816
updateGameOptions ();
821
817
start = 1 ; // leave my combo boxes usable
818
+
819
+ // TheSuperHackers @tweak disable the combo box for the host's player name
820
+ comboBoxPlayer[0 ]->winEnable (FALSE );
822
821
}
823
822
else
824
823
{
Original file line number Diff line number Diff line change @@ -1057,14 +1057,7 @@ void InitWOLGameGadgets( void )
1057
1057
if (TheGameSpyInfo->amIHost ())
1058
1058
staticTextPlayer[i]->winHide (TRUE );
1059
1059
1060
- if (i==0 && TheGameSpyInfo->amIHost ())
1061
- {
1062
- UnicodeString uName;
1063
- uName.translate (TheGameSpyInfo->getLocalName ());
1064
- GadgetComboBoxAddEntry (comboBoxPlayer[i],uName,GameSpyColor[GSCOLOR_PLAYER_OWNER]);
1065
- GadgetComboBoxSetSelectedPos (comboBoxPlayer[0 ],0 );
1066
- }
1067
- else
1060
+ if (theGameInfo->getLocalSlotNum () != i)
1068
1061
{
1069
1062
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Open" ),GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1070
1063
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Closed" ),GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
@@ -1257,6 +1250,9 @@ void WOLGameSetupMenuInit( WindowLayout *layout, void *userData )
1257
1250
1258
1251
WOLDisplaySlotList ();
1259
1252
WOLDisplayGameOptions ();
1253
+
1254
+ // TheSuperHackers @tweak disable the combo box for the host's player name
1255
+ comboBoxPlayer[0 ]->winEnable (FALSE );
1260
1256
}
1261
1257
else
1262
1258
{
Original file line number Diff line number Diff line change @@ -741,11 +741,7 @@ void InitLanGameGadgets( void )
741
741
GadgetComboBoxReset (comboBoxPlayer[i]);
742
742
GadgetComboBoxGetEditBox (comboBoxPlayer[i])->winSetTooltipFunc (playerTooltip);
743
743
744
- if (localSlotNum == i)
745
- {
746
- GadgetComboBoxAddEntry (comboBoxPlayer[i],TheLAN->GetMyName (),white);
747
- }
748
- else
744
+ if (localSlotNum != i)
749
745
{
750
746
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Open" ),white);
751
747
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Closed" ),white);
@@ -897,6 +893,9 @@ void LanGameOptionsMenuInit( WindowLayout *layout, void *userData )
897
893
lanUpdateSlotList ();
898
894
updateGameOptions ();
899
895
start = 1 ; // leave my combo boxes usable
896
+
897
+ // TheSuperHackers @tweak disable the combo box for the host's player name
898
+ comboBoxPlayer[0 ]->winEnable (FALSE );
900
899
}
901
900
else
902
901
{
Original file line number Diff line number Diff line change @@ -1206,14 +1206,7 @@ void InitWOLGameGadgets( void )
1206
1206
if (TheGameSpyInfo->amIHost ())
1207
1207
staticTextPlayer[i]->winHide (TRUE );
1208
1208
1209
- if (i==0 && TheGameSpyInfo->amIHost ())
1210
- {
1211
- UnicodeString uName;
1212
- uName.translate (TheGameSpyInfo->getLocalName ());
1213
- GadgetComboBoxAddEntry (comboBoxPlayer[i],uName,GameSpyColor[GSCOLOR_PLAYER_OWNER]);
1214
- GadgetComboBoxSetSelectedPos (comboBoxPlayer[0 ],0 );
1215
- }
1216
- else
1209
+ if (theGameInfo->getLocalSlotNum () != i)
1217
1210
{
1218
1211
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Open" ),GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
1219
1212
GadgetComboBoxAddEntry (comboBoxPlayer[i],TheGameText->fetch (" GUI:Closed" ),GameSpyColor[GSCOLOR_PLAYER_NORMAL]);
@@ -1434,6 +1427,9 @@ void WOLGameSetupMenuInit( WindowLayout *layout, void *userData )
1434
1427
1435
1428
WOLDisplaySlotList ();
1436
1429
WOLDisplayGameOptions ();
1430
+
1431
+ // TheSuperHackers @tweak disable the combo box for the host's player name
1432
+ comboBoxPlayer[0 ]->winEnable (FALSE );
1437
1433
}
1438
1434
else
1439
1435
{
You can’t perform that action at this time.
0 commit comments