Don't let allies with 0 speed follow the player between maps

This should be the right way to fix #1276.