Player flashing works correctly even when switching animations.  Fixes #27.