*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -83,7 +83,7 @@ bool OutdoorPvPObjective::AddObject(uint32 type, uint32 entry, uint32 map, float
|
||||
data.spawntimesecs = 0;
|
||||
data.animprogress = 100;
|
||||
data.spawnMask = 1;
|
||||
data.go_state = 1;
|
||||
data.go_state = GO_STATE_READY;
|
||||
|
||||
objmgr.AddGameobjectToGrid(guid, &data);
|
||||
|
||||
@@ -95,7 +95,7 @@ bool OutdoorPvPObjective::AddObject(uint32 type, uint32 entry, uint32 map, float
|
||||
if(!pMap)
|
||||
return true;
|
||||
GameObject * go = new GameObject;
|
||||
if(!go->Create(guid,entry, pMap,PHASEMASK_NORMAL,x,y,z,o,rotation0,rotation1,rotation2,rotation3,100,1))
|
||||
if(!go->Create(guid,entry, pMap,PHASEMASK_NORMAL,x,y,z,o,rotation0,rotation1,rotation2,rotation3,100,GO_STATE_READY))
|
||||
{
|
||||
sLog.outError("Gameobject template %u not found in database.", entry);
|
||||
delete go;
|
||||
@@ -238,7 +238,7 @@ bool OutdoorPvPObjective::AddCapturePoint(uint32 entry, uint32 map, float x, flo
|
||||
data.spawntimesecs = 1;
|
||||
data.animprogress = 100;
|
||||
data.spawnMask = 1;
|
||||
data.go_state = 1;
|
||||
data.go_state = GO_STATE_READY;
|
||||
|
||||
objmgr.AddGameobjectToGrid(guid, &data);
|
||||
|
||||
@@ -255,7 +255,7 @@ bool OutdoorPvPObjective::AddCapturePoint(uint32 entry, uint32 map, float x, flo
|
||||
return true;
|
||||
// add GO...
|
||||
GameObject * go = new GameObject;
|
||||
if(!go->Create(guid,entry, pMap,PHASEMASK_NORMAL,x,y,z,o,rotation0,rotation1,rotation2,rotation3,100,1))
|
||||
if(!go->Create(guid,entry, pMap,PHASEMASK_NORMAL,x,y,z,o,rotation0,rotation1,rotation2,rotation3,100,GO_STATE_READY))
|
||||
{
|
||||
sLog.outError("Gameobject template %u not found in database.", entry);
|
||||
delete go;
|
||||
|
||||
Reference in New Issue
Block a user