Added cPlayer::IsGameModeXXX() and cWorld::IsGameModeXXX() functions.

These are the preferred way of determining the gamemode, you should use those instead of doing manual comparisons to the gamemode value.