mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-14 03:33:49 +01:00
Fix member intialization order to avoid warning on gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6143 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
91cb559caa
commit
6f7578b374
@ -19,8 +19,7 @@ namespace scene
|
||||
CSceneNodeAnimatorCameraFPS::CSceneNodeAnimatorCameraFPS(gui::ICursorControl* cursorControl,
|
||||
f32 rotateSpeed, f32 moveSpeed, f32 jumpSpeed,
|
||||
SKeyMap* keyMapArray, u32 keyMapSize, bool noVerticalMovement, bool invertY, float rotateSpeedKeyboard)
|
||||
: CursorControl(cursorControl), MaxVerticalAngle(88.0f), NoVerticalMovement(noVerticalMovement),
|
||||
MoveSpeed(moveSpeed),
|
||||
: CursorControl(cursorControl),
|
||||
// On X11 we get events even when mouse is not inside the Irrlicht window, on Windows we don't.
|
||||
// It might be possible to add grabbing on Windows as well in which case this has to be somewhat changed.
|
||||
// TODO: I don't know about OSX, but in theory it should be like old Irrlicht 1.8 behavior whatever that was there.
|
||||
@ -29,6 +28,8 @@ CSceneNodeAnimatorCameraFPS::CSceneNodeAnimatorCameraFPS(gui::ICursorControl* cu
|
||||
#else
|
||||
GrabMouse(true),
|
||||
#endif
|
||||
MaxVerticalAngle(88.0f), NoVerticalMovement(noVerticalMovement),
|
||||
MoveSpeed(moveSpeed),
|
||||
RotateSpeedKeyboard(rotateSpeedKeyboard), RotateSpeed(rotateSpeed),
|
||||
JumpSpeed(jumpSpeed),
|
||||
MouseYDirection(invertY ? -1.0f : 1.0f),
|
||||
|
Loading…
Reference in New Issue
Block a user