diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 0e39026..30e5e26 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -356,7 +356,7 @@ void process_layer_data(LLMessageSystem *mesgsys, void **user_data) | |||
356 | // size_t nread = fread(buffer, 1, length, fXML); | 356 | // size_t nread = fread(buffer, 1, length, fXML); |
357 | // if (nread < (size_t) length) | 357 | // if (nread < (size_t) length) |
358 | // { | 358 | // { |
359 | // llwarns << "Short read" << llendl; | 359 | // LL_WARNS("Messaging") << "Short read" << LL_ENDL; |
360 | // } | 360 | // } |
361 | // buffer[nread] = '\0'; | 361 | // buffer[nread] = '\0'; |
362 | // fclose(fXML); | 362 | // fclose(fXML); |
@@ -3308,8 +3308,7 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
3308 | return; | 3308 | return; |
3309 | } | 3309 | } |
3310 | 3310 | ||
3311 | F32 volume = gSavedSettings.getBOOL("MuteSounds") ? 0.f : (gain * gSavedSettings.getF32("AudioLevelSFX")); | 3311 | gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_SFX, pos_global); |
3312 | gAudiop->triggerSound(sound_id, owner_id, volume, pos_global); | ||
3313 | } | 3312 | } |
3314 | 3313 | ||
3315 | void process_preload_sound(LLMessageSystem *msg, void **user_data) | 3314 | void process_preload_sound(LLMessageSystem *msg, void **user_data) |
@@ -3506,6 +3505,15 @@ void process_sim_stats(LLMessageSystem *msg, void **user_data) | |||
3506 | case LL_SIM_STAT_SIMPHYSICSMEMORY: | 3505 | case LL_SIM_STAT_SIMPHYSICSMEMORY: |
3507 | LLViewerStats::getInstance()->mPhysicsMemoryAllocated.addValue(stat_value); | 3506 | LLViewerStats::getInstance()->mPhysicsMemoryAllocated.addValue(stat_value); |
3508 | break; | 3507 | break; |
3508 | case LL_SIM_STAT_SIMSPARETIME: | ||
3509 | LLViewerStats::getInstance()->mSimSpareMsec.addValue(stat_value); | ||
3510 | break; | ||
3511 | case LL_SIM_STAT_SIMSLEEPTIME: | ||
3512 | LLViewerStats::getInstance()->mSimSleepMsec.addValue(stat_value); | ||
3513 | break; | ||
3514 | case LL_SIM_STAT_IOPUMPTIME: | ||
3515 | LLViewerStats::getInstance()->mSimPumpIOMsec.addValue(stat_value); | ||
3516 | break; | ||
3509 | default: | 3517 | default: |
3510 | // Used to be a commented out warning. | 3518 | // Used to be a commented out warning. |
3511 | LL_DEBUGS("Messaging") << "Unknown stat id" << stat_id << LL_ENDL; | 3519 | LL_DEBUGS("Messaging") << "Unknown stat id" << stat_id << LL_ENDL; |
@@ -4718,7 +4726,7 @@ void process_teleport_local(LLMessageSystem *msg,void**) | |||
4718 | gAgent.slamLookAt(look_at); | 4726 | gAgent.slamLookAt(look_at); |
4719 | 4727 | ||
4720 | // likewise make sure the camera is behind the avatar | 4728 | // likewise make sure the camera is behind the avatar |
4721 | gAgent.resetView(TRUE); | 4729 | gAgent.resetView(TRUE, TRUE); |
4722 | 4730 | ||
4723 | // send camera update to new region | 4731 | // send camera update to new region |
4724 | gAgent.updateCamera(); | 4732 | gAgent.updateCamera(); |