diff options
| author | Carbenium <carbenium@outlook.com> | 2020-07-27 00:25:18 +0200 |
|---|---|---|
| committer | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-27 23:00:51 +0200 |
| commit | 8642aaaf9268364454b409db7eb62f31210e6d6c (patch) | |
| tree | b6bfe81bfe06999781808b10641774fa2f5a1490 /src/server/scripts/Commands | |
| parent | 3620b47c412d88cc2e0ab10e2654913e5487c8ac (diff) | |
Core/WorldObject: Replace non-std::chrono SummonGameObject overloads
Also fix intended despawn time of GOs used by the "Engineering a Disaster" quest
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_gobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 77951531a4b..2bff30fb3d8 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -207,10 +207,10 @@ public: Player* player = handler->GetSession()->GetPlayer(); char* spawntime = strtok(nullptr, " "); - uint32 spawntm = 300; + Seconds spawntm = 300s; if (spawntime) - spawntm = atoul(spawntime); + spawntm = Seconds(atoul(spawntime)); QuaternionData rotation = QuaternionData::fromEulerAnglesZYX(player->GetOrientation(), 0.f, 0.f); uint32 objectId = atoul(id); |
