diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.cpp')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index c03c63d..cba1af1 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -168,7 +168,7 @@ | |||
168 | #include "llimview.h" | 168 | #include "llimview.h" |
169 | #include "llviewerthrottle.h" | 169 | #include "llviewerthrottle.h" |
170 | #include "llparcel.h" | 170 | #include "llparcel.h" |
171 | 171 | #include "viewertime.h" | |
172 | 172 | ||
173 | #include "llinventoryview.h" | 173 | #include "llinventoryview.h" |
174 | 174 | ||
@@ -433,6 +433,9 @@ static void settings_to_globals() | |||
433 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); | 433 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); |
434 | 434 | ||
435 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); | 435 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); |
436 | |||
437 | ViewerTime::sUse24HourTime = gSavedSettings.getBOOL("Use24HourTime"); | ||
438 | ViewerTime::sUseUTCTime = gSavedSettings.getBOOL("UseUTCTime"); | ||
436 | } | 439 | } |
437 | 440 | ||
438 | static void settings_modify() | 441 | static void settings_modify() |
@@ -1243,6 +1246,15 @@ bool LLAppViewer::cleanup() | |||
1243 | LLWorldMap::getInstance()->reset(); // release any images | 1246 | LLWorldMap::getInstance()->reset(); // release any images |
1244 | 1247 | ||
1245 | LLCalc::cleanUp(); | 1248 | LLCalc::cleanUp(); |
1249 | |||
1250 | delete gHippoGridManager; | ||
1251 | gHippoGridManager = NULL; | ||
1252 | |||
1253 | delete gHippoLimits; | ||
1254 | gHippoLimits = NULL; | ||
1255 | |||
1256 | delete gViewerTime; | ||
1257 | gViewerTime = NULL; | ||
1246 | 1258 | ||
1247 | llinfos << "Global stuff deleted" << llendflush; | 1259 | llinfos << "Global stuff deleted" << llendflush; |
1248 | 1260 | ||
@@ -1457,7 +1469,7 @@ bool LLAppViewer::cleanup() | |||
1457 | } | 1469 | } |
1458 | 1470 | ||
1459 | // Delete workers first | 1471 | // Delete workers first |
1460 | // shotdown all worker threads before deleting them in case of co-dependencies | 1472 | // shutdown all worker threads before deleting them in case of co-dependencies |
1461 | sTextureCache->shutdown(); | 1473 | sTextureCache->shutdown(); |
1462 | sTextureFetch->shutdown(); | 1474 | sTextureFetch->shutdown(); |
1463 | sImageDecodeThread->shutdown(); | 1475 | sImageDecodeThread->shutdown(); |
@@ -2297,6 +2309,12 @@ bool LLAppViewer::initWindow() | |||
2297 | LLTrans::parseStrings("strings.xml"); | 2309 | LLTrans::parseStrings("strings.xml"); |
2298 | LLUITrans::parseStrings("ui_strings.xml"); | 2310 | LLUITrans::parseStrings("ui_strings.xml"); |
2299 | 2311 | ||
2312 | // Start up the viewer's clock -- MC | ||
2313 | if (!gViewerTime) | ||
2314 | { | ||
2315 | gViewerTime = new ViewerTime(); | ||
2316 | } | ||
2317 | |||
2300 | // Show watch cursor | 2318 | // Show watch cursor |
2301 | gViewerWindow->setCursor(UI_CURSOR_WAIT); | 2319 | gViewerWindow->setCursor(UI_CURSOR_WAIT); |
2302 | 2320 | ||