Commit 59f8e415 authored by Steven Fuller's avatar Steven Fuller

id_ca.c, id_ca.h: Changed filename bases to #defines (instead of arrays)

parent 84604a9b
......@@ -69,6 +69,7 @@ function with same parameters, only difference is the name)
* look for places where gfx needs to be redrawn, like back to game etc
* fizzlefade is hackish, stipple buf would work ok in opengl, maybe only
update once per frame or such...
no idea how to do fizzlefade in TrueColor X
* check filehandling (ex, file missing, bad file type, and such)
PlayDemoFromFile specifically
* make sure all infinite loops are found (looping around Keyboard)
......
/* id_ca.c */
#include "id_heads.h"
typedef struct
......@@ -30,15 +28,15 @@ maptype *mapheaderseg[NUMMAPS];
byte *audiosegs[NUMSNDCHUNKS];
byte *grsegs[NUMCHUNKS];
char extension[5],
gheadname[10] = "vgahead.",
gfilename[10] = "vgagraph.",
gdictname[10] = "vgadict.",
mheadname[10] = "maphead.",
gmapsname[10] = "gamemaps.",
aheadname[10] = "audiohed.",
afilename[10] = "audiot.",
pfilename[10] = "vswap.";
char extension[5];
#define gheadname "vgahead."
#define gfilename "vgagraph."
#define gdictname "vgadict."
#define mheadname "maphead."
#define gmapsname "gamemaps."
#define aheadname "audiohed."
#define afilename "audiot."
#define pfilename "vswap."
static long *grstarts; /* array of offsets in vgagraph, -1 for sparse */
static long *audiostarts; /* array of offsets in audio / audiot */
......
......@@ -23,13 +23,7 @@ extern maptype *mapheaderseg[NUMMAPS];
extern byte *audiosegs[NUMSNDCHUNKS];
extern byte *grsegs[NUMCHUNKS];
extern char extension[5],
gheadname[10],
gfilename[10],
gdictname[10],
mheadname[10],
aheadname[10],
afilename[10];
extern char extension[5];
/* ======================================================================== */
......
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