diff options
author | Simon Howard | 2008-11-02 23:36:10 +0000 |
---|---|---|
committer | Simon Howard | 2008-11-02 23:36:10 +0000 |
commit | 046f9226b6b912cdb12dc3b35953aee7666f4b63 (patch) | |
tree | 2e7ef6c68b21e7e25099477f9f5fb1ffc90549ac /src | |
parent | 96879d84140634a23050157c8899dbc1616c7b54 (diff) | |
download | chocolate-doom-046f9226b6b912cdb12dc3b35953aee7666f4b63.tar.gz chocolate-doom-046f9226b6b912cdb12dc3b35953aee7666f4b63.tar.bz2 chocolate-doom-046f9226b6b912cdb12dc3b35953aee7666f4b63.zip |
Remove Hexen TIMEBOMB code.
Subversion-branch: /branches/raven-branch
Subversion-revision: 1374
Diffstat (limited to 'src')
-rw-r--r-- | src/hexen/h2_main.c | 43 | ||||
-rw-r--r-- | src/hexen/h2def.h | 6 | ||||
-rw-r--r-- | src/hexen/mn_menu.c | 12 |
3 files changed, 0 insertions, 61 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 15b6b1b6..ecc9832a 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -96,10 +96,6 @@ static void ExecOptionPLAYDEMO(char **args, int tag); 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 @@ void D_DoomMain(void) // 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 @@ static void CreateSavePath(void) 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 diff --git a/src/hexen/h2def.h b/src/hexen/h2def.h index b1462adc..c0725ab3 100644 --- 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 diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c index f7b34bc8..dee86f97 100644 --- a/src/hexen/mn_menu.c +++ b/src/hexen/mn_menu.c @@ -506,9 +506,6 @@ char *QuitEndMsg[] = { "ARE YOU SURE YOU WANT TO SUICIDE?" }; - -#define BETA_FLASH_TEXT "BETA" - void MN_Drawer(void) { int i; @@ -517,15 +514,6 @@ void MN_Drawer(void) 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) { if (askforquit) |