Skip to content

Commit

Permalink
Merge pull request #5794 from repligator/Sprite-Swap-4real
Browse files Browse the repository at this point in the history
Fixes Sprite-Swap
  • Loading branch information
Sleet01 authored Jul 25, 2024
2 parents 98bbd37 + f7b39ab commit c96a55b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions megamek/src/megamek/client/AbstractClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ public void changePhase(GamePhase phase) {
MechSummaryCache.dispose();
break;
case LOUNGE:
iconCache.clear();
MechSummaryCache.getInstance().addListener(RandomUnitGenerator::getInstance);
if (MechSummaryCache.getInstance().isInitialized()) {
RandomUnitGenerator.getInstance();
Expand Down
2 changes: 2 additions & 0 deletions megamek/src/megamek/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public MapSettings getMapSettings() {
public void changePhase(GamePhase phase) {
super.changePhase(phase);
switch (phase) {
case LOUNGE:
tilesetManager.reset();
case DEPLOYMENT:
case TARGETING:
case MOVEMENT:
Expand Down

0 comments on commit c96a55b

Please sign in to comment.