From 0eaa32a7cc59e87788534ff7ab530cadefa61302 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sat, 26 Apr 2014 14:21:13 +0200 Subject: [PATCH 1/2] DB/Creature: Fix typos on dc8a7a6 **CENSORED** npcs with same name. --- sql/updates/world/2014_04_26_04_world_creature_template.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sql/updates/world/2014_04_26_04_world_creature_template.sql diff --git a/sql/updates/world/2014_04_26_04_world_creature_template.sql b/sql/updates/world/2014_04_26_04_world_creature_template.sql new file mode 100644 index 00000000000..bd24736e10a --- /dev/null +++ b/sql/updates/world/2014_04_26_04_world_creature_template.sql @@ -0,0 +1,3 @@ +-- +UPDATE `creature_template` SET `faction_A`=1770, `faction_H`=1770 WHERE `entry`=37614; +UPDATE `creature_template` SET `faction_A`=534, `faction_H`=534 WHERE `entry`=37606; From 113e6b0162f88679c12981756b1dd87b79993e4f Mon Sep 17 00:00:00 2001 From: joschiwald Date: Sat, 26 Apr 2014 14:42:56 +0200 Subject: [PATCH 2/2] Really fixed build and warnings --- src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp | 4 ++-- src/server/game/Battlegrounds/Zones/BattlegroundSA.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp index 72ffddadf56..81b8f725e80 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp @@ -569,7 +569,7 @@ void BattlegroundSA::ProcessEvent(WorldObject* obj, uint32 eventId, WorldObject* if (Creature* c = obj->FindNearestCreature(NPC_WORLD_TRIGGER, 500.0f)) SendChatMessage(c, gate->DamagedText, invoker); - PlaySoundToAll(Attackers == ALLIANCE ? SOUND_WALL_ATTACKED_ALLIANCE : SOUND_WALL_ATTACKED_HORDE); + PlaySoundToAll(Attackers == TEAM_ALLIANCE ? SOUND_WALL_ATTACKED_ALLIANCE : SOUND_WALL_ATTACKED_HORDE); } // destroyed else if (eventId == go->GetGOInfo()->building.destroyedEvent) @@ -617,7 +617,7 @@ void BattlegroundSA::ProcessEvent(WorldObject* obj, uint32 eventId, WorldObject* if (Creature* c = obj->FindNearestCreature(NPC_WORLD_TRIGGER, 500.0f)) SendChatMessage(c, gate->DestroyedText, invoker); - PlaySoundToAll(Attackers == ALLIANCE ? SOUND_WALL_DESTROYED_ALLIANCE : SOUND_WALL_DESTROYED_HORDE); + PlaySoundToAll(Attackers == TEAM_ALLIANCE ? SOUND_WALL_DESTROYED_ALLIANCE : SOUND_WALL_DESTROYED_HORDE); } else break; diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundSA.h b/src/server/game/Battlegrounds/Zones/BattlegroundSA.h index 2a5c8fc15e4..8e3c933f893 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.h +++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.h @@ -20,6 +20,7 @@ #define __BATTLEGROUNDSA_H #include "Battleground.h" +#include "Object.h" struct BattlegroundSAScore : public BattlegroundScore {