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.
This commit is contained in:
JappaWakka 2022-07-05 17:49:23 +02:00
parent b344879f20
commit 9dd17a9c65
1 changed files with 2 additions and 4 deletions

View File

@ -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