Improvement to the isPanning() function.

Suggested by Alexander Alekseev.
Added the ability to switch/walk to nodes regardless of the current room.