Browse files

Remove excess map data.

git-svn-id: svn+ssh://jay/var/svn/wolf/trunk@133 32837ae5-38f0-4cfd-8401-3ff76d8497c4
  • Loading branch information...
1 parent b955d9d commit 2d87ccd2b912d47bb0bee9aef484322ff23416b7 paul committed Aug 19, 2007
Showing with 11 additions and 5 deletions.
  1. +2 −2 build_mapheaders.c
  2. +4 −0 id_ca.h
  3. +0 −2 version.h
  4. +2 −0 wl_act2.c
  5. +1 −1 wl_debug.c
  6. +2 −0 wl_play.c
View
4 build_mapheaders.c
@@ -21,9 +21,9 @@ int main()
printf("#include \"wl_def.h\"\n");
printf("const word RLEWtag = 0x%x;\n", rlew);
- printf("const maptype mapheaderseg[60] = {\n");
+ printf("const maptype mapheaderseg[NUMMAPS] = {\n");
f = fopen("gamemaps." GAMEEXT, "rb");
- for (i = 0; i < 60; i++)
+ for (i = 0; i < NUMMAPS; i++)
{
if (!offsets[i]) {
printf ("{{0, 0}, {0,0}},\n");
View
4 id_ca.h
@@ -3,7 +3,11 @@
/* ======================================================================== */
+#ifdef UPLOAD
+#define NUMMAPS 10
+#else
#define NUMMAPS 60
+#endif
#define MAPPLANES 2
typedef struct
View
2 version.h
@@ -60,9 +60,7 @@
#if WMODE == 0
/* #define SPEAR */
/* #define SPEARDEMO */
-#ifndef EMBEDDED
#define UPLOAD
-#endif
#define GAMENAME "Wolfenstein 3D Shareware"
#define GAMEEXT "wl1"
#define GAMETYPE "WL1\0"
View
2 wl_act2.c
@@ -491,6 +491,7 @@ void A_DeathScream (objtype *ob)
case guardobj:
{
+#ifdef ENABLE_AUDIO
#ifndef UPLOAD
myint sounds[8]={ DEATHSCREAM1SND, DEATHSCREAM2SND,
DEATHSCREAM3SND, DEATHSCREAM4SND,
@@ -505,6 +506,7 @@ void A_DeathScream (objtype *ob)
};
PlaySoundLocActor(sounds[US_RndT()%3], ob);
#endif
+#endif
}
break;
case officerobj:
View
2 wl_debug.c
@@ -1,5 +1,6 @@
#include "wl_def.h"
+#ifndef EMBEDDED
/*
==================
=
@@ -90,7 +91,6 @@ void ShapeTest()
{
}
-#ifndef EMBEDDED
/*
================
=
View
2 wl_play.c
@@ -524,7 +524,9 @@ void PollControls()
void CenterWindow(word w,word h)
{
+#ifndef EMBEDDED
US_DrawWindow(((MAXX / 8) - w) / 2,((MAXY / 8) - h) / 2,w,h);
+#endif
}
//===========================================================================

0 comments on commit 2d87ccd

Please sign in to comment.