Skip to content

Commit

Permalink
Creature: Accept Chrono literals for ForcedDespawn
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Oct 6, 2024
1 parent f47237e commit ee21ebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/Entities/Creature.h
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ class Creature : public Unit
void RemoveCorpse(bool inPlace = false);

virtual void ForcedDespawn(uint32 timeMSToDespawn = 0, bool onlyAlive = false);
virtual void ForcedDespawn(std::chrono::milliseconds timeToDespawn = 0ms, bool onlyAlive = false) { ForcedDespawn(timeToDespawn.count(), onlyAlive); }

time_t const& GetRespawnTime() const { return m_respawnTime; }
time_t GetRespawnTimeEx() const;
Expand Down

0 comments on commit ee21ebe

Please sign in to comment.