Fix: Typo by forceCameraFirstPerson

--HG--
branch : compatibility-develop
This commit is contained in:
Riasan 2017-05-23 21:59:28 +02:00
parent 2dbcb978a4
commit 1760d16dd2
3 changed files with 5 additions and 7 deletions

View file

@ -231,7 +231,7 @@ class CAHTForceFP : public IActionHandler
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
{
// Change the camera view to first person
UserEntity->forceCamareaFirstPerson();
UserEntity->forceCameraFirstPerson();
}
};
REGISTER_ACTION_HANDLER (CAHTForceFP, "force_camera_fp");

View file

@ -3214,10 +3214,10 @@ void CUserEntity::toggleCamera()
}// toggleCamera //
//-----------------------------------------------
// forceCamareaFirstPerson :
// forceCameraFirstPerson :
// Force Camera to First Person View
//-----------------------------------------------
void CUserEntity::forceCamareaFirstPerson()
void CUserEntity::forceCameraFirstPerson()
{
// You cannot change the camera view when dead.
if(isDead())
@ -3226,12 +3226,10 @@ void CUserEntity::forceCamareaFirstPerson()
if(!UserEntity->forceIndoorFPV())
{
if (UserEntity->viewMode() != CUserEntity::FirstPV)
{
//Enter the 1st Person View Mode
UserEntity->viewMode(CUserEntity::FirstPV);
}
}
}// forceCamareaFirstPerson //
}// forceCameraFirstPerson //
//---------------------------------------------------
// getScale :

View file

@ -370,7 +370,7 @@ public:
/// Toggle Camera (First/Third Person)
void toggleCamera();
/// Force Camera First Person View
void forceCamareaFirstPerson();
void forceCameraFirstPerson();
//@}
/// Return the entity scale. (return 1.0 if there is any problem).