Fixed issue with displaying unloaded texture briefly before new one is loaded

This commit is contained in:
Collin Smith 2019-11-15 05:28:02 -08:00
parent 22d7701647
commit 11fe2682f6

View File

@ -69,6 +69,10 @@ public class ZoneEntrySystem extends EntitySystem {
private void displayEntry(Map map, Map.Zone zone) {
if (entryDescriptor != null) Riiablo.assets.unload(entryDescriptor.fileName);
if (entryImage != null) {
entryImage.clearActions();
entryImage.setVisible(false);
}
loaded = false;
// TODO: i18n? Not sure if these have translations.