Fix tileset height update when switching tilesets in Terrain Tag editor (#62)

This commit is contained in:
Marc L
2020-11-14 17:16:37 +00:00
committed by GitHub
parent 9841bd2630
commit bf356a458b

View File

@@ -101,9 +101,9 @@ class PokemonTilesetScene
@x = 0 @x = 0
@y = -TILE_SIZE @y = -TILE_SIZE
@topy = -TILE_SIZE @topy = -TILE_SIZE
height = @sprites["tileset"].bitmap.height
pbUpdateTileset pbUpdateTileset
pbFadeInAndShow(@sprites) pbFadeInAndShow(@sprites)
height = @sprites["tileset"].bitmap.height
######## ########
loop do loop do
Graphics.update Graphics.update
@@ -161,6 +161,7 @@ class PokemonTilesetScene
pbUpdateTileset pbUpdateTileset
when 2 when 2
pbChooseTileset pbChooseTileset
height = @sprites["tileset"].bitmap.height
end end
elsif Input.trigger?(Input::B) elsif Input.trigger?(Input::B)
if pbConfirmMessage(_INTL("Save changes?")) if pbConfirmMessage(_INTL("Save changes?"))