summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2017-11-13 16:43:47 -0800
committerRider Linden <rider@lindenlab.com>2017-11-13 16:43:47 -0800
commit35873f5963791af08a9951624dc96481a71fa1d7 (patch)
tree7be29babda869025d2b4b2b9535383e58d3d99bf /indra/newview/llviewermessage.cpp
parentb227c86b450134f17ec0624655e1e4c5cb5ba89d (diff)
Clean up on sun and moon
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index e7917c043f..cd3443eee2 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -4738,10 +4738,9 @@ void process_time_synch(LLMessageSystem *mesgsys, void **user_data)
LL_DEBUGS("Windlight Sync") << "Sun phase: " << phase << " rad = " << fmodf(phase / F_TWO_PI + 0.25, 1.f) * 24.f << " h" << LL_ENDL;
gSky.setSunPhase(phase);
- gSky.setSunTargetDirection(sun_direction, sun_ang_velocity);
- if ( !(gSavedSettings.getBOOL("SkyOverrideSimSunPosition") || gSky.getOverrideSun()) )
+ if ( !gSavedSettings.getBOOL("SkyOverrideSimSunPosition") )
{
- gSky.setSunDirection(sun_direction, sun_ang_velocity);
+ gSky.setSunDirection(sun_direction, -sun_direction);
}
}