mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 03:45:32 +00:00
Remove some superfluous mSkyManager NULL checks
This commit is contained in:
parent
98e5cb6d7b
commit
fc0f04324c
1 changed files with 4 additions and 10 deletions
|
@ -401,29 +401,24 @@ void RenderingManager::setWaterHeight(const float height)
|
||||||
|
|
||||||
void RenderingManager::skyEnable ()
|
void RenderingManager::skyEnable ()
|
||||||
{
|
{
|
||||||
if(mSkyManager)
|
|
||||||
mSkyManager->enable();
|
mSkyManager->enable();
|
||||||
|
|
||||||
mOcclusionQuery->setSunNode(mSkyManager->getSunNode());
|
mOcclusionQuery->setSunNode(mSkyManager->getSunNode());
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingManager::skyDisable ()
|
void RenderingManager::skyDisable ()
|
||||||
{
|
{
|
||||||
if(mSkyManager)
|
mSkyManager->disable();
|
||||||
mSkyManager->disable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingManager::skySetHour (double hour)
|
void RenderingManager::skySetHour (double hour)
|
||||||
{
|
{
|
||||||
if(mSkyManager)
|
mSkyManager->setHour(hour);
|
||||||
mSkyManager->setHour(hour);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RenderingManager::skySetDate (int day, int month)
|
void RenderingManager::skySetDate (int day, int month)
|
||||||
{
|
{
|
||||||
if(mSkyManager)
|
mSkyManager->setDate(day, month);
|
||||||
mSkyManager->setDate(day, month);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int RenderingManager::skyGetMasserPhase() const
|
int RenderingManager::skyGetMasserPhase() const
|
||||||
|
@ -438,8 +433,7 @@ int RenderingManager::skyGetSecundaPhase() const
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderingManager::skySetMoonColour (bool red){
|
void RenderingManager::skySetMoonColour (bool red){
|
||||||
if(mSkyManager)
|
mSkyManager->setMoonColour(red);
|
||||||
mSkyManager->setMoonColour(red);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RenderingManager::toggleRenderMode(int mode)
|
bool RenderingManager::toggleRenderMode(int mode)
|
||||||
|
|
Loading…
Reference in a new issue