View Single Post
04-25-14, 12:46 AM   #11
Digital_Utopia
A Flamescale Wyrmkin
 
Digital_Utopia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 110
Originally Posted by semlar View Post
Why do you need to force the map back to the current zone every time it gets changed?

If you need information about the map the player is currently on, you only need to call SetMapToCurrentZone in response to a few zone events, store whatever information you need in a table, and after that it doesn't matter what anything does to the map until the next zone event.


ZONE_CHANGED_NEW_AREA doesn't fire when you switch maps, that only triggers WORLD_MAP_UPDATE.
Hey, guess what? I found the problem!

Basically, I'm an idiot.

It's amazing the kind of trouble a malformed if statement can cause. Because of that, a registered, but never handled WORLD_MAP_UPDATE leaked through into the handler for my ZCNA event. Oh well, I'll get this figured out yet. Sorry I had to drag you guys into my noob moment, but thanks anyway for the help.
__________________
  Reply With Quote