Skip to content

Commit

Permalink
Fix build and formatting and reenable the WG script load
Browse files Browse the repository at this point in the history
Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
xfurry committed Jan 8, 2018
1 parent a3a2528 commit 29d5b90
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
30 changes: 15 additions & 15 deletions src/game/Battlefield/Battlefield.h
Expand Up @@ -29,29 +29,29 @@ class Group;

enum BattlefieldStatus
{
BF_STATUS_COOLDOWN = 0,
BF_STATUS_IN_PROGRESS = 1
BF_STATUS_COOLDOWN = 0,
BF_STATUS_IN_PROGRESS = 1
};

enum
{
BF_INACTIVE_REMOVE_DELAY = 5 * MINUTE,
BF_UNACCEPTED_REMOVE_DELAY = 10,
BF_TIME_TO_ACCEPT = 20,
BF_INACTIVE_REMOVE_DELAY = 5 * MINUTE,
BF_UNACCEPTED_REMOVE_DELAY = 10,
BF_TIME_TO_ACCEPT = 20,
};

enum BattlefieldGoState
{
BF_GO_STATE_NONE = 0,
BF_GO_STATE_NEUTRAL_INTACT = 1,
BF_GO_STATE_NEUTRAL_DAMAGED = 2,
BF_GO_STATE_NEUTRAL_DESTROYED = 3,
BF_GO_STATE_HORDE_INTACT = 4,
BF_GO_STATE_HORDE_DAMAGED = 5,
BF_GO_STATE_HORDE_DESTROYED = 6,
BF_GO_STATE_ALLIANCE_INTACT = 7,
BF_GO_STATE_ALLIANCE_DAMAGED = 8,
BF_GO_STATE_ALLIANCE_DESTROYED = 9,
BF_GO_STATE_NONE = 0,
BF_GO_STATE_NEUTRAL_INTACT = 1,
BF_GO_STATE_NEUTRAL_DAMAGED = 2,
BF_GO_STATE_NEUTRAL_DESTROYED = 3,
BF_GO_STATE_HORDE_INTACT = 4,
BF_GO_STATE_HORDE_DAMAGED = 5,
BF_GO_STATE_HORDE_DESTROYED = 6,
BF_GO_STATE_ALLIANCE_INTACT = 7,
BF_GO_STATE_ALLIANCE_DAMAGED = 8,
BF_GO_STATE_ALLIANCE_DESTROYED = 9,
};

class BattlefieldBuilding
Expand Down
3 changes: 3 additions & 0 deletions src/game/Battlefield/BattlefieldHandler.cpp
Expand Up @@ -20,6 +20,9 @@
#include "Server/WorldSession.h"
#include "OutdoorPvP/OutdoorPvPMgr.h"
#include "Battlefield/Battlefield.h"
#include "WorldPacket.h"
#include "Log.h"
#include "Server/Opcodes.h"

/**
Invite a player to join and teleport to a battlefield
Expand Down
2 changes: 1 addition & 1 deletion src/game/OutdoorPvP/OutdoorPvPMgr.cpp
Expand Up @@ -73,7 +73,7 @@ void OutdoorPvPMgr::InitOutdoorPvP()
LOAD_OPVP_ZONE(TF);
LOAD_OPVP_ZONE(NA);
LOAD_OPVP_ZONE(GH);
//LOAD_BATTLEFIELD(WG);
LOAD_BATTLEFIELD(WG);

sLog.outString(">> Loaded %u Outdoor PvP zones", counter);
sLog.outString();
Expand Down

0 comments on commit 29d5b90

Please sign in to comment.