Fixed location signpost display incorrectly caring about a map's RMXP name when it shouldn't

This commit is contained in:
Maruno17
2022-05-06 18:59:08 +01:00
parent 1b551b30f4
commit 5a1ef50e57

View File

@@ -325,9 +325,7 @@ EventHandlers.add(:on_map_or_spriteset_change, :show_location_window,
Settings::NO_SIGNPOSTS[2 * i] == $game_map.map_id
break if nosignpost
end
mapinfos = pbLoadMapInfos
oldmapname = mapinfos[$PokemonGlobal.mapTrail[1]].name
nosignpost = true if $game_map.name == oldmapname
nosignpost = true if $game_map.name == pbGetMapNameFromId($PokemonGlobal.mapTrail[1])
end
scene.spriteset.addUserSprite(LocationWindow.new($game_map.name)) if !nosignpost
}