From 9dd17a9c65c34f84fb1b1205d38a86b95c426511 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Tue, 5 Jul 2022 17:49:23 +0200 Subject: [PATCH] Fix slideblocks resetting player speed (descr.) Fixed the following bug: If the player runs up or down a slideblock, and then walk up or down another slideblock right after the movement script is finished, then the player will walk at regular speed. --- P3D/Entites/Enviroment/SlideBlock.vb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/P3D/Entites/Enviroment/SlideBlock.vb b/P3D/Entites/Enviroment/SlideBlock.vb index 5bd12ec70..958427fe1 100644 --- a/P3D/Entites/Enviroment/SlideBlock.vb +++ b/P3D/Entites/Enviroment/SlideBlock.vb @@ -59,8 +59,7 @@ "@player.setmovement(" & Screen.Camera.GetMoveDirection().X & ",0," & Screen.Camera.GetMoveDirection().Z & ")" & Environment.NewLine & "@overworldpokemon.hide" & Environment.NewLine & "@player.move(1)" & Environment.NewLine & - "@overworldpokemon.hide" & Environment.NewLine & - "@player.resetspeed" & Environment.NewLine + "@overworldpokemon.hide" & Environment.NewLine If Not Me.TempScriptEntity Is Nothing Then s &= GetScriptStartLine(Me.TempScriptEntity) & Environment.NewLine @@ -151,8 +150,7 @@ "@player.move(1)" & Environment.NewLine & "@player.setmovement(" & Screen.Camera.GetMoveDirection().X & ",-1," & Screen.Camera.GetMoveDirection().Z & ")" & Environment.NewLine & "@player.move(" & Steps & ")" & Environment.NewLine & - "@overworldpokemon.hide" & Environment.NewLine & - "@player.resetspeed" & Environment.NewLine + "@overworldpokemon.hide" & Environment.NewLine If Not Me.TempScriptEntity Is Nothing Then s &= GetScriptStartLine(Me.TempScriptEntity) & Environment.NewLine