fixed problem with developer console

Quickfix for a problem with the developer console that didn't allow for
static variables to be edited. Now you can change to game mode by
setting GlobalVars.window = "Game" or "MapEditor". However, the mapdata
does not carry over yet. Expect a fix for this soon.

The fix was done by Torrunt, the author of the developer console.