mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Renamed some more global variables
This commit is contained in:
@@ -432,7 +432,7 @@ class TilemapRenderer
|
||||
# Check for map change
|
||||
if @current_map_id != $game_map.map_id
|
||||
if MapFactoryHelper.hasConnections?(@current_map_id)
|
||||
offsets = $MapFactory.getRelativePos(@current_map_id, 0, 0, $game_map.map_id, 0, 0)
|
||||
offsets = $map_factory.getRelativePos(@current_map_id, 0, 0, $game_map.map_id, 0, 0)
|
||||
if offsets
|
||||
@tile_offset_x -= offsets[0]
|
||||
@tile_offset_y -= offsets[1]
|
||||
@@ -554,7 +554,7 @@ class TilemapRenderer
|
||||
visited[i] = []
|
||||
@tiles_vertical_count.times { |j| visited[i][j] = false }
|
||||
end
|
||||
$MapFactory.maps.each do |map|
|
||||
$map_factory.maps.each do |map|
|
||||
# Calculate x/y ranges of tile sprites that represent them
|
||||
map_display_x = (map.display_x.to_f / Game_Map::X_SUBPIXELS).round
|
||||
map_display_y = (map.display_y.to_f / Game_Map::Y_SUBPIXELS).round
|
||||
|
||||
Reference in New Issue
Block a user