mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-21 10:38:20 +00:00
Update questmgr.cpp
This commit is contained in:
+6
-6
@@ -361,9 +361,9 @@ void QuestManager::enable_spawn2(uint32 spawn2_id)
|
|||||||
{
|
{
|
||||||
database.UpdateSpawn2Status(spawn2_id, 1, zone->GetInstanceID());
|
database.UpdateSpawn2Status(spawn2_id, 1, zone->GetInstanceID());
|
||||||
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
|
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
|
||||||
ServerSpawnStatusChange_Struct* ssc = (ServerSpawnStatusChange_Struct*) pack->pBuffer;
|
auto *ssc = (ServerSpawnStatusChange_Struct *) pack->pBuffer;
|
||||||
ssc->id = spawn2_id;
|
ssc->id = spawn2_id;
|
||||||
ssc->new_status = 1;
|
ssc->new_status = true;
|
||||||
worldserver.SendPacket(pack);
|
worldserver.SendPacket(pack);
|
||||||
safe_delete(pack);
|
safe_delete(pack);
|
||||||
}
|
}
|
||||||
@@ -372,9 +372,9 @@ void QuestManager::disable_spawn2(uint32 spawn2_id)
|
|||||||
{
|
{
|
||||||
database.UpdateSpawn2Status(spawn2_id, 0, zone->GetInstanceID());
|
database.UpdateSpawn2Status(spawn2_id, 0, zone->GetInstanceID());
|
||||||
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
|
auto pack = new ServerPacket(ServerOP_SpawnStatusChange, sizeof(ServerSpawnStatusChange_Struct));
|
||||||
ServerSpawnStatusChange_Struct* ssc = (ServerSpawnStatusChange_Struct*) pack->pBuffer;
|
auto *ssc = (ServerSpawnStatusChange_Struct *) pack->pBuffer;
|
||||||
ssc->id = spawn2_id;
|
ssc->id = spawn2_id;
|
||||||
ssc->new_status = 0;
|
ssc->new_status = false;
|
||||||
worldserver.SendPacket(pack);
|
worldserver.SendPacket(pack);
|
||||||
safe_delete(pack);
|
safe_delete(pack);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user