Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Disable dead code.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@152 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
commit 0db07d2787cc4442e0efc6694d75b911946c5151 1 parent f98cfd8
paul authored
View
15 misc.c
@@ -170,19 +170,7 @@ long filelength(myint handle)
#endif
}
-char *strlwr(char *s)
-{
- char *p = s;
-
- while (*p) {
- if (*p >= 'A' && *p <= 'Z')
- *p += 'a' - 'A';
- p++;
- }
-
- return s;
-}
-
+#ifndef EMBEDDED
char *itoa(myint value, char *string, myint radix)
{
return ltoa(value, string, radix);
@@ -220,7 +208,6 @@ char *ultoa(unsigned long value, char *string, myint radix)
return string;
}
-#ifndef EMBEDDED
/* from Dan Olson */
static void put_dos2ansi(byte attrib)
{
View
2  misc.h
@@ -21,8 +21,6 @@ long filelength(myint handle);
#define strnicmp strncasecmp
#endif
-char *strlwr(char *s);
-
char *itoa(myint value, char *string, myint radix);
char *ltoa(long value, char *string, myint radix);
char *ultoa(unsigned long value, char *string, myint radix);
View
4 vi_comm.c
@@ -138,6 +138,7 @@ void keyboard_handler(myint code, myint press)
}
}
+#ifndef EMBEDDED
///////////////////////////////////////////////////////////////////////////
//
// IN_UserInput() - Waits for the specified delay time (in ticks) or the
@@ -160,6 +161,7 @@ boolean IN_UserInput(longword delay)
return false;
}
+#endif
//===========================================================================
@@ -381,6 +383,7 @@ IN_CheckAck();
}
#endif
+#ifndef EMBEDDED
///////////////////////////////////////////////////////////////////////////
//
// IN_Ack() - waits for a button or key press. If a button is down, upon
@@ -447,3 +450,4 @@ void IN_Ack()
while(!IN_CheckAck()) ;
}
+#endif
View
4 wl_act2.c
@@ -2457,6 +2457,7 @@ boolean CheckPosition(objtype *ob)
void A_StartDeathCam(objtype *ob)
{
+#ifndef EMBEDDED
long dx,dy;
long xmove,ymove;
long dist;
@@ -2475,7 +2476,6 @@ void A_StartDeathCam(objtype *ob)
gamestate.victoryflag = true;
-#ifndef EMBEDDED
FizzleFade(false, 70, 127);
CacheLump(LEVELEND_LUMP_START, LEVELEND_LUMP_END);
@@ -2483,7 +2483,6 @@ void A_StartDeathCam(objtype *ob)
Write(0, 7, STR_SEEAGAIN);
VW_UpdateScreen();
-#endif
IN_UserInput(300);
@@ -2538,6 +2537,7 @@ void A_StartDeathCam(objtype *ob)
default:
break;
}
+#endif
}
View
24 wl_agent.c
@@ -254,7 +254,6 @@ void UpdateFace()
DrawFace();
}
}
-#endif
/*
@@ -306,6 +305,7 @@ void DrawHealth()
LatchNumber(21,16,3,gamestate.health);
}
+#endif
/*
===============
@@ -340,10 +340,10 @@ void TakeDamage(myint points, objtype *attacker)
gotgatgun=0;
+#ifndef EMBEDDED
DrawHealth();
DrawFace();
-#ifndef EMBEDDED
//
// MAKE BJ'S EYES BUG IF MAJOR DAMAGE!
//
@@ -373,15 +373,18 @@ void HealSelf(myint points)
if (gamestate.health>100)
gamestate.health = 100;
+#ifndef EMBEDDED
DrawHealth();
gotgatgun = 0; // JR
DrawFace();
+#endif
}
//===========================================================================
+#ifndef EMBEDDED
/*
===============
=
@@ -415,6 +418,7 @@ void DrawLives()
{
LatchNumber(14,16,1,gamestate.lives);
}
+#endif
/*
@@ -429,12 +433,15 @@ void GiveExtraMan()
{
if (gamestate.lives<9)
gamestate.lives++;
+#ifndef EMBEDDED
DrawLives();
+#endif
SD_PlaySound(BONUS1UPSND);
}
//===========================================================================
+#ifndef EMBEDDED
/*
===============
=
@@ -447,6 +454,7 @@ void DrawScore()
{
LatchNumber(6, 16, 6, gamestate.score);
}
+#endif
/*
===============
@@ -464,7 +472,9 @@ void GivePoints(long points)
gamestate.nextextra += EXTRAPOINTS;
GiveExtraMan();
}
+#ifndef EMBEDDED
DrawScore();
+#endif
}
//===========================================================================
@@ -479,7 +489,9 @@ void GivePoints(long points)
void DrawWeapon()
{
+#ifndef EMBEDDED
StatusDrawPic(32,8,KNIFEPIC+gamestate.weapon);
+#endif
}
/*
@@ -492,6 +504,7 @@ void DrawWeapon()
void DrawKeys()
{
+#ifndef EMBEDDED
if (gamestate.keys & 1)
StatusDrawPic(30,4,GOLDKEYPIC);
else
@@ -501,6 +514,7 @@ void DrawKeys()
StatusDrawPic(30,20,SILVERKEYPIC);
else
StatusDrawPic(30,20,NOKEYPIC);
+#endif
}
/*
@@ -524,6 +538,7 @@ void GiveWeapon(myint weapon)
//===========================================================================
+#ifndef EMBEDDED
/*
===============
=
@@ -536,6 +551,7 @@ void DrawAmmo()
{
LatchNumber(27,16,2,gamestate.ammo);
}
+#endif
/*
===============
@@ -558,7 +574,9 @@ void GiveAmmo(myint ammo)
gamestate.ammo += ammo;
if (gamestate.ammo > 99)
gamestate.ammo = 99;
+#ifndef EMBEDDED
DrawAmmo();
+#endif
}
//===========================================================================
@@ -1304,7 +1322,9 @@ void T_Attack(objtype *ob)
}
GunAttack (ob);
gamestate.ammo--;
+#ifndef EMBEDDED
DrawAmmo ();
+#endif
break;
case 2:
View
14 wl_game.c
@@ -630,6 +630,7 @@ void SetupGameLevel()
/* ======================================================================== */
+#ifndef EMBEDDED
/*
===================
=
@@ -642,7 +643,6 @@ void SetupGameLevel()
void DrawPlayBorderSides()
{
-#ifndef EMBEDDED
myint xl, yl;
xl = 160-viewwidthwin/2;
@@ -657,7 +657,6 @@ void DrawPlayBorderSides()
VW_Vlin(yl-1,yl+viewheightwin,xl-1,0);
VW_Vlin(yl-1,yl+viewheightwin,xl+viewwidthwin,125);
}
-#endif
}
/*
@@ -670,7 +669,6 @@ void DrawPlayBorderSides()
void DrawPlayBorder()
{
-#ifndef EMBEDDED
myint xl, yl;
VW_Bar(0,0,320,200-STATUSLINES+1,127);
@@ -688,7 +686,6 @@ void DrawPlayBorder()
VW_Vlin(yl-1,yl+viewheightwin,xl+viewwidthwin,125);
VW_Plot(xl-1,yl+viewheightwin,124);
}
-#endif
}
void DrawStatusBar()
@@ -702,6 +699,7 @@ void DrawStatusBar()
DrawWeapon();
DrawScore();
}
+#endif
/*
===================
@@ -1059,7 +1057,9 @@ void Died()
IN_ClearKeysDown();
+#ifndef EMBEDDED
IN_UserInput(140);
+#endif
SD_WaitSoundDone();
gamestate.lives--;
@@ -1074,12 +1074,14 @@ void Died()
gamestate.attackframe = gamestate.attackcount =
gamestate.weaponframe = 0;
+#ifndef EMBEDDED
DrawKeys();
DrawWeapon();
DrawAmmo();
DrawHealth();
DrawFace();
DrawLives();
+#endif
}
}
@@ -1108,7 +1110,9 @@ void GameLoop()
{
if (!loadedgame)
gamestate.score = gamestate.oldscore;
+#ifndef EMBEDDED
DrawScore();
+#endif
startgame = false;
if (loadedgame)
@@ -1134,7 +1138,9 @@ void GameLoop()
#endif
died = false;
+#ifndef EMBEDDED
DrawLevel();
+#endif
#ifdef SPEAR
startplayloop:
View
2  wl_main.c
@@ -1222,7 +1222,9 @@ void InitGame()
//
InitRedShifts();
+#ifndef EMBEDDED
IN_CheckAck();
+#endif
//
// HOLDING DOWN 'M' KEY?
//
View
2  wl_play.c
@@ -465,8 +465,10 @@ void PollControls()
}
#endif
+#ifndef EMBEDDED
/* Update keys */
IN_CheckAck();
+#endif
UpdateInput();
Please sign in to comment.
Something went wrong with that request. Please try again.