Fixed playing the credits/changing $scene leaving a ghost image of the old map behind, fixed Pokémon icons sometimes disappearing in storage screen

This commit is contained in:
Maruno17
2022-07-03 16:40:25 +01:00
committed by infinitefusion
parent 799c1e27a6
commit 7d425b0e05
5 changed files with 28 additions and 9 deletions

View File

@@ -499,7 +499,7 @@ class PokemonBoxSprite < SpriteWrapper
sprite.viewport = self.viewport
sprite.x = xval
sprite.y = yval
sprite.z = 0
sprite.z = 1
end
xval += 48
end
@@ -630,12 +630,11 @@ class PokemonBoxPartySprite < SpriteWrapper
@pokemonsprites.compact!
for j in 0...Settings::MAX_PARTY_SIZE
sprite = @pokemonsprites[j]
if sprite && !sprite.disposed?
sprite.viewport = self.viewport
sprite.x = self.x + xvalues[j]
sprite.y = self.y + yvalues[j]
sprite.z = 0
end
next if sprite.nil? || sprite.disposed?
sprite.viewport = self.viewport
sprite.x = self.x + xvalues[j]
sprite.y = self.y + yvalues[j]
sprite.z = 1
end
end