Core/Maps: Fixed loading vmaps and mmaps in instances

(ported commit b773d9997b)
This commit is contained in:
Ovahlord
2018-05-06 18:47:51 +02:00
parent 0e5be63528
commit cfee8a09a1
15 changed files with 56 additions and 105 deletions

View File

@@ -323,7 +323,7 @@ class boss_foe_reaper_5000 : public CreatureScript
// and use our own position instead of our home position
float respX, respY, respZ, respO, destX, destY, destZ, travelDistZ;
me->GetPosition(respX, respY, respZ, respO);
Map const* map = me->GetBaseMap();
Map const* map = me->GetMap();
const float angle = float(rand_norm()) * static_cast<float>(M_PI * 2.0f);
const float range = 15.0f;
const float distanceX = range * std::cos(angle);