diff options
author | Carbenium <carbenium@outlook.com> | 2020-07-26 20:44:07 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-24 12:39:59 +0100 |
commit | 3bba8d50b176ddbf69b89af81d5c2440c2f8ab90 (patch) | |
tree | e8b314d8232cf66acbee209dbc38e6b0ee81c430 /src/server/game/AI/CreatureAI.cpp | |
parent | 21e9fac8bd7c16f92d12c3df99536401f1209e58 (diff) |
Core/WorldObject: Remove non-std::chrono SummonCreature overload
Remove
TempSummon* SummonCreature(uint32 entry, Position const& pos, TempSummonType despawnType = TEMPSUMMON_MANUAL_DESPAWN, uint32 despawnTime = 0, uint32 vehId = 0, uint32 spellId = 0);
(cherry picked from commit a41f599be72ccc88b13c1cf725f20cee4a5335d7)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index be33c4d1904..b7b8cc88568 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -448,18 +448,18 @@ bool CreatureAI::CheckInRoom() Creature* CreatureAI::DoSummon(uint32 entry, Position const& pos, uint32 despawnTime, TempSummonType summonType) { - return me->SummonCreature(entry, pos, summonType, despawnTime); + return me->SummonCreature(entry, pos, summonType, Milliseconds(despawnTime)); } Creature* CreatureAI::DoSummon(uint32 entry, WorldObject* obj, float radius, uint32 despawnTime, TempSummonType summonType) { Position pos = obj->GetRandomNearPosition(radius); - return me->SummonCreature(entry, pos, summonType, despawnTime); + return me->SummonCreature(entry, pos, summonType, Milliseconds(despawnTime)); } Creature* CreatureAI::DoSummonFlyer(uint32 entry, WorldObject* obj, float flightZ, float radius, uint32 despawnTime, TempSummonType summonType) { Position pos = obj->GetRandomNearPosition(radius); pos.m_positionZ += flightZ; - return me->SummonCreature(entry, pos, summonType, despawnTime); + return me->SummonCreature(entry, pos, summonType, Milliseconds(despawnTime)); } |