mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
*Do not convert Map* to InstanceMap* when calling Map::SendToPlayers() to see if it can fix the bug that the function does not work. (If it can, it will be really wierd)
--HG-- branch : trunk
This commit is contained in:
@@ -301,7 +301,7 @@ void hyjalAI::UpdateWorldState(uint32 field, uint32 value)
|
||||
data << field;
|
||||
data << value;
|
||||
|
||||
((InstanceMap*)map)->SendToPlayers(&data);
|
||||
map->SendToPlayers(&data);
|
||||
|
||||
// TODO: Uncomment and remove everything above this line only when the core patch for this is accepted
|
||||
//m_creature->GetMap()->UpdateWorldState(field, value);
|
||||
|
||||
@@ -149,7 +149,7 @@ struct TRINITY_DLL_DECL instance_mount_hyjal : public ScriptedInstance
|
||||
data << field;
|
||||
data << value;
|
||||
|
||||
((InstanceMap*)instance)->SendToPlayers(&data);
|
||||
instance->SendToPlayers(&data);
|
||||
}
|
||||
|
||||
const char* Save()
|
||||
|
||||
@@ -169,7 +169,7 @@ struct TRINITY_DLL_DECL boss_akilzonAI : public ScriptedAI
|
||||
WorldPacket data(SMSG_WEATHER, (4+4+4));
|
||||
data << uint32(weather) << (float)grade << uint8(0);
|
||||
|
||||
((InstanceMap*)map)->SendToPlayers(&data);
|
||||
map->SendToPlayers(&data);
|
||||
}
|
||||
|
||||
void HandleStormSequence(Unit *Cloud) // 1: begin, 2-9: tick, 10: end
|
||||
|
||||
@@ -176,7 +176,7 @@ struct TRINITY_DLL_DECL instance_zulaman : public ScriptedInstance
|
||||
{
|
||||
WorldPacket data(SMSG_UPDATE_WORLD_STATE, 8);
|
||||
data << field << value;
|
||||
((InstanceMap*)instance)->SendToPlayers(&data);
|
||||
instance->SendToPlayers(&data);
|
||||
}
|
||||
|
||||
const char* Save()
|
||||
|
||||
Reference in New Issue
Block a user