diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-01 17:23:49 +0100 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-01 17:23:49 +0100 | 
| commit | 56dbd313a156a6913d791c920d0023f5451c657f (patch) | |
| tree | 4b95d8901aef6f26d9c45771b09f075344bbdbe1 /indra/newview | |
| parent | 569f322f0d43ba4e1f079d362d333af5b84a0e32 (diff) | |
Checker: CHECKED_RETURN
Function: LLAgentCamera::updateCamera()
File: /indra/newview/llagentcamera.cpp
not a bug, but I cleaned up BOOL->bool
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llagentcamera.cpp | 11 | ||||
| -rw-r--r-- | indra/newview/llagentcamera.h | 2 | 
2 files changed, 7 insertions, 6 deletions
| diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index bb06255fd1..e8ffe9708b 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -142,7 +142,7 @@ LLAgentCamera::LLAgentCamera() :  	mSitCameraEnabled(FALSE),  	mCameraSmoothingLastPositionGlobal(),  	mCameraSmoothingLastPositionAgent(), -	mCameraSmoothingStop(FALSE), +	mCameraSmoothingStop(false),  	mCameraUpVector(LLVector3::z_axis), // default is straight up @@ -1042,7 +1042,7 @@ void LLAgentCamera::cameraPanLeft(F32 meters)  	mFocusGlobal = mFocusTargetGlobal;  	// disable smoothing for camera pan, which causes some residents unhappiness -	mCameraSmoothingStop = TRUE; +	mCameraSmoothingStop = true;  	cameraZoomIn(1.f);  	updateFocusOffset(); @@ -1062,7 +1062,7 @@ void LLAgentCamera::cameraPanUp(F32 meters)  	mFocusGlobal = mFocusTargetGlobal;  	// disable smoothing for camera pan, which causes some residents unhappiness -	mCameraSmoothingStop = TRUE; +	mCameraSmoothingStop = true;  	cameraZoomIn(1.f);  	updateFocusOffset(); @@ -1364,7 +1364,8 @@ void LLAgentCamera::updateCamera()  		LLVector3d camera_pos_agent = camera_pos_global - agent_pos;  		// Sitting on what you're manipulating can cause camera jitter with smoothing.   		// This turns off smoothing while editing. -MG -		mCameraSmoothingStop |= (BOOL)LLToolMgr::getInstance()->inBuildMode(); +		bool in_build_mode = LLToolMgr::getInstance()->inBuildMode(); +		mCameraSmoothingStop = mCameraSmoothingStop || in_build_mode;  		if (cameraThirdPerson() && !mCameraSmoothingStop)  		{ @@ -1396,7 +1397,7 @@ void LLAgentCamera::updateCamera()  		mCameraSmoothingLastPositionGlobal = camera_pos_global;  		mCameraSmoothingLastPositionAgent = camera_pos_agent; -		mCameraSmoothingStop = FALSE; +		mCameraSmoothingStop = false;  	} diff --git a/indra/newview/llagentcamera.h b/indra/newview/llagentcamera.h index 3ba24ef32b..1e55e18d2a 100644 --- a/indra/newview/llagentcamera.h +++ b/indra/newview/llagentcamera.h @@ -151,7 +151,7 @@ private:  	LLVector3		mCameraVirtualPositionAgent;	// Camera virtual position (target) before performing FOV zoom  	LLVector3d      mCameraSmoothingLastPositionGlobal;      	LLVector3d      mCameraSmoothingLastPositionAgent; -	BOOL            mCameraSmoothingStop; +	bool            mCameraSmoothingStop;  	LLVector3		mCameraLag;						// Third person camera lag  	LLVector3		mCameraUpVector;				// Camera's up direction in world coordinates (determines the 'roll' of the view) | 
