Fix facing-based non-continuous animations
Refresh Game Map even while there are commands to execute
Use GetRealX/Y for GetEventsXY and fix some bugs

Avoid using uninitialized data. Call MoveTypeCustom after the event has
been pushed back in the pending vector. After the last move, end move
routes as soon as the characters stop moving.
Fix power function and a couple minor stylistic changes