shithub: rott

Download patch

ref: a7ed30404bc98c13ac89721ab54e1d702d4e0b39
parent: 5842f05ec5adbe3ed2d00b90b84945ea4c2fc78c
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Wed Jul 11 07:11:05 EDT 2018

Removing all references to empty memcheck.h

--- a/src/cin_actr.c
+++ b/src/cin_actr.c
@@ -23,8 +23,6 @@
 #include "cin_actr.h"
 #include "cin_efct.h"
 #include "modexlib.h"
-//MED
-#include "memcheck.h"
 
 actortype * firstcinematicactor;
 actortype * lastcinematicactor;
--- a/src/cin_efct.c
+++ b/src/cin_efct.c
@@ -31,8 +31,6 @@
 
 #include "modexlib.h"
 #include "fli_glob.h"
-//MED
-#include "memcheck.h"
 
 static int cin_sprtopoffset;
 static int cin_invscale;
--- a/src/cin_evnt.c
+++ b/src/cin_evnt.c
@@ -28,8 +28,6 @@
 #include "w_wad.h"
 #include "z_zone.h"
 #include <string.h>
-//MED
-#include "memcheck.h"
 
 eventtype * firstevent;
 eventtype * lastevent;
--- a/src/cin_glob.c
+++ b/src/cin_glob.c
@@ -20,8 +20,6 @@
 #include "cin_glob.h"
 #include "rt_in.h"
 #include "rt_draw.h"
-//MED
-#include "memcheck.h"
 
 void CinematicDelay ( void )
 {
--- a/src/cin_main.c
+++ b/src/cin_main.c
@@ -34,8 +34,6 @@
 #include "cin_actr.h"
 #include "cin_evnt.h"
 #include "cin_efct.h"
-//MED
-#include "memcheck.h"
 
 boolean cinematicdone;
 static int cinematictime;
--- a/src/cin_util.c
+++ b/src/cin_util.c
@@ -20,8 +20,6 @@
 #include "cin_glob.h"
 #include "modexlib.h"
 
-//MED
-#include "memcheck.h"
 
 /*
 ==============
--- a/src/engine.c
+++ b/src/engine.c
@@ -27,8 +27,6 @@
 #include "rt_ted.h"
 #include "rt_view.h"
 #include <stdlib.h>
-//MED
-#include "memcheck.h"
 
 
 /*
--- a/src/fli_main.c
+++ b/src/fli_main.c
@@ -37,8 +37,6 @@
 #include "fli_util.h"
 #include "fli_def.h"
 #include "fli_main.h"
-//MED
-#include "memcheck.h"
 
 
 
--- a/src/fli_util.c
+++ b/src/fli_util.c
@@ -46,8 +46,6 @@
 #include "fli_util.h"
 #include "fli_def.h"
 #include "fli_main.h"
-//MED
-#include "memcheck.h"
 
 static Ushort screenlookup[200];
 
--- a/src/isr.c
+++ b/src/isr.c
@@ -40,8 +40,6 @@
 #include "rt_main.h"
 #include "SDL2/SDL.h"
 
-//MED
-#include "memcheck.h"
 
 // Global Variables
 
--- a/src/lookups.c
+++ b/src/lookups.c
@@ -34,8 +34,6 @@
 #include <stdlib.h>
 #include <sys\stat.h>
 
-//MED
-#include "memcheck.h"
 
 #define PANGLES 512
 #define NUMSINANGLES FINEANGLES+FINEANGLEQUAD+1
--- a/src/memcheck.h
+++ /dev/null
@@ -1,1 +1,0 @@
-/* old header removed */
--- a/src/modexlib.c
+++ b/src/modexlib.c
@@ -28,8 +28,6 @@
 #include <sys/stat.h>
 #include <SDL2/SDL_video.h>
 #include "modexlib.h"
-//MED
-#include "memcheck.h"
 #include "rt_util.h"
 #include "rt_net.h" // for GamePaused
 #include "myprint.h"
--- a/src/rt_actor.c
+++ b/src/rt_actor.c
@@ -55,8 +55,6 @@
 #include "rt_net.h"
 #include "rt_msg.h"
 #include "fx_man.h"
-//MED
-#include "memcheck.h"
 #include "queue.h"
 
 
@@ -3496,7 +3494,6 @@
                )
             {
                 MISCVARS->directgibs = true;
-//MED
                 MISCVARS->gibgravity = GRAVITY/2;
 //            MISCVARS->gibgravity = GRAVITY*2;
                 MISCVARS->fulllightgibs = true;
@@ -4090,7 +4087,6 @@
 }
 
 
-//MED
 void SpawnParticles(objtype*ob,int which,int numparticles)
 {
     int randphi,randtheta,i,nspeed;
@@ -6084,7 +6080,6 @@
 
     }
 
-//MED
     nx = SPAWNLOC[rand].x;
     ny = SPAWNLOC[rand].y;
     FindEmptyTile(&nx,&ny);
--- a/src/rt_battl.c
+++ b/src/rt_battl.c
@@ -45,8 +45,6 @@
 
 #include "rt_util.h"
 #include "rt_main.h"
-//MED
-#include "memcheck.h"
 
 #define INFINITE -1
 
--- a/src/rt_build.c
+++ b/src/rt_build.c
@@ -45,8 +45,6 @@
 #include "rt_sound.h"
 #include "modexlib.h"
 #include "rt_str.h"
-//MED
-#include "memcheck.h"
 
 byte * intensitytable;
 
--- a/src/rt_cfg.c
+++ b/src/rt_cfg.c
@@ -54,8 +54,6 @@
 #include "isr.h"
 #include "fx_man.h"
 #include "develop.h"
-//MED
-#include "memcheck.h"
 
 
 //******************************************************************************
--- a/src/rt_com.c
+++ b/src/rt_com.c
@@ -37,8 +37,6 @@
 #include "rt_net.h"
 #include "rt_draw.h"
 //#include "rt_ser.h"
-//MED
-#include "memcheck.h"
 
 // GLOBAL VARIABLES
 
--- a/src/rt_crc.c
+++ b/src/rt_crc.c
@@ -23,8 +23,6 @@
 #include	<stdlib.h>
 #include	<string.h>
 #include "rt_crc.h"
-//MED
-#include "memcheck.h"
 
 /* variables */
 static const unsigned short int crc16tab[256] =
--- a/src/rt_debug.c
+++ b/src/rt_debug.c
@@ -42,8 +42,6 @@
 
 #include <stdlib.h>
 #include <ctype.h>
-//MED
-#include "memcheck.h"
 #include "w_wad.h"
 
 extern int		iDemoNames;
--- a/src/rt_dmand.c
+++ b/src/rt_dmand.c
@@ -26,8 +26,6 @@
 #include "_rt_dman.h"
 #include "fx_man.h"
 #include "develop.h"
-//MED
-#include "memcheck.h"
 
 static boolean Recording=false;
 static boolean Feeder=false;
--- a/src/rt_door.c
+++ b/src/rt_door.c
@@ -42,8 +42,6 @@
 #include "engine.h"
 #include <stdlib.h>
 #include <string.h>
-//MED
-#include "memcheck.h"
 
 /*=============================================================================
 
--- a/src/rt_draw.c
+++ b/src/rt_draw.c
@@ -57,8 +57,6 @@
 #include "rt_rand.h"
 #include "rt_net.h"
 #include "rt_sc_a.h"
-//MED
-#include "memcheck.h"
 
 
 extern void VH_UpdateScreen (void);
--- a/src/rt_error.c
+++ b/src/rt_error.c
@@ -35,8 +35,6 @@
 #include "rt_vid.h"
 #include "rt_util.h"
 #include "modexlib.h"
-//MED
-#include "memcheck.h"
 
 
 //*****************************************************************************
--- a/src/rt_floor.c
+++ b/src/rt_floor.c
@@ -40,8 +40,6 @@
 #include "rt_playr.h"
 #include "rt_sound.h"
 #include "rt_rand.h"
-//MED
-#include "memcheck.h"
 
 /*
 =============================================================================
--- a/src/rt_game.c
+++ b/src/rt_game.c
@@ -56,8 +56,6 @@
 #include "rt_msg.h"
 #include "rt_scale.h"
 #include "develop.h"
-//MED
-#include "memcheck.h"
 #include "queue.h"
 
 #if (SHAREWARE == 1)
--- a/src/rt_in.c
+++ b/src/rt_in.c
@@ -41,8 +41,6 @@
 #include "rt_net.h"
 #include "rt_com.h"
 #include "rt_cfg.h"
-//MED
-#include "memcheck.h"
 #include "keyb.h"
 #include "HashTable.h"
 
--- a/src/rt_main.c
+++ b/src/rt_main.c
@@ -73,8 +73,6 @@
 
 #include "music.h"
 #include "fx_man.h"
-//MED
-#include "memcheck.h"
 
 volatile int    oldtime;
 volatile int    gametime;
@@ -407,7 +405,6 @@
             
             strncat (title,itoa(ROTTMAJORVERSION,&buf[0],10), CountDigits(ROTTMAJORVERSION));
             strncat (title,".", 1);
-//MED
 #if (SHAREWARE==1)||(DOPEFISH==0)
             strncat (title,itoa(ROTTMINORVERSION,&buf[0],10), CountDigits(ROTTMINORVERSION));
 #else
@@ -649,7 +646,6 @@
         case 10:
             SetTextMode ();
             printf ("Rise of the Triad  (c) 1995 Apogee Software\n");
-//MED
             if (gamestate.Product == ROTT_SHAREWARE)
             {
 #if (DELUXE==1)
--- a/src/rt_map.c
+++ b/src/rt_map.c
@@ -48,8 +48,6 @@
 #include "rt_net.h"
 #include "rt_str.h"
 #include "watcom.h"
-//MED
-#include "memcheck.h"
 
 //===========================================================================
 
--- a/src/rt_menu.c
+++ b/src/rt_menu.c
@@ -70,8 +70,6 @@
 
 #include "rt_battl.h"
 #include "develop.h"
-//MED
-#include "memcheck.h"
 
 
 //******************************************************************************
--- a/src/rt_msg.c
+++ b/src/rt_msg.c
@@ -34,8 +34,6 @@
 #include "rt_net.h"
 #include "rt_com.h"
 #include <stdlib.h>
-//MED
-#include "memcheck.h"
 
 
 /*
--- a/src/rt_net.c
+++ b/src/rt_net.c
@@ -45,8 +45,6 @@
 #include "rt_view.h"
 #include "rt_battl.h"
 #include "rt_dmand.h"
-//MED
-#include "memcheck.h"
 
 #if (SYNCCHECK == 1)
 int            lastsynccheck;
--- a/src/rt_playr.c
+++ b/src/rt_playr.c
@@ -52,8 +52,6 @@
 #include "sprites.h"
 #include "rt_net.h"
 #include "rt_dmand.h"
-//MED
-#include "memcheck.h"
 
 
 #define FLYINGZMOM  350000
--- a/src/rt_rand.c
+++ b/src/rt_rand.c
@@ -24,8 +24,6 @@
 #include "rt_util.h"
 #include <time.h>
 
-//MED
-#include "memcheck.h"
 
 //****************************************************************************
 //
--- a/src/rt_scale.c
+++ b/src/rt_scale.c
@@ -36,8 +36,6 @@
 #include "rt_vid.h"
 #include "rt_view.h"
 #include "rt_playr.h"
-//MED
-#include "memcheck.h"
 
 /*
 =============================================================================
--- a/src/rt_sound.c
+++ b/src/rt_sound.c
@@ -47,8 +47,6 @@
 #else
 #include "snd_shar.h"
 #endif
-//MED
-#include "memcheck.h"
 
 // Local Variables
 
--- a/src/rt_stat.c
+++ b/src/rt_stat.c
@@ -40,8 +40,6 @@
 #include "rt_net.h"
 #include "rt_view.h"
 #include "isr.h"
-//MED
-#include "memcheck.h"
 
 
 
@@ -157,7 +155,6 @@
     {0,EMPTY_STATUE1,stat_emptystatue,FL_BLOCK|FL_SHOOTABLE,0,0,50,0,0},
     {16,TOMLARVA1,stat_tomlarva,FL_ACTIVE|FL_SHOOTABLE|FL_BLOCK,2,4,150,0,0},
     {0,BULLETHOLE,stat_bullethole,FL_TRANSLUCENT,0,0,0,0,0},
-//MED
 #if (SHAREWARE == 1)
     {0,COLLECTOR1,stat_collector,FL_ACTIVE|FL_BONUS,2,8,-1,0,0},
 #else
--- a/src/rt_state.c
+++ b/src/rt_state.c
@@ -23,8 +23,6 @@
 #include "rt_actor.h"
 #include "develop.h"
 #define SPRINGDELAY 3
-//MED
-#include "memcheck.h"
 
 
 extern void T_ReallyDead(objtype*ob);
@@ -941,7 +939,6 @@
 statetype s_guts2 = {false,GUTS2,3,T_Collide,SF_GUTS,&s_guts3};
 statetype s_guts1 = {false,GUTS1,3,T_Collide,SF_GUTS,&s_guts2};
 
-//MED
 #if (SHAREWARE == 1) || (DOPEFISH == 0)
 statetype s_collectorwander8 = {false,COLLECTOR15,0,T_CollectorWander,0,&s_collectorwander1};
 statetype s_collectorwander7 = {false,COLLECTOR13,1,T_CollectorWander,0,&s_collectorwander8};
@@ -964,7 +961,6 @@
 #endif
 
 
-//MED
 #if (SHAREWARE == 1) || (DOPEFISH == 0)
 statetype s_collectorfdoor8 = {false,COLLECTOR15,0,T_CollectorFindDoor,0,&s_collectorfdoor1};
 statetype s_collectorfdoor7 = {false,COLLECTOR13,1,T_CollectorFindDoor,0,&s_collectorfdoor8};
@@ -1062,7 +1058,6 @@
 
 statetype s_gibsdone8 = {false,PARTICLE12,2,NULL,0,NULL};
 statetype s_gibsdone7 = {false,PARTICLE11,2,NULL,0,&s_gibsdone8};
-//MED
 statetype s_gibsdone6 = {false,PARTICLE10,2,NULL,0,&s_gibsdone7};
 statetype s_gibsdone5 = {false,PARTICLE09,2,NULL,0,&s_gibsdone6};
 statetype s_gibsdone4 = {false,PARTICLE08,2,NULL,0,&s_gibsdone5};
--- a/src/rt_str.c
+++ b/src/rt_str.c
@@ -51,8 +51,6 @@
 #include "rt_playr.h"
 #include "rt_sound.h"
 #include "myprint.h"
-//MED
-#include "memcheck.h"
 
 
 //******************************************************************************
--- a/src/rt_ted.c
+++ b/src/rt_ted.c
@@ -56,8 +56,6 @@
 #include "rt_debug.h"
 #include "rt_scale.h"
 #include "rt_net.h"
-//MED
-#include "memcheck.h"
 #include "queue.h"
 
 
@@ -5489,7 +5487,6 @@
 
     if (gamestate.SpawnEluder || gamestate.SpawnDeluder)
     {
-//MED
         for (i=0; i<25; i++)
             RespawnEluder();
     }
--- a/src/rt_util.c
+++ b/src/rt_util.c
@@ -51,8 +51,6 @@
 #include "rt_view.h"
 #include "modexlib.h"
 #include "rt_cfg.h"
-//MED
-#include "memcheck.h"
 
 int    egacolor[16];
 byte   *  origpal;
--- a/src/rt_vid.c
+++ b/src/rt_vid.c
@@ -39,8 +39,6 @@
 #include "rt_view.h"
 #include "cin_efct.h"
 #include "w_wad.h"
-//MED
-#include "memcheck.h"
 
 
 //******************************************************************************
--- a/src/rt_view.c
+++ b/src/rt_view.c
@@ -41,8 +41,6 @@
 #include "rt_str.h"
 #include "watcom.h"
 #include "develop.h"
-//MED
-#include "memcheck.h"
 
 #define LIGHTNINGLEVEL 4
 #define MINLIGHTNINGLEVEL   2
--- a/src/sbconfig.c
+++ b/src/sbconfig.c
@@ -35,8 +35,6 @@
 
 #include "develop.h"
 #include "sbconfig.h"
-//MED
-#include "memcheck.h"
 
 /* ----------------------------------------------------------------------- */
 
--- a/src/scriplib.c
+++ b/src/scriplib.c
@@ -24,8 +24,6 @@
 #include "rt_def.h"
 #include "scriplib.h"
 #include "rt_util.h"
-//MED
-#include "memcheck.h"
 
 /*
 =============================================================================
--- a/src/z_zone.c
+++ b/src/z_zone.c
@@ -30,8 +30,6 @@
 #include "develop.h"
 #include "rt_net.h"
 
-//MED
-#include "memcheck.h"
 
 int lowmemory=0;