diff --git a/2.5DHero/2.5DHero/Overworld/OverworldCamera.vb b/2.5DHero/2.5DHero/Overworld/OverworldCamera.vb index fe0a7773f..7e4415211 100644 --- a/2.5DHero/2.5DHero/Overworld/OverworldCamera.vb +++ b/2.5DHero/2.5DHero/Overworld/OverworldCamera.vb @@ -503,7 +503,7 @@ End Sub Private Sub ClampPitch() - Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) + Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f) End Sub 'Changes the camera's pitch so you can see the stuff that is in front of you. Used when textboxes appear. diff --git a/2.5DHero/2.5DHero/Screens/MapPreview/MapPreviewCamera.vb b/2.5DHero/2.5DHero/Screens/MapPreview/MapPreviewCamera.vb index 138aa9916..255da37c5 100644 --- a/2.5DHero/2.5DHero/Screens/MapPreview/MapPreviewCamera.vb +++ b/2.5DHero/2.5DHero/Screens/MapPreview/MapPreviewCamera.vb @@ -81,7 +81,7 @@ Pitch += -RotationSpeed * dy - Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) + Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f) End Sub Private Sub MoveCamera() diff --git a/2.5DHero/2.5DHero/Screens/Pokedex/ViewModelCamera.vb b/2.5DHero/2.5DHero/Screens/Pokedex/ViewModelCamera.vb index 2f90f0f9e..7f60ce947 100644 --- a/2.5DHero/2.5DHero/Screens/Pokedex/ViewModelCamera.vb +++ b/2.5DHero/2.5DHero/Screens/Pokedex/ViewModelCamera.vb @@ -32,7 +32,7 @@ Public Overrides Sub Update() Me.Ray = createRay() - Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) + Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f) ScrollThirdPerson() diff --git a/2.5DHero/2.5DHero/Screens/Pokemon/EvolutionCamera.vb b/2.5DHero/2.5DHero/Screens/Pokemon/EvolutionCamera.vb index 34e2484c5..49bd0441a 100644 --- a/2.5DHero/2.5DHero/Screens/Pokemon/EvolutionCamera.vb +++ b/2.5DHero/2.5DHero/Screens/Pokemon/EvolutionCamera.vb @@ -32,7 +32,7 @@ Public Overrides Sub Update() Me.Ray = createRay() - Pitch = MathHelper.Clamp(Pitch, -1.5, 1.5) + Pitch = MathHelper.Clamp(Pitch, -1.5f, 1.5f) ScrollThirdPerson()