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) ...@@ -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 * 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 * fizzlefade is hackish, stipple buf would work ok in opengl, maybe only
update once per frame or such... 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) * check filehandling (ex, file missing, bad file type, and such)
PlayDemoFromFile specifically PlayDemoFromFile specifically
* make sure all infinite loops are found (looping around Keyboard) * make sure all infinite loops are found (looping around Keyboard)
......
/* id_ca.c */
#include "id_heads.h" #include "id_heads.h"
typedef struct typedef struct
...@@ -30,15 +28,15 @@ maptype *mapheaderseg[NUMMAPS]; ...@@ -30,15 +28,15 @@ maptype *mapheaderseg[NUMMAPS];
byte *audiosegs[NUMSNDCHUNKS]; byte *audiosegs[NUMSNDCHUNKS];
byte *grsegs[NUMCHUNKS]; byte *grsegs[NUMCHUNKS];
char extension[5], char extension[5];
gheadname[10] = "vgahead.", #define gheadname "vgahead."
gfilename[10] = "vgagraph.", #define gfilename "vgagraph."
gdictname[10] = "vgadict.", #define gdictname "vgadict."
mheadname[10] = "maphead.", #define mheadname "maphead."
gmapsname[10] = "gamemaps.", #define gmapsname "gamemaps."
aheadname[10] = "audiohed.", #define aheadname "audiohed."
afilename[10] = "audiot.", #define afilename "audiot."
pfilename[10] = "vswap."; #define pfilename "vswap."
static long *grstarts; /* array of offsets in vgagraph, -1 for sparse */ static long *grstarts; /* array of offsets in vgagraph, -1 for sparse */
static long *audiostarts; /* array of offsets in audio / audiot */ static long *audiostarts; /* array of offsets in audio / audiot */
......
...@@ -23,13 +23,7 @@ extern maptype *mapheaderseg[NUMMAPS]; ...@@ -23,13 +23,7 @@ extern maptype *mapheaderseg[NUMMAPS];
extern byte *audiosegs[NUMSNDCHUNKS]; extern byte *audiosegs[NUMSNDCHUNKS];
extern byte *grsegs[NUMCHUNKS]; extern byte *grsegs[NUMCHUNKS];
extern char extension[5], extern char extension[5];
gheadname[10],
gfilename[10],
gdictname[10],
mheadname[10],
aheadname[10],
afilename[10];
/* ======================================================================== */ /* ======================================================================== */
......
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