Commit 4e962545 authored by Steven Fuller's avatar Steven Fuller

Removed JAPAN (Was unable to find any evidence that a Japan demo was even

released)
parent 82883df5
...@@ -23,10 +23,6 @@ work the same, let the input handler do it all instead ...@@ -23,10 +23,6 @@ work the same, let the input handler do it all instead
* when viewsize is around 20, sprites end up being drawn over the border. * when viewsize is around 20, sprites end up being drawn over the border.
maybe there are clipping bugs that will cause it to fill over the top, left, maybe there are clipping bugs that will cause it to fill over the top, left,
and right and right
* if japan versions are not to be found, remove the code
actually, if you look in wl_menu.c, the japan menus are empty, which means
no text, and it would have to be that there was no offically released
japanese version (unless the text was removed, but then why?)
* remove DEMOEXTERN, and add ability to play demos from commandline * remove DEMOEXTERN, and add ability to play demos from commandline
* remove SPANISH code (and spanish.h)? honestly i would rather have a german * remove SPANISH code (and spanish.h)? honestly i would rather have a german
version than a spanish version version than a spanish version
...@@ -57,17 +53,17 @@ remove them ...@@ -57,17 +53,17 @@ remove them
* remove the time verification code (in wl_inter.c) * remove the time verification code (in wl_inter.c)
* fix wl_debug.c, lots of junk code.. * fix wl_debug.c, lots of junk code..
* change the current parameter handling code to something like getopt * change the current parameter handling code to something like getopt
* urgent: fix input (event handling), so that it makes sense
Specific: Specific:
* memory/sound intro screen goes * memory/sound intro screen goes
- trademarked images, only came with wolf3d 1.4's (I believe) - trademarked images, only came with wolf3d 1.4's (I believe)
* japan code goes
- Unable to find, doubtful if released
* spanish code goes * spanish code goes
- Unable to find, doubtful if released - Unable to find, doubtful if released
* no piracy message goes
- I think it's a bit useless, and anyone can remove it
* copy protection goes * copy protection goes
- Who needs a manual to look at the source? - Who needs a manual to look at the source?
* time verification code goes * time verification code goes
- The contest was killed before it was started. - The contest was killed before it was started.
* put event handling in id_in.c
- Most loops which take too long call some input function and can place a
function call in the rest of the loops
...@@ -33,18 +33,6 @@ extern char signon; ...@@ -33,18 +33,6 @@ extern char signon;
#define introscn signon #define introscn signon
#ifdef JAPAN
#ifdef JAPDEMO
#include "FOREIGN\JAPAN\GFXV_WJ1.H"
#else /* JAPDEMO */
#include "FOREIGN\JAPAN\GFXV_WJ6.H"
#endif /* JAPDEMO */
#include "audiowl6.h"
#else /* JAPAN */
#ifndef SPEAR #ifndef SPEAR
#ifndef UPLOAD #ifndef UPLOAD
...@@ -66,7 +54,6 @@ extern char signon; ...@@ -66,7 +54,6 @@ extern char signon;
#endif /* SPEARDEMO */ #endif /* SPEARDEMO */
#endif /* SPEAR */ #endif /* SPEAR */
#endif /* JAPAN */
/* ---------------- */ /* ---------------- */
......
...@@ -6,46 +6,33 @@ ...@@ -6,46 +6,33 @@
/* SDM = 2 */ /* SDM = 2 */
/* SOD = 3 */ /* SOD = 3 */
#ifndef WMODE #ifndef WMODE
#define WMODE 1 #define WMODE 3
#endif #endif
#if WMODE == 0 #if WMODE == 0
/* #define SPEAR */ /* #define SPEAR */
/* #define SPEARDEMO */ /* #define SPEARDEMO */
/* #define JAPAN */
/* #define JAPDEMO */
#define GOODTIMES #define GOODTIMES
#define UPLOAD #define UPLOAD
#elif WMODE == 1 #elif WMODE == 1
/* #define SPEAR */ /* #define SPEAR */
/* #define SPEARDEMO */ /* #define SPEARDEMO */
/* #define JAPAN */
/* #define JAPDEMO */
#define GOODTIMES #define GOODTIMES
/* #define UPLOAD */ /* #define UPLOAD */
#elif WMODE == 2 #elif WMODE == 2
#define SPEAR #define SPEAR
#define SPEARDEMO #define SPEARDEMO
/* #define JAPAN */
/* #define JAPDEMO */
#define GOODTIMES #define GOODTIMES
/* #define UPLOAD */ /* #define UPLOAD */
#elif WMODE == 3 #elif WMODE == 3
#define SPEAR #define SPEAR
/* #define SPEARDEMO */ /* #define SPEARDEMO */
/* #define JAPAN */
/* #define JAPDEMO */
#define GOODTIMES #define GOODTIMES
/* #define UPLOAD */ /* #define UPLOAD */
/*
JAPANDEMO requires UPLOAD
SPANISH
*/
#else #else
#error "please edit version.h and fix WMODE" #error "please edit version.h and fix WMODE"
#endif #endif
......
...@@ -3794,13 +3794,10 @@ void A_StartDeathCam (objtype *ob) ...@@ -3794,13 +3794,10 @@ void A_StartDeathCam (objtype *ob)
CA_UpLevel (); CA_UpLevel ();
CacheLump(LEVELEND_LUMP_START,LEVELEND_LUMP_END); CacheLump(LEVELEND_LUMP_START,LEVELEND_LUMP_END);
#ifdef JAPAN
#ifndef JAPDEMO /* TODO: does this also show the deathcam sprite? */
CA_CacheScreen(C_LETSSEEPIC);
#endif
#else
Write(0,7,STR_SEEAGAIN); Write(0,7,STR_SEEAGAIN);
#endif
CA_DownLevel (); CA_DownLevel ();
VW_UpdateScreen (); VW_UpdateScreen ();
......
...@@ -1317,30 +1317,8 @@ startplayloop: ...@@ -1317,30 +1317,8 @@ startplayloop:
CheckHighScore (gamestate.score,gamestate.mapon+1); CheckHighScore (gamestate.score,gamestate.mapon+1);
#ifndef JAPAN
strcpy(MainMenu[viewscores].string,STR_VS); strcpy(MainMenu[viewscores].string,STR_VS);
#endif MainMenu[viewscores].routine = (void *)CP_ViewScores;
MainMenu[viewscores].routine = CP_ViewScores;
return;
}
#endif
#ifdef JAPDEMO
if (gamestate.mapon == 3)
{
died = true; // don't "get psyched!"
VW_FadeOut ();
ClearMemory ();
CheckHighScore (gamestate.score,gamestate.mapon+1);
#ifndef JAPAN
strcpy(MainMenu[viewscores].string,STR_VS);
#endif
MainMenu[viewscores].routine = CP_ViewScores;
return; return;
} }
...@@ -1407,9 +1385,7 @@ startplayloop: ...@@ -1407,9 +1385,7 @@ startplayloop:
CheckHighScore (gamestate.score,gamestate.mapon+1); CheckHighScore (gamestate.score,gamestate.mapon+1);
#ifndef JAPAN
strcpy(MainMenu[viewscores].string,STR_VS); strcpy(MainMenu[viewscores].string,STR_VS);
#endif
MainMenu[viewscores].routine = (void *)CP_ViewScores; MainMenu[viewscores].routine = (void *)CP_ViewScores;
return; return;
...@@ -1429,9 +1405,7 @@ startplayloop: ...@@ -1429,9 +1405,7 @@ startplayloop:
CheckHighScore (gamestate.score,gamestate.mapon+1); CheckHighScore (gamestate.score,gamestate.mapon+1);
#ifndef JAPAN
strcpy(MainMenu[viewscores].string,STR_VS); strcpy(MainMenu[viewscores].string,STR_VS);
#endif
MainMenu[viewscores].routine = (void *)CP_ViewScores; MainMenu[viewscores].routine = (void *)CP_ViewScores;
return; return;
......
...@@ -156,13 +156,7 @@ void Victory (void) ...@@ -156,13 +156,7 @@ void Victory (void)
VWB_Bar (0,0,320,200-STATUSLINES,127); VWB_Bar (0,0,320,200-STATUSLINES,127);
#ifdef JAPAN
#ifndef JAPDEMO
CA_CacheGrChunk(C_ENDRATIOSPIC);
VWB_DrawPic(0,0,C_ENDRATIOSPIC);
UNCACHEGRCHUNK(C_ENDRATIOSPIC);
#endif
#else
Write(18,2,STR_YOUWIN); Write(18,2,STR_YOUWIN);
Write(TIMEX,TIMEY-2,STR_TOTALTIME); Write(TIMEX,TIMEY-2,STR_TOTALTIME);
...@@ -179,12 +173,7 @@ void Victory (void) ...@@ -179,12 +173,7 @@ void Victory (void)
Write(RATIOX, RATIOY+4,STR_RATTREASURE); Write(RATIOX, RATIOY+4,STR_RATTREASURE);
#endif #endif
#endif
#ifndef JAPDEMO
VWB_DrawPic (8,4,L_BJWINSPIC); VWB_DrawPic (8,4,L_BJWINSPIC);
#endif
#ifndef SPEAR #ifndef SPEAR
for (kr = sr = tr = sec = i = 0;i < 8;i++) for (kr = sr = tr = sec = i = 0;i < 8;i++)
...@@ -295,7 +284,6 @@ void Victory (void) ...@@ -295,7 +284,6 @@ void Victory (void)
//========================================================================== //==========================================================================
#ifndef JAPAN
/* /*
================== ==================
= =
...@@ -320,7 +308,6 @@ void PG13 (void) ...@@ -320,7 +308,6 @@ void PG13 (void)
VW_FadeOut (); VW_FadeOut ();
} }
#endif
//========================================================================== //==========================================================================
...@@ -562,11 +549,6 @@ void LevelCompleted (void) ...@@ -562,11 +549,6 @@ void LevelCompleted (void)
IN_ClearKeysDown(); IN_ClearKeysDown();
IN_StartAck(); IN_StartAck();
#ifdef JAPAN
CA_CacheGrChunk(C_INTERMISSIONPIC);
VWB_DrawPic(0,0,C_INTERMISSIONPIC);
UNCACHEGRCHUNK(C_INTERMISSIONPIC);
#endif
VWB_DrawPic(0,16,L_GUYPIC); VWB_DrawPic(0,16,L_GUYPIC);
#ifndef SPEAR #ifndef SPEAR
...@@ -578,7 +560,6 @@ void LevelCompleted (void) ...@@ -578,7 +560,6 @@ void LevelCompleted (void)
mapon < 17) mapon < 17)
#endif #endif
{ {
#ifndef JAPAN
#ifdef SPANISH #ifdef SPANISH
Write(14,2,"piso\ncompletado"); Write(14,2,"piso\ncompletado");
#else #else
...@@ -600,7 +581,6 @@ void LevelCompleted (void) ...@@ -600,7 +581,6 @@ void LevelCompleted (void)
#endif #endif
Write(26,2,itoa(gamestate.mapon+1,tempstr,10)); Write(26,2,itoa(gamestate.mapon+1,tempstr,10));
#endif
#ifdef SPANISH #ifdef SPANISH
Write(30,12,parTimes[gamestate.episode*10+mapon].timestr); Write(30,12,parTimes[gamestate.episode*10+mapon].timestr);
...@@ -916,23 +896,6 @@ void LevelCompleted (void) ...@@ -916,23 +896,6 @@ void LevelCompleted (void)
} }
#endif #endif
#ifdef JAPDEMO
if (gamestate.mapon == 3)
{
SD_PlaySound (BONUS1UPSND);
CA_CacheGrChunk (STARTFONT+1);
Message ("This concludes your demo\n"
"of Wolfenstein 3-D! Now,\n"
"go to your local software\n"
"store and buy it!");
UNCACHEGRCHUNK (STARTFONT+1);
IN_ClearKeysDown();
IN_Ack();
}
#endif
#ifndef SPEAR #ifndef SPEAR
if (Keyboard[sc_P] && MS_CheckParm("goobers")) if (Keyboard[sc_P] && MS_CheckParm("goobers"))
PicturePause(); PicturePause();
...@@ -1242,57 +1205,6 @@ void CheckHighScore (long score,word other) ...@@ -1242,57 +1205,6 @@ void CheckHighScore (long score,word other)
} }
#ifndef UPLOAD
#ifndef SPEAR
#ifndef JAPAN
////////////////////////////////////////////////////////
//
// NON-SHAREWARE NOTICE
//
////////////////////////////////////////////////////////
void NonShareware(void)
{
VW_FadeOut();
ClearMScreen();
DrawStripes(10);
CA_CacheGrChunk(STARTFONT+1);
fontnumber = 1;
SETFONTCOLOR(READHCOLOR,BKGDCOLOR);
PrintX=110;
PrintY=15;
#ifdef SPANISH
US_Print("Atencion");
#else
US_Print("Attention");
#endif
SETFONTCOLOR(HIGHLIGHT,BKGDCOLOR);
WindowX=PrintX=40;
PrintY=60;
#ifdef SPANISH
US_Print("Este juego NO es gratis y\n");
US_Print("NO es Shareware; favor de\n");
US_Print("no distribuirlo.\n\n");
#else
US_Print("This game is NOT shareware.\n");
US_Print("Please do not distribute it.\n");
US_Print("Thanks.\n\n");
#endif
US_Print(" Id Software\n");
VW_UpdateScreen ();
VW_FadeIn();
IN_Ack();
}
#endif
#endif
#endif
#ifdef SPEAR #ifdef SPEAR
#ifndef SPEARDEMO #ifndef SPEARDEMO
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
......
...@@ -664,7 +664,6 @@ void FinishSignon (void) ...@@ -664,7 +664,6 @@ void FinishSignon (void)
WindowW = 320; WindowW = 320;
PrintY = 190; PrintY = 190;
#ifndef JAPAN
SETFONTCOLOR(14,4); SETFONTCOLOR(14,4);
#ifdef SPANISH #ifdef SPANISH
...@@ -673,12 +672,9 @@ void FinishSignon (void) ...@@ -673,12 +672,9 @@ void FinishSignon (void)
US_CPrint ("Press a key"); US_CPrint ("Press a key");
#endif #endif
#endif
if (!NoWait) if (!NoWait)
IN_Ack (); IN_Ack ();
#ifndef JAPAN
VW_Bar (0,189,300,11,*gfxbuf); VW_Bar (0,189,300,11,*gfxbuf);
PrintY = 190; PrintY = 190;
...@@ -690,8 +686,6 @@ void FinishSignon (void) ...@@ -690,8 +686,6 @@ void FinishSignon (void)
US_CPrint ("Working..."); US_CPrint ("Working...");
#endif #endif
#endif
SETFONTCOLOR(0,15); SETFONTCOLOR(0,15);
#else #else
if (!NoWait) if (!NoWait)
...@@ -1167,10 +1161,8 @@ void Quit (char *error) ...@@ -1167,10 +1161,8 @@ void Quit (char *error)
if (!*error) if (!*error)
{ {
#ifndef JAPAN
CA_CacheGrChunk(ORDERSCREEN); CA_CacheGrChunk(ORDERSCREEN);
screen = grsegs[ORDERSCREEN]; screen = grsegs[ORDERSCREEN];
#endif
WriteConfig (); WriteConfig ();
} }
else else
...@@ -1203,10 +1195,8 @@ void Quit (char *error) ...@@ -1203,10 +1195,8 @@ void Quit (char *error)
if (!error || !(*error)) if (!error || !(*error))
{ {
clrscr(); clrscr();
#ifndef JAPAN
movedata ((unsigned)screen,7,0xb800,0,4000); movedata ((unsigned)screen,7,0xb800,0,4000);
gotoxy(1,24); gotoxy(1,24);
#endif
} }
#endif #endif
...@@ -1234,30 +1224,15 @@ void DemoLoop (void) ...@@ -1234,30 +1224,15 @@ void DemoLoop (void)
#ifndef UPLOAD #ifndef UPLOAD
#ifndef GOODTIMES #if !defined(GOODTIMES) && defined(SPEAR) && !defined(SPEARDEMO)
#ifndef SPEAR
#ifndef JAPAN
if (!NoWait)
NonShareware();
#endif
#else
#ifndef GOODTIMES
#ifndef SPEARDEMO
CopyProtection(); CopyProtection();
#endif #endif
#endif #endif
#endif
#endif
#endif
StartCPMusic(INTROSONG); StartCPMusic(INTROSONG);
#ifndef JAPAN
if (!NoWait) if (!NoWait)
PG13 (); PG13 ();
#endif
while (1) while (1)
{ {
......
This diff is collapsed.
...@@ -221,7 +221,6 @@ typedef struct { ...@@ -221,7 +221,6 @@ typedef struct {
extern LRstruct LevelRatios[]; extern LRstruct LevelRatios[];
void Write (int x,int y,char *string); void Write (int x,int y,char *string);
void NonShareware(void);
int GetYorN(int x,int y,int pic); int GetYorN(int x,int y,int pic);
#else #else
......
...@@ -59,7 +59,6 @@ boolean layoutdone; ...@@ -59,7 +59,6 @@ boolean layoutdone;
//=========================================================================== //===========================================================================
#ifndef JAPAN
/* /*
===================== =====================
= =
...@@ -592,8 +591,6 @@ void CacheLayoutGraphics (void) ...@@ -592,8 +591,6 @@ void CacheLayoutGraphics (void)
Quit ("CacheLayoutGraphics: No ^E to terminate file!"); Quit ("CacheLayoutGraphics: No ^E to terminate file!");
} }
#endif
/* /*
===================== =====================
...@@ -603,53 +600,12 @@ void CacheLayoutGraphics (void) ...@@ -603,53 +600,12 @@ void CacheLayoutGraphics (void)
===================== =====================
*/ */
#ifdef JAPAN
void ShowArticle (int which)
#else
void ShowArticle (char *article) void ShowArticle (char *article)
#endif
{ {
#ifdef JAPAN
int snames[10] = { H_HELP1PIC,
H_HELP2PIC,
H_HELP3PIC,
H_HELP4PIC,
H_HELP5PIC,
H_HELP6PIC,
H_HELP7PIC,
H_HELP8PIC,
H_HELP9PIC,
H_HELP10PIC};
int enames[14] = {
0,0,
#ifndef JAPDEMO
C_ENDGAME1APIC,
C_ENDGAME1BPIC,
C_ENDGAME2APIC,
C_ENDGAME2BPIC,
C_ENDGAME3APIC,
C_ENDGAME3BPIC,
C_ENDGAME4APIC,
C_ENDGAME4BPIC,
C_ENDGAME5APIC,
C_ENDGAME5BPIC,
C_ENDGAME6APIC,
C_ENDGAME6BPIC
#endif
};
#endif
unsigned oldfontnumber; unsigned oldfontnumber;
unsigned temp; unsigned temp;
boolean newpage,firstpage; boolean newpage,firstpage;
#ifdef JAPAN
pagenum = 1;
if (!which)
numpages = 10;
else
numpages = 2;
#else
text = article; text = article;
oldfontnumber = fontnumber; oldfontnumber = fontnumber;
...@@ -658,7 +614,6 @@ void ShowArticle (char *article) ...@@ -658,7 +614,6 @@ void ShowArticle (char *article)
CA_CacheGrChunk(STARTFONT); CA_CacheGrChunk(STARTFONT);
VWB_Bar (0,0,320,200,BACKCOLOR); VWB_Bar (0,0,320,200,BACKCOLOR);
CacheLayoutGraphics (); CacheLayoutGraphics ();
#endif
newpage = true; newpage = true;
firstpage = true; firstpage = true;
...@@ -668,14 +623,7 @@ void ShowArticle (char *article) ...@@ -668,14 +623,7 @@ void ShowArticle (char *article)
if (newpage) if (newpage)
{ {
newpage = false; newpage = false;
#ifdef JAPAN
if (!which)
CA_CacheScreen(snames[pagenum - 1]);
else
CA_CacheScreen(enames[which*2 + pagenum - 1]);
#else
PageLayout (true); PageLayout (true);
#endif
VW_UpdateScreen (); VW_UpdateScreen ();
if (firstpage) if (firstpage)
{ {
...@@ -696,12 +644,8 @@ void ShowArticle (char *article) ...@@ -696,12 +644,8 @@ void ShowArticle (char *article)
case sc_LeftArrow: case sc_LeftArrow:
if (pagenum>1) if (pagenum>1)
{ {
#ifndef JAPAN
BackPage (); BackPage ();
BackPage (); BackPage ();
#else
pagenum--;
#endif
newpage = true; newpage = true;
} }
break; break;
...@@ -713,9 +657,6 @@ void ShowArticle (char *article) ...@@ -713,9 +657,6 @@ void ShowArticle (char *article)
if (pagenum<numpages) if (pagenum<numpages)
{ {
newpage = true; newpage = true;
#ifdef JAPAN
pagenum++;
#endif
} }
break; break;
} }
...@@ -734,12 +675,10 @@ void ShowArticle (char *article) ...@@ -734,12 +675,10 @@ void ShowArticle (char *article)
//=========================================================================== //===========================================================================
#ifndef JAPAN
int endextern = T_ENDART1; int endextern = T_ENDART1;
#ifndef SPEAR #ifndef SPEAR
int helpextern = T_HELPART; int helpextern = T_HELPART;
#endif #endif
#endif
/* /*
================= =================
...@@ -757,13 +696,6 @@ void HelpScreens (void) ...@@ -757,13 +696,6 @@ void HelpScreens (void)
CA_UpLevel (); CA_UpLevel ();
MM_SortMem (); MM_SortMem ();
#ifdef JAPAN
ShowArticle (0);
VW_FadeOut();
FreeMusic ();
CA_DownLevel ();
MM_SortMem ();
#else
artnum = helpextern; artnum = helpextern;
CA_CacheGrChunk (artnum); CA_CacheGrChunk (artnum);
...@@ -779,7 +711,6 @@ void HelpScreens (void) ...@@ -779,7 +711,6 @@ void HelpScreens (void)
FreeMusic (); FreeMusic ();
CA_DownLevel (); CA_DownLevel ();
MM_SortMem (); MM_SortMem ();
#endif
} }
// //
...@@ -796,18 +727,6 @@ void EndText (void) ...@@ -796,18 +727,6 @@ void EndText (void)
CA_UpLevel (); CA_UpLevel ();
MM_SortMem (); MM_SortMem ();
#ifdef JAPAN
ShowArticle(gamestate.episode + 1);
VW_FadeOut();
SETFONTCOLOR(0,15);
IN_ClearKeysDown();
FreeMusic ();
CA_DownLevel ();
MM_SortMem ();
#else
artnum = endextern+gamestate.episode; artnum = endextern+gamestate.episode;
CA_CacheGrChunk (artnum); CA_CacheGrChunk (artnum);
...@@ -825,7 +744,6 @@ void EndText (void) ...@@ -825,7 +744,6 @@ void EndText (void)
FreeMusic (); FreeMusic ();
CA_DownLevel (); CA_DownLevel ();
MM_SortMem (); MM_SortMem ();
#endif
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment