Skip to content

Commit

Permalink
Removed MULTIOP_MAP case because it's never executed
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Jun 1, 2024
1 parent 5f18588 commit 7214eaf
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6252,18 +6252,6 @@ void WzMultiplayerOptionsTitleUI::processMultiopWidgets(UDWORD id)
case MULTIOP_GNAME_ICON:
break;

case MULTIOP_MAP:
widgDelete(psWScreen, MULTIOP_PLAYERS);
widgDelete(psWScreen, FRONTEND_SIDETEXT2); // del text too,

debug(LOG_WZ, "processMultiopWidgets[MULTIOP_MAP_ICON]: %s.wrf", MultiCustomMapsPath);
addMultiRequest(MultiCustomMapsPath, ".wrf", MULTIOP_MAP, 0, widgGetString(psWScreen, MULTIOP_MAP));

widgSetString(psWScreen, MULTIOP_MAP + 1 , game.map); //What a horrible hack! FIX ME! (See addBlueForm())
widgReveal(psWScreen, MULTIOP_MAP_MOD);
widgReveal(psWScreen, MULTIOP_MAP_RANDOM);
break;

case MULTIOP_MAP_ICON:
widgDelete(psWScreen, MULTIOP_PLAYERS);
widgDelete(psWScreen, FRONTEND_SIDETEXT2); // del text too,
Expand Down

0 comments on commit 7214eaf

Please sign in to comment.