Adds additional handling for cacheHash,
@@ -72,6 +72,7 @@ public class Tile {
public void reset() {
removeAllShaders();
+ cacheHash = 0;
updateCacheHash = true;
character = ' ';
@@ -111,9 +112,11 @@ public class Tile {
foregroundAndBackgroundColorEqual = otherTile.isForegroundAndBackgroundColorEqual();
+ if (cacheHash != otherTile.getCacheHash()) {
cacheHash = otherTile.getCacheHash();
updateCacheHash = true;
}
+ }
/** Updates the cache hash value. */
public void updateCacheHash() {
