Reset player x velocity when they freeze

Resolves #2236.

When a dialog opens, reset player x velocity so they don't continue running after exiting dialog. Also allow the player to continue falling if they opened a dialog in mid-air.