Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
- # * Load-Dest-Enemy-Bugfix 14 April 2013
- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- # Author: Eshra
- # Compatibility: RPG Maker VX Ace
- # Dependencies: raTBS-Alpha
- #-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
- # Usage:
- #
- # Paste this below the other TBS Classes and Modules. This snippet fixes a bug
- # which would cause a crash to happen after loading a previously saved game
- # and then destroying an enmy in a tactical battle.
- #
- # Updates:
- # 14 April 2013 - Init Release
- #-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
- class Game_Map
- #----------------------------------------------------------------------------
- # * Reset exy_cache based on event data
- #----------------------------------------------------------------------------
- def reset_exy_cache
- @events.keys.each do |id|
- e = @events[id]
- next if !e
- @exy_cache[[e.x,e.y]].push(id) if !(@exy_cache[[e.x,e.y]]||=[]).include?(id)
- end
- end
- end
- # EOF
Advertisement
Add Comment
Please, Sign In to add comment