mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed rounding error in positioning of overworld weather tile
sprites
This commit is contained in:
@@ -326,8 +326,8 @@ module RPG
|
||||
if @fading && @fade_time >= [FADE_OLD_TONE_END - @time_shift, 0].max
|
||||
weather_type = @target_type
|
||||
end
|
||||
sprite.x = @ox + @tile_x + (index % @tiles_wide) * sprite.bitmap.width
|
||||
sprite.y = @oy + @tile_y + (index / @tiles_wide) * sprite.bitmap.height
|
||||
sprite.x = (@ox + @tile_x + (index % @tiles_wide) * sprite.bitmap.width).round
|
||||
sprite.y = (@oy + @tile_y + (index / @tiles_wide) * sprite.bitmap.height).round
|
||||
sprite.x += @tiles_wide * sprite.bitmap.width if sprite.x - @ox < -sprite.bitmap.width
|
||||
sprite.y -= @tiles_tall * sprite.bitmap.height if sprite.y - @oy > Graphics.height
|
||||
sprite.visible = true
|
||||
|
||||
Reference in New Issue
Block a user