mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed crash in map rendering, fixed crash when resizing screen
This commit is contained in:
@@ -790,13 +790,13 @@ class CustomTilemap
|
|||||||
xsize = @map_data.xsize
|
xsize = @map_data.xsize
|
||||||
ysize = @map_data.ysize
|
ysize = @map_data.ysize
|
||||||
minX = (@ox / @tileWidth) - 1
|
minX = (@ox / @tileWidth) - 1
|
||||||
minX.clamp(0, xsize - 1)
|
minX = minX.clamp(0, xsize - 1)
|
||||||
maxX = ((@ox + @viewport.rect.width) / @tileWidth) + 1
|
maxX = ((@ox + @viewport.rect.width) / @tileWidth) + 1
|
||||||
maxX.clamp(0, xsize - 1)
|
maxX = maxX.clamp(0, xsize - 1)
|
||||||
minY = (@oy / @tileHeight) - 1
|
minY = (@oy / @tileHeight) - 1
|
||||||
minY.clamp(0, ysize - 1)
|
minY = minY.clamp(0, ysize - 1)
|
||||||
maxY = ((@oy + @viewport.rect.height) / @tileHeight) + 1
|
maxY = ((@oy + @viewport.rect.height) / @tileHeight) + 1
|
||||||
maxY.clamp(0, ysize - 1)
|
maxY = maxY.clamp(0, ysize - 1)
|
||||||
count = 0
|
count = 0
|
||||||
if minX < maxX && minY < maxY
|
if minX < maxX && minY < maxY
|
||||||
@usedsprites = usesprites || @usedsprites
|
@usedsprites = usesprites || @usedsprites
|
||||||
|
|||||||
@@ -368,14 +368,14 @@ class PokemonOption_Scene
|
|||||||
proc { $PokemonSystem.textskin },
|
proc { $PokemonSystem.textskin },
|
||||||
proc { |value|
|
proc { |value|
|
||||||
$PokemonSystem.textskin = value
|
$PokemonSystem.textskin = value
|
||||||
MessageConfig.pbSetSpeechFrame("Graphics/Windowskins/"+$SpeechFrames[value])
|
MessageConfig.pbSetSpeechFrame("Graphics/Windowskins/" + $SpeechFrames[value])
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
NumberOption.new(_INTL("Menu Frame"),1,$TextFrames.length,
|
NumberOption.new(_INTL("Menu Frame"),1,$TextFrames.length,
|
||||||
proc { $PokemonSystem.frame },
|
proc { $PokemonSystem.frame },
|
||||||
proc { |value|
|
proc { |value|
|
||||||
$PokemonSystem.frame = value
|
$PokemonSystem.frame = value
|
||||||
MessageConfig.pbSetSystemFrame($TextFrames[value])
|
MessageConfig.pbSetSystemFrame("Graphics/Windowskins/" + $TextFrames[value])
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
EnumOption.new(_INTL("Font Style"),[_INTL("Em"),_INTL("R/S"),_INTL("FRLG"),_INTL("DP")],
|
EnumOption.new(_INTL("Font Style"),[_INTL("Em"),_INTL("R/S"),_INTL("FRLG"),_INTL("DP")],
|
||||||
|
|||||||
Reference in New Issue
Block a user