shithub: choc

Download patch

ref: 89d95067fc7cde0e3f99f15cf5fc1e89381f9edf
parent: 313e56805e28ff78868dce3806c813bc1e98d16b
author: Simon Howard <fraggle@gmail.com>
date: Wed Oct 1 15:20:45 EDT 2008

Remove some redundant DOS and NeXT-related code.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1319

--- a/src/hexen/d_net.c
+++ b/src/hexen/d_net.c
@@ -97,7 +97,7 @@
 
     c = 0x1234567;
 
-#if defined(NeXT) || defined(NORMALUNIX)
+#if defined(NORMALUNIX)
     return 0;                   // byte order problems
 #endif
 
--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -126,15 +126,9 @@
 static int demosequence;
 static int pagetic;
 static char *pagename;
-#ifdef __NeXT__
 static char *wadfiles[MAXWADFILES] = {
-    "/Novell/H2/source/hexen.wad"
-};
-#else
-static char *wadfiles[MAXWADFILES] = {
     "hexen.wad"
 };
-#endif
 static execOpt_t ExecOptions[] = {
     {"-file", ExecOptionFILE, 1, 0},
     {"-scripts", ExecOptionSCRIPTS, 1, 0},
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -91,8 +91,6 @@
 // header generated by multigen utility
 #include "info.h"
 
-extern byte *destview, *destscreen;     // PC direct to screen pointers
-
 /*
 ===============================================================================
 
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -1276,14 +1276,6 @@
                 BorderNeedRefresh = true;
                 UpdateState |= I_FULLSCRN;
                 return (true);
-#ifdef __NeXT__
-            case 'q':
-                MenuActive = false;
-                askforquit = true;
-                typeofask = 5;  // suicide
-                return true;
-#endif
-#ifndef __NeXT__
             case KEY_F1:       // help screen
                 SCInfo(0);      // start up info screens
                 MenuActive = true;
@@ -1448,7 +1440,6 @@
                 G_DeferedInitNew(gameskill, gameepisode, gamemap);
                 P_SetMessage(&players[consoleplayer], TXT_CHEATWARP, false);
                 return true;
-#endif
         }
 
     }
--- a/src/hexen/p_inter.c
+++ b/src/hexen/p_inter.c
@@ -62,10 +62,6 @@
 static void TryPickupWeaponPiece(player_t * player, pclass_t matchClass,
                                  int pieceValue, mobj_t * pieceMobj);
 
-#ifdef __NeXT__
-extern void strupr(char *s);
-#endif
-
 //--------------------------------------------------------------------------
 //
 // PROC P_SetMessage
--- a/src/hexen/r_bsp.c
+++ b/src/hexen/r_bsp.c
@@ -217,9 +217,6 @@
     int x1, x2;
     angle_t angle1, angle2, span, tspan;
 
-#ifdef __NeXT__
-    RD_DrawLineCheck(line);
-#endif
     curline = line;
 
 // OPTIMIZE: quickly reject orthogonal back sides
@@ -330,10 +327,6 @@
     cliprange_t *start;
     int sx1, sx2;
 
-#ifdef __NeXT__
-    RD_DrawBBox(bspcoord);
-#endif
-
 // find the corners of the box that define the edges from current viewpoint
     if (viewx <= bspcoord[BOXLEFT])
         boxx = 0;
@@ -359,10 +352,6 @@
     y2 = bspcoord[checkcoord[boxpos][3]];
 
 
-#ifdef __NeXT__
-//      RD_DisplayLine (x1, y1, x2, y2, 0.1);
-#endif
-
 //
 // check clip list for an open space
 //
@@ -502,10 +491,6 @@
     }
 
     bsp = &nodes[bspnum];
-
-#ifdef __NeXT__
-    RD_DrawNodeLine(bsp);
-#endif
 
 //
 // decide which side the view point is on
--- a/src/hexen/r_main.c
+++ b/src/hexen/r_main.c
@@ -816,13 +816,6 @@
         UpdateState |= I_MESSAGES;
     }
 
-#ifdef __NeXT__
-    RD_ClearMapWindow();
-#endif
-#ifdef __WATCOMC__
-    destview = destscreen + (viewwindowx >> 2) + viewwindowy * 80;
-#endif
-
 #if 0
     {
         static int frame;
--- a/src/hexen/r_segs.c
+++ b/src/hexen/r_segs.c
@@ -344,9 +344,6 @@
     if (start >= viewwidth || start > stop)
         I_Error("Bad R_RenderWallRange: %i to %i", start, stop);
 #endif
-#ifdef __NeXT__
-    RD_DrawLine(curline);
-#endif
 
     sidedef = curline->sidedef;
     linedef = curline->linedef;