1
0

Updated cPlayer::DoMoveToWorld to send target world's weather info to Player

This commit is contained in:
blashyrk 2014-12-15 17:45:42 +01:00
parent b3e5872c22
commit 4e5d2c36e9

View File

@ -1604,6 +1604,10 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn)
// Update the view distance.
m_ClientHandle->SetViewDistance(m_ClientHandle->GetRequestedViewDistance());
// Send current weather of target world to player
if (a_World->GetDimension() == dimOverworld)
m_ClientHandle->SendWeather(a_World->GetWeather());
return true;
}