mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 07:06:13 +00:00
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");
|
REGISTER_ACTION_HANDLER (CAHToggleCamera, "toggle_camera");
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
class CAHToggleForceFP : public IActionHandler
|
class CAHTForceFP : public IActionHandler
|
||||||
{
|
{
|
||||||
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
|
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
|
||||||
{
|
{
|
||||||
|
@ -234,7 +234,7 @@ class CAHToggleForceFP : public IActionHandler
|
||||||
UserEntity->forceCamareaFirstPerson();
|
UserEntity->forceCamareaFirstPerson();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
REGISTER_ACTION_HANDLER (CAHToggleForceFP, "force_camera_fp");
|
REGISTER_ACTION_HANDLER (CAHTForceFP, "force_camera_fp");
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
class CAHToggleNames : public IActionHandler
|
class CAHToggleNames : public IActionHandler
|
||||||
|
|
|
@ -3225,8 +3225,11 @@ void CUserEntity::forceCamareaFirstPerson()
|
||||||
// Only if not inside a building.
|
// Only if not inside a building.
|
||||||
if(!UserEntity->forceIndoorFPV())
|
if(!UserEntity->forceIndoorFPV())
|
||||||
{
|
{
|
||||||
//Enter the 1st Person View Mode
|
if (UserEntity->viewMode() != CUserEntity::FirstPV)
|
||||||
UserEntity->viewMode(CUserEntity::FirstPV);
|
{
|
||||||
|
//Enter the 1st Person View Mode
|
||||||
|
UserEntity->viewMode(CUserEntity::FirstPV);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}// forceCamareaFirstPerson //
|
}// forceCamareaFirstPerson //
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue