Type safety.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1617 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-05-12 16:04:27 +00:00
parent 7c7911c92f
commit 956ec975da
2 changed files with 4 additions and 10 deletions

View File

@ -759,18 +759,12 @@ exit:
}
UDWORD GetGameMode(void)
GS_GAMEMODE GetGameMode(void)
{
return gameStatus;
}
void SetGameMode(UDWORD status)
void SetGameMode(GS_GAMEMODE status)
{
ASSERT( status == GS_TITLE_SCREEN ||
status == GS_MISSION_SCREEN ||
status == GS_NORMAL ||
status == GS_SAVEGAMELOAD,
"SetGameMode: invalid game mode" );
gameStatus = status;
}

View File

@ -34,8 +34,8 @@ extern BOOL gameInitialised;
extern BOOL frontendInitialised;
extern BOOL bDisableLobby;
extern UDWORD GetGameMode(void);
extern void SetGameMode(UDWORD status);
extern GS_GAMEMODE GetGameMode(void);
extern void SetGameMode(GS_GAMEMODE status);
extern char SaveGamePath[];