From 4111cd78c99c2cb3818a1f7e2bbec39931b102a8 Mon Sep 17 00:00:00 2001 From: DavideRei <118212274+DavideRei@users.noreply.github.com> Date: Sun, 29 Mar 2026 16:19:15 +0200 Subject: [PATCH] Restore light and weather update when a player enter a new sector Like in 0.56b, update immediately and not wait for sector tick --- src/game/CSector.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/game/CSector.cpp b/src/game/CSector.cpp index 203c68268..2a9e24b40 100644 --- a/src/game/CSector.cpp +++ b/src/game/CSector.cpp @@ -1046,6 +1046,16 @@ bool CSector::MoveCharToSector( CChar * pChar ) } } + // Send new weather and light for this sector + CClient *pClient = pChar->GetClientActive(); + if (pClient != nullptr) + { + pClient->addLight(); + // Provide the weather as an arg as we are not in the new location yet. + pClient->addWeather(GetWeather()); + pClient->addSeason(GetSeason()); + } + // Remove from previous spot. m_Chars_Active.AddCharActive(pChar);