*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:
megamage
2008-11-21 16:36:29 -06:00
parent b063480b3f
commit 11c55ba0a1
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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()

View File

@@ -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

View File

@@ -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()