1
0

Merge pull request #1673 from gushromp/master

Updated cPlayer::DoMoveToWorld to send target world's weather info to Player
This commit is contained in:
Mattes D 2014-12-15 20:16:25 +01:00
commit 6de847ef66

View File

@ -1604,6 +1604,12 @@ 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;
}