shithub: rott

Download patch

ref: 67c11dcca7654b94adc9fc91b5a98b0b374d6b32
parent: cc03440ad67a7da88cff034fa8dbf7861af3f8fc
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Tue Jun 5 09:25:16 EDT 2018

Removing obsolete development code from rt_draw.c

--- a/rott/rt_draw.c
+++ b/rott/rt_draw.c
@@ -1054,21 +1054,9 @@
         else if (statptr->flags&FL_COLORED)
         {
             visptr->shapesize=0;
-#if (DEVELOPMENT == 1)
-            if ((statptr->hitpoints>=0) &&
-                    (statptr->hitpoints<MAXPLAYERCOLORS))
-            {
-#endif
                 SetColorLightLevel(statptr->x,statptr->y,visptr,
                                    0,statptr->hitpoints,
                                    (statptr->flags&FL_FULLLIGHT));
-#if (DEVELOPMENT == 1)
-            }
-            else
-            {
-                Error("Illegal color map for sprite type %d\n",statptr->itemnumber);
-            }
-#endif
         }
         else
         {
@@ -1172,21 +1160,9 @@
                     playertype *pstate;
 
                     M_LINKSTATE(obj,pstate);
-#if (DEVELOPMENT == 1)
-                    if ((pstate->uniformcolor>=0) &&
-                            (pstate->uniformcolor<MAXPLAYERCOLORS))
-                    {
-#endif
                         SetColorLightLevel(obj->x,obj->y,visptr,
                                            obj->dir,pstate->uniformcolor,
                                            (obj->flags&FL_FULLLIGHT) );
-#if (DEVELOPMENT == 1)
-                    }
-                    else
-                    {
-                        Error("Illegal color map for players\n");
-                    }
-#endif
                 }
                 else
                     SetSpriteLightLevel(obj->x,obj->y,visptr,obj->dir,(obj->flags&FL_FULLLIGHT));
@@ -1532,9 +1508,6 @@
     oldtime=GetTicCount();
     return;
 #else
-#if (DEVELOPMENT == 1)
-    int i;
-#endif
     volatile int tc;
 
     whereami=9;
@@ -1570,35 +1543,7 @@
         }
     }
     oldtime=tc;
-#if (DEVELOPMENT == 1)
-    if (graphicsmode==true)
-    {
-        int drawntics;
-
-        VGAWRITEMAP(1);
-        drawntics=tics;
-        if (drawntics>MAXDRAWNTICS)
-            drawntics=MAXDRAWNTICS;
-        for (i=0; i<drawntics; i++)
-            *((byte *)displayofs+screenofs+(SCREENBWIDE*3)+i)=egacolor[15];
-    }
-    /*
-          if (drawtime>MAXDRAWNTICS)
-             drawtime=MAXDRAWNTICS;
-          for (i=0;i<drawtime;i++)
-             *((byte *)displayofs+screenofs+(SCREENBWIDE*5)+i)=egacolor[2];
-          if (walltime>MAXDRAWNTICS)
-             walltime=MAXDRAWNTICS;
-          for (i=0;i<walltime;i++)
-             *((byte *)displayofs+screenofs+(SCREENBWIDE*7)+i)=egacolor[14];
-          if (actortime>MAXDRAWNTICS)
-             actortime=MAXDRAWNTICS;
-          for (i=0;i<actortime;i++)
-             *((byte *)displayofs+screenofs+(SCREENBWIDE*9)+i)=egacolor[4];
-          }
-    */
 #endif
-#endif
 
 }
 
@@ -2667,22 +2612,6 @@
 
     whereami=21;
     tempptr=player;
-#if (DEVELOPMENT == 1)
-    if (Keyboard[sc_9])
-    {
-        while (Keyboard[sc_9])
-        {
-            IN_UpdateKeyboard();
-        }
-        playerview++;
-        if (playerview>numplayers)
-            playerview=1;
-    }
-    if (playerview!=0)
-    {
-        player=PLAYER[playerview-1];
-    }
-#endif
 
 //
 // Erase old messages