Changed: edit force_camera_fp command
--HG-- branch : compatibility-develop
This commit is contained in:
parent
6fb823a9be
commit
2dbcb978a4
2 changed files with 7 additions and 4 deletions
|
@ -226,7 +226,7 @@ class CAHToggleCamera : public IActionHandler
|
|||
REGISTER_ACTION_HANDLER (CAHToggleCamera, "toggle_camera");
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
class CAHToggleForceFP : public IActionHandler
|
||||
class CAHTForceFP : public IActionHandler
|
||||
{
|
||||
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
|
||||
{
|
||||
|
@ -234,7 +234,7 @@ class CAHToggleForceFP : public IActionHandler
|
|||
UserEntity->forceCamareaFirstPerson();
|
||||
}
|
||||
};
|
||||
REGISTER_ACTION_HANDLER (CAHToggleForceFP, "force_camera_fp");
|
||||
REGISTER_ACTION_HANDLER (CAHTForceFP, "force_camera_fp");
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
class CAHToggleNames : public IActionHandler
|
||||
|
|
|
@ -3225,8 +3225,11 @@ void CUserEntity::forceCamareaFirstPerson()
|
|||
// Only if not inside a building.
|
||||
if(!UserEntity->forceIndoorFPV())
|
||||
{
|
||||
//Enter the 1st Person View Mode
|
||||
UserEntity->viewMode(CUserEntity::FirstPV);
|
||||
if (UserEntity->viewMode() != CUserEntity::FirstPV)
|
||||
{
|
||||
//Enter the 1st Person View Mode
|
||||
UserEntity->viewMode(CUserEntity::FirstPV);
|
||||
}
|
||||
}
|
||||
}// forceCamareaFirstPerson //
|
||||
|
||||
|
|
Loading…
Reference in a new issue