summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-11-04 17:32:36 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit442b6b52ea287efbd8e12b8b73327558fee58f34 (patch)
treefd6dbc68e8e069529094fc15312388f60a3c06c3 /src/main.c
parentb66cdf804fe9369f2c90857ca240670542495236 (diff)
Disable the menus for the Alien demo.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main.c b/src/main.c
index 30d6ce2..890e8f9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -185,6 +185,7 @@ int SetOGLVideoMode(int Width, int Height)
glLoadIdentity();
glEnable(GL_BLEND);
+ glBlendFunc(GL_ONE, GL_ONE);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
@@ -196,6 +197,8 @@ int SetOGLVideoMode(int Width, int Height)
glPolygonMode(GL_BACK, GL_FILL);
glDisable(GL_CULL_FACE);
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
ScreenDescriptorBlock.SDB_Width = Width;
@@ -739,11 +742,6 @@ int main(int argc, char *argv[])
AvP.CurrentEnv = AvP.StartingEnv = 0; /* are these even used? */
-#if 0
-{
-// AvP.Network = I_Host; /* for exploring */
-}
-
#if ALIEN_DEMO
AvP.PlayerType = I_Alien;
SetLevelToLoad(AVP_ENVIRONMENT_INVASION_A);
@@ -774,11 +772,12 @@ int main(int argc, char *argv[])
// SetLevelToLoad(AVP_ENVIRONMENT_E3DEMOSP); /* demo level */
#endif
+#if !(ALIEN_DEMO|PREDATOR_DEMO|MARINE_DEMO)
+while(AvP_MainMenus())
+#else
+ SetBriefingTextToBlank();
#endif
-
-
-
-while(AvP_MainMenus()) {
+{
d3d_light_ctrl.ctrl = LCCM_NORMAL;
d3d_overlay_ctrl.ctrl = OCCM_NORMAL;