[10077] Add delayed far teleports for opcode handlers
commit3d078ebb36b9af09c7ed3e7445542bbd2ca8d595
authorVladimirMangos <vladimir@getmangos.com>
Sat, 19 Jun 2010 01:52:17 +0000 (19 05:52 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Sat, 19 Jun 2010 01:56:55 +0000 (19 05:56 +0400)
treecae30c80741a6a6f9b97d810d20abbb50a6b44e3
parentecc34f84ffd2ed8df9ca315ca623fc9f2bcc11f8
[10077] Add delayed far teleports for opcode handlers

Some opcode handlers have many code with possible deep calling
far teleports by some reason (death, quest script, etc).
This can be triggering unexpected lost Map context and crashs result.

Note: player login opcode still have disbled delayed teleports (old way work)
just becase Player object created in it and not have flag set.
Calling point look not 100% safe but at this commit this way not chnages for while.
src/game/CharacterHandler.cpp
src/game/WorldSession.cpp
src/game/WorldSession.h
src/shared/revision_nr.h