From 2b8c003140e3a57e84f477bee1d84951c22b9ded Mon Sep 17 00:00:00 2001 From: Lopez <272230284+LopezDev7@users.noreply.github.com> Date: Fri, 14 Aug 2026 19:07:16 -0500 Subject: [PATCH] fix: don't reset player minutes on worldtime change (#631) --- Server/Source/core_impl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server/Source/core_impl.hpp b/Server/Source/core_impl.hpp index 75acea715..4a061c5b9 100644 --- a/Server/Source/core_impl.hpp +++ b/Server/Source/core_impl.hpp @@ -2151,7 +2151,10 @@ class Core final : public ICore, public PlayerConnectEventHandler, public Consol for (IPlayer* player : players.entries()) { - static_cast(player)->time_ = time; + Player* impl = static_cast(player); + // 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();