Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Server/Source/core_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,17 @@ class Core final : public ICore, public PlayerConnectEventHandler, public Consol

for (IPlayer* player : players.entries())
{
static_cast<Player*>(player)->time_ = time;
Player* impl = static_cast<Player*>(player);
// Players with the clock on ignore SetWorldTime on the client,
// so leave their stored time alone or GetPlayerTime desyncs
// from what they actually see.
if (impl->hasClock())
{
continue;
}
// Override the hour only, keeping minutes, like SA:MP.
// https://github.com/openmultiplayer/open.mp/issues/631
impl->time_ = time + (impl->time_ % Hours(1));
}

updateNetworks();
Expand Down
Loading