aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r--linden/indra/newview/llviewermessage.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index 221de59..9aa44fc 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -5,7 +5,7 @@
5 * 5 *
6 * $LicenseInfo:firstyear=2002&license=viewergpl$ 6 * $LicenseInfo:firstyear=2002&license=viewergpl$
7 * 7 *
8 * Copyright (c) 2002-2008, Linden Research, Inc. 8 * Copyright (c) 2002-2009, Linden Research, Inc.
9 * 9 *
10 * Second Life Viewer Source Code 10 * Second Life Viewer Source Code
11 * The source code in this file ("Source Code") is provided by Linden Lab 11 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -204,7 +204,7 @@ struct LLFriendshipOffer
204void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group, 204void give_money(const LLUUID& uuid, LLViewerRegion* region, S32 amount, BOOL is_group,
205 S32 trx_type, const std::string& desc) 205 S32 trx_type, const std::string& desc)
206{ 206{
207 if(0 == amount) return; 207 if(0 == amount || !region) return;
208 amount = abs(amount); 208 amount = abs(amount);
209 LL_INFOS("Messaging") << "give_money(" << uuid << "," << amount << ")"<< LL_ENDL; 209 LL_INFOS("Messaging") << "give_money(" << uuid << "," << amount << ")"<< LL_ENDL;
210 if(can_afford_transaction(amount)) 210 if(can_afford_transaction(amount))
@@ -357,7 +357,7 @@ void process_layer_data(LLMessageSystem *mesgsys, void **user_data)
357// size_t nread = fread(buffer, 1, length, fXML); 357// size_t nread = fread(buffer, 1, length, fXML);
358// if (nread < (size_t) length) 358// if (nread < (size_t) length)
359// { 359// {
360// llwarns << "Short read" << llendl; 360// LL_WARNS("Messaging") << "Short read" << LL_ENDL;
361// } 361// }
362// buffer[nread] = '\0'; 362// buffer[nread] = '\0';
363// fclose(fXML); 363// fclose(fXML);
@@ -3516,6 +3516,15 @@ void process_sim_stats(LLMessageSystem *msg, void **user_data)
3516 case LL_SIM_STAT_SIMPHYSICSMEMORY: 3516 case LL_SIM_STAT_SIMPHYSICSMEMORY:
3517 LLViewerStats::getInstance()->mPhysicsMemoryAllocated.addValue(stat_value); 3517 LLViewerStats::getInstance()->mPhysicsMemoryAllocated.addValue(stat_value);
3518 break; 3518 break;
3519 case LL_SIM_STAT_SIMSPARETIME:
3520 LLViewerStats::getInstance()->mSimSpareMsec.addValue(stat_value);
3521 break;
3522 case LL_SIM_STAT_SIMSLEEPTIME:
3523 LLViewerStats::getInstance()->mSimSleepMsec.addValue(stat_value);
3524 break;
3525 case LL_SIM_STAT_IOPUMPTIME:
3526 LLViewerStats::getInstance()->mSimPumpIOMsec.addValue(stat_value);
3527 break;
3519 default: 3528 default:
3520 // Used to be a commented out warning. 3529 // Used to be a commented out warning.
3521 LL_DEBUGS("Messaging") << "Unknown stat id" << stat_id << LL_ENDL; 3530 LL_DEBUGS("Messaging") << "Unknown stat id" << stat_id << LL_ENDL;
@@ -4728,7 +4737,7 @@ void process_teleport_local(LLMessageSystem *msg,void**)
4728 gAgent.slamLookAt(look_at); 4737 gAgent.slamLookAt(look_at);
4729 4738
4730 // likewise make sure the camera is behind the avatar 4739 // likewise make sure the camera is behind the avatar
4731 gAgent.resetView(TRUE); 4740 gAgent.resetView(TRUE, TRUE);
4732 4741
4733 // send camera update to new region 4742 // send camera update to new region
4734 gAgent.updateCamera(); 4743 gAgent.updateCamera();