MonoGame fix

This commit is contained in:
Aragas 2016-09-12 19:10:25 +03:00
parent 271c407357
commit 01978a2399
4 changed files with 4 additions and 4 deletions

View File

@ -503,7 +503,7 @@
End Sub End Sub
Private Sub ClampPitch() Private Sub ClampPitch()
Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f)
End Sub End Sub
'Changes the camera's pitch so you can see the stuff that is in front of you. Used when textboxes appear. 'Changes the camera's pitch so you can see the stuff that is in front of you. Used when textboxes appear.

View File

@ -81,7 +81,7 @@
Pitch += -RotationSpeed * dy Pitch += -RotationSpeed * dy
Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f)
End Sub End Sub
Private Sub MoveCamera() Private Sub MoveCamera()

View File

@ -32,7 +32,7 @@
Public Overrides Sub Update() Public Overrides Sub Update()
Me.Ray = createRay() Me.Ray = createRay()
Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f)
ScrollThirdPerson() ScrollThirdPerson()

View File

@ -32,7 +32,7 @@
Public Overrides Sub Update() Public Overrides Sub Update()
Me.Ray = createRay() Me.Ray = createRay()
Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f)
ScrollThirdPerson() ScrollThirdPerson()