fixes infinite loop in demo screen
if delta frame is invalid, fall back to a valid one.  the result is slightly
better than just freezing, most of the time nothing significant is lost.
dont display the profile menu while playing a demo, since the player can't
'join the game' anyway
make it compiling on visual studio again
use temp variable so we don't reference freed memory