Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Fix showing map area name in transition mode
Browse files Browse the repository at this point in the history
  • Loading branch information
syyePhenomenol committed Jan 15, 2022
1 parent bde26b4 commit 6518213
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions MapModS/Map/Transition.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using RandomizerCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace MapModS.Map
Expand Down Expand Up @@ -58,7 +54,11 @@ private static string GetTruncatedScene(string roomName)

private static void SetActiveColor(Transform transform, SpriteRenderer sr, Color color)
{
if (sr == null) return;
if (sr == null)
{
transform.gameObject.SetActive(false);
return;
}

transform.gameObject.SetActive(true);
sr.color = color;
Expand Down Expand Up @@ -204,4 +204,4 @@ public static void ResetMapColors(GameMap gameMap)
}
}
}
}
}
1 change: 0 additions & 1 deletion MapModS/Map/WorldMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using MapModS.Data;
using MapModS.Settings;
using MapModS.Trackers;
using RandomizerCore;
using System;
using System.Collections.Generic;
using UnityEngine;
Expand Down

0 comments on commit 6518213

Please sign in to comment.