Revert "Project modernization (#630)"
This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
HRESULT CScene_Chat::OnInit( XUIMessageInit* pInitData, BOOL& bHandled )
|
||||
{
|
||||
m_iPad = *static_cast<int *>(pInitData->pvInitData);
|
||||
m_iPad = *(int *)pInitData->pvInitData;
|
||||
|
||||
MapChildControls();
|
||||
|
||||
@@ -37,7 +37,7 @@ HRESULT CScene_Chat::OnTimer( XUIMessageTimer *pXUIMessageTimer, BOOL &bHandled)
|
||||
m_Labels[i].SetOpacity(0);
|
||||
}
|
||||
}
|
||||
if(pMinecraft->localplayers[m_iPad]!= nullptr)
|
||||
if(pMinecraft->localplayers[m_iPad]!= NULL)
|
||||
{
|
||||
m_Jukebox.SetText( pGui->getJukeboxMessage(m_iPad).c_str() );
|
||||
m_Jukebox.SetOpacity( pGui->getJukeboxOpacity(m_iPad) );
|
||||
|
||||
Reference in New Issue
Block a user