Removed alternate map rendering code

This commit is contained in:
Maruno17
2021-05-19 20:25:51 +01:00
parent 42b7988089
commit e7d116780f
12 changed files with 51 additions and 575 deletions

View File

@@ -8,18 +8,7 @@ class TilemapLoader
end
def updateClass
case $PokemonSystem.tilemap
when 1 # Custom (recommended)
setClass(CustomTilemap)
when 2 # Perspective
setClass(Draw_Tilemap)
else # Original (SynchronizedTilemap) or custom (CustomTilemap)
if Tilemap.method_defined?(:passages)
setClass(CustomTilemap)
else
setClass(SynchronizedTilemap)
end
end
setClass(CustomTilemap)
end
def setClass(cls)
@@ -38,7 +27,7 @@ class TilemapLoader
end
@tilemap.dispose
@tilemap = newtilemap
newtilemap.update if cls!=SynchronizedTilemap
newtilemap.update
else
@tilemap = newtilemap
end