fix: fixed Xbox 360 build issues
This commit is contained in:
@@ -101,7 +101,7 @@ HRESULT CScene_DebugOverlay::OnInit( XUIMessageInit *pInitData, BOOL &bHandled )
|
||||
|
||||
|
||||
Minecraft *pMinecraft = Minecraft::GetInstance();
|
||||
m_setTime.SetValue( pMinecraft->level->getLevelData()->getTime() % 24000 );
|
||||
m_setTime.SetValue( pMinecraft->level->getLevelData()->getGameTime() % 24000 );
|
||||
m_setFov.SetValue( (int)pMinecraft->gameRenderer->GetFovVal());
|
||||
|
||||
XuiSetTimer(m_hObj,0,DEBUG_OVERLAY_UPDATE_TIME_PERIOD);
|
||||
@@ -261,7 +261,7 @@ HRESULT CScene_DebugOverlay::OnNotifyValueChanged( HXUIOBJ hObjSource, XUINotify
|
||||
// tries to predict the time
|
||||
// Only works if we are on the host machine, but shouldn't break if not
|
||||
MinecraftServer::SetTime(pNotifyValueChangedData->nValue);
|
||||
pMinecraft->level->getLevelData()->setTime(pNotifyValueChangedData->nValue);
|
||||
pMinecraft->level->getLevelData()->setGameTime(pNotifyValueChangedData->nValue);
|
||||
}
|
||||
if( hObjSource == m_setFov )
|
||||
{
|
||||
@@ -276,7 +276,7 @@ HRESULT CScene_DebugOverlay::OnTimer( XUIMessageTimer *pTimer, BOOL& bHandled )
|
||||
Minecraft *pMinecraft = Minecraft::GetInstance();
|
||||
if(pMinecraft->level != NULL)
|
||||
{
|
||||
m_setTime.SetValue( pMinecraft->level->getLevelData()->getTime() % 24000 );
|
||||
m_setTime.SetValue( pMinecraft->level->getLevelData()->getGameTime() % 24000 );
|
||||
m_setFov.SetValue( (int)pMinecraft->gameRenderer->GetFovVal());
|
||||
}
|
||||
return S_OK;
|
||||
|
||||
Reference in New Issue
Block a user