summary refs log tree commit diff stats
path: root/res/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'res/scripts')
-rw-r--r--res/scripts/common.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/scripts/common.lua b/res/scripts/common.lua index eb3817e..36ccc46 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua
@@ -296,7 +296,7 @@ function ChangeMap(map, warp, options)
296 local playerSprite = getSprite(playerId) 296 local playerSprite = getSprite(playerId)
297 local direction = playerSprite.dir 297 local direction = playerSprite.dir
298 298
299 playerSprite.controllable = false 299 DisablePlayerControl()
300 if (options & ChangeMapOptions.DO_NOT_FADE == 0) then 300 if (options & ChangeMapOptions.DO_NOT_FADE == 0) then
301 FadeToBlack(150) 301 FadeToBlack(150)
302 end 302 end
@@ -315,7 +315,7 @@ function ChangeMap(map, warp, options)
315 if (options & ChangeMapOptions.DO_NOT_FADE == 0) then 315 if (options & ChangeMapOptions.DO_NOT_FADE == 0) then
316 RemoveFadeout(150) 316 RemoveFadeout(150)
317 end 317 end
318 playerSprite.controllable = true 318 EnablePlayerControl()
319end 319end
320 320
321function CreateAnimatedSpriteAtPosition(alias, character, x, y, animName, direction, layer) 321function CreateAnimatedSpriteAtPosition(alias, character, x, y, animName, direction, layer)