shithub: choc

Download patch

ref: 046f9226b6b912cdb12dc3b35953aee7666f4b63
parent: 96879d84140634a23050157c8899dbc1616c7b54
author: Simon Howard <fraggle@gmail.com>
date: Sun Nov 2 18:36:10 EST 2008

Remove Hexen TIMEBOMB code.

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

--- a/src/hexen/h2_main.c
+++ b/src/hexen/h2_main.c
@@ -96,10 +96,6 @@
 static void CreateSavePath(void);
 static void WarpCheck(void);
 
-#ifdef TIMEBOMB
-static void DoTimeBomb(void);
-#endif
-
 // EXTERNAL DATA DECLARATIONS ----------------------------------------------
 
 extern boolean automapactive;
@@ -260,10 +256,6 @@
     // Now that the savedir is loaded from .CFG, make sure it exists
     CreateSavePath();
 
-#ifdef TIMEBOMB
-    DoTimeBomb();
-#endif
-
     ST_Message("Z_Init: Init zone memory allocation daemon.\n");
     Z_Init();
 
@@ -856,38 +848,3 @@
     M_MakeDirectory(SavePath);
 }
 
-#ifdef TIMEBOMB
-//==========================================================================
-//
-// DoTimeBomb
-//
-//==========================================================================
-
-static void DoTimeBomb(void)
-{
-#ifdef __WATCOMC__
-    time_t timeOfDay;
-    struct tm timeBuffer;
-
-    timeOfDay = time(NULL);
-    _localtime(&timeOfDay, &timeBuffer);
-    if (timeBuffer.tm_year != TIMEBOMB_YEAR
-        || timeBuffer.tm_yday < TIMEBOMB_STARTDATE
-        || timeBuffer.tm_yday > TIMEBOMB_ENDDATE)
-    {
-        I_Error("W_InitWadfiles:  Wad file doesn't have IWAD or PWAD id\n");
-    }
-
-    printf
-        ("\n===============================================================================\n");
-    printf("                             Hexen:  Beyond Heretic\n\n");
-    printf("                           Beta -- Do Not Distribute!\n");
-    printf("                           Press any key to continue.\n");
-    printf
-        ("===============================================================================\n");
-
-    getch();
-    printf("\n");
-#endif
-}
-#endif
--- a/src/hexen/h2def.h
+++ b/src/hexen/h2def.h
@@ -59,12 +59,6 @@
 #define HEXEN_VERSION 110
 #define HEXEN_VERSION_TEXT "v1.1"
 
-// Uncomment, to enable all timebomb stuff
-//#define TIMEBOMB
-#define TIMEBOMB_YEAR	95      // years since 1900
-#define TIMEBOMB_STARTDATE	268     // initial date (9/26)
-#define TIMEBOMB_ENDDATE	301     // end date (10/29)
-
 // if rangecheck is undefined, most parameter validation debugging code
 // will not be compiled
 #ifndef NORANGECHECKING
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -506,9 +506,6 @@
     "ARE YOU SURE YOU WANT TO SUICIDE?"
 };
 
-
-#define BETA_FLASH_TEXT "BETA"
-
 void MN_Drawer(void)
 {
     int i;
@@ -516,15 +513,6 @@
     int y;
     MenuItem_t *item;
     char *selName;
-
-#ifdef TIMEBOMB
-    // Beta blinker ***
-    if (leveltime & 16)
-    {
-        MN_DrTextA(BETA_FLASH_TEXT,
-                   160 - (MN_TextAWidth(BETA_FLASH_TEXT) >> 1), 12);
-    }
-#endif // TIMEBOMB
 
     if (MenuActive == false)
     {
--