Fix the game state of when dialogs should be popped up.
Merge branch 'master' of https://github.com/supertuxkart/stk-code.git