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
10 changes: 10 additions & 0 deletions src/game/CSector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading