diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-10-14 18:21:53 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 0b37ed3309814c143fa0bc1046b9de7fc5878a04 (patch) | |
| tree | 1f98bfe0084cb969f802880442b86a967231158a /src/main.c | |
| parent | b7e1c7cb2f95c7348ebc69ddea7f43ebe62c202c (diff) | |
Most of the menu code now builds.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 27 |
1 files changed, 9 insertions, 18 deletions
@@ -517,9 +517,6 @@ void CheckForWindowsMessages() SDL_ShowCursor(0); } - if (DebouncedKeyboardInput[KEY_ESCAPE]) - AvP.MainLoopRunning = 0; - /* ctrl-z for iconify window? */ } @@ -568,7 +565,6 @@ int main(int argc, char *argv[]) InitialVideoMode(); /* Env_List can probably be removed */ -// Env_List[0] = &(ELOLevelToLoad); /* overwrite the first entry of crappy env_list with LevelName */ Env_List[0]->main = LevelName; InitialiseSystem(); @@ -576,8 +572,6 @@ int main(int argc, char *argv[]) RequestedGammaSetting = 128; -/* InitOptionsMenu(); NOT YET */ - // LoadDefaultPrimaryConfigs(); /* load the configs! yes! */ MarineInputPrimaryConfig = DefaultMarineInputPrimaryConfig; PredatorInputPrimaryConfig = DefaultPredatorInputPrimaryConfig; @@ -606,12 +600,13 @@ int main(int argc, char *argv[]) AvP.LevelCompleted = 0; LoadSounds("PLAYER"); + AvP.CurrentEnv = AvP.StartingEnv = 0; /* are these even used? */ + +#if 0 { // AvP.Network = I_Host; /* for exploring */ } - AvP.CurrentEnv = AvP.StartingEnv = 0; /* are these even used? */ - #if ALIEN_DEMO AvP.PlayerType = I_Alien; SetLevelToLoad(AVP_ENVIRONMENT_INVASION_A); @@ -642,7 +637,9 @@ int main(int argc, char *argv[]) // SetLevelToLoad(AVP_ENVIRONMENT_E3DEMOSP); /* demo level */ #endif -// while(AvP_MainMenus()) { +#endif + +while(AvP_MainMenus()) { d3d_light_ctrl.ctrl = LCCM_NORMAL; d3d_overlay_ctrl.ctrl = OCCM_NORMAL; @@ -720,10 +717,8 @@ int main(int argc, char *argv[]) ThisFramesRenderingHasBegun(); } -/* NOT YET menusActive = AvP_InGameMenus(); if (AvP.RestartLevel) menusActive=0; -*/ if (AvP.LevelCompleted) { SoundSys_FadeOutFast(); @@ -758,18 +753,16 @@ int main(int argc, char *argv[]) if (AvP.RestartLevel) { AvP.RestartLevel = 0; AvP.LevelCompleted = 0; -/* NOT YET + FixCheatModesInUserProfile(UserProfilePtr); -*/ + RestartLevel(); } } AvP.LevelCompleted = thisLevelHasBeenCompleted; -/* NOT YET FixCheatModesInUserProfile(UserProfilePtr); -*/ /* NOT YET CloseFMV(); @@ -799,14 +792,12 @@ int main(int argc, char *argv[]) CDDA_Stop(); if (AvP.Network != I_No_Network) { -/* NOT YET EndAVPNetGame(); -*/ } ClearMemoryPool(); -// } +} SoundSys_StopAll(); SoundSys_RemoveAll(); |
