@@ -144,8 +144,9 @@ void setEnabledButtons()
144144{
145145 for (Int i = 0 ; i < NUM_GENERALS; i++)
146146 {
147- if (!buttonGeneralPosition[i]) // TheSuperHackers @tweak DayV 21/09/2025 Increase number of challenge generals.
147+ if (!buttonGeneralPosition[i])
148148 continue ;
149+
149150 const GeneralPersona* generals = TheChallengeGenerals->getChallengeGenerals ();
150151 buttonGeneralPosition[i]->winEnable (generals[i].isStartingEnabled ());
151152 buttonGeneralPosition[i]->winHide (! generals[i].isStartingEnabled ());
@@ -240,7 +241,6 @@ void updateButtonSequence(Int stepsPerUpdate)
240241 {
241242 // selected look
242243 Int pos = buttonSequenceStep;
243- // TheSuperHackers @tweak DayV 21/09/2025 Increase number of challenge generals.
244244 if (pos < NUM_GENERALS && buttonGeneralPosition[pos] && !buttonGeneralPosition[pos]->winIsHidden ())
245245 {
246246 Int templateNum = ThePlayerTemplateStore->getTemplateNumByName (generals[pos].getPlayerTemplateName ());
@@ -368,10 +368,11 @@ void ChallengeMenuInit( WindowLayout *layout, void *userData )
368368 strButtonName.format (" ChallengeMenu.wnd:GeneralPosition%d" , i);
369369 buttonGeneralPositionID[i] = TheNameKeyGenerator->nameToKey ( strButtonName );
370370 buttonGeneralPosition[i] = TheWindowManager->winGetWindowFromId ( parentMenu, buttonGeneralPositionID[i] );
371- // TheSuperHackers @tweak DayV 21/09/2025 Increase number of challenge generals.
372371 if (buttonGeneralPosition[i])
372+ {
373373 // start all buttons hidden, then expose them later if there is a general for this spot
374374 buttonGeneralPosition[i]->winHide ( TRUE );
375+ }
375376 }
376377
377378 // set defaults
0 commit comments