Type safety.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1617 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
7c7911c92f
commit
956ec975da
10
src/main.c
10
src/main.c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue