mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Add ThirdPersonChanged NotifyAction type
This commit is contained in:
parent
6a51ab9215
commit
9053303825
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "Options.h"
|
||||
#include "Picking.h"
|
||||
#include "Platform.h"
|
||||
#include "Protocol.h"
|
||||
|
||||
struct _CameraData Camera;
|
||||
static struct RayTracer cameraClipPos;
|
||||
|
@ -302,6 +303,12 @@ void Camera_CycleActive(void) {
|
|||
}
|
||||
cam_isForwardThird = Camera.Active == &cam_ForwardThird;
|
||||
|
||||
int cycle = 0;
|
||||
if (Camera.Active == &cam_FirstPerson) cycle = 0;
|
||||
else if (Camera.Active == &cam_ThirdPerson) cycle = 1;
|
||||
else if (cam_isForwardThird) cycle = 2;
|
||||
CPE_SendNotifyAction(7, cycle);
|
||||
|
||||
/* reset rotation offset when changing cameras */
|
||||
cam_rotOffset.x = 0.0f; cam_rotOffset.y = 0.0f;
|
||||
Camera_UpdateProjection();
|
||||
|
|
Loading…
Reference in a new issue