heh, nor do we need PROGHEADER_CRC

This commit is contained in:
Bill Currie 2001-08-27 21:13:00 +00:00
parent 9d27a12df7
commit 3edd4550d2
5 changed files with 95 additions and 99 deletions

View file

@ -26,8 +26,8 @@
$Id$
*/
#ifndef _PROGS_H
#define _PROGS_H
#ifndef __QF_progs_h
#define __QF_progs_h
#include "QF/link.h"
#include "QF/vfile.h"
@ -291,4 +291,4 @@ struct progs_s {
} fields;
};
#endif // _PROGS_H
#endif//__QF_progs_h

View file

@ -49,7 +49,6 @@ void
Skin_Set_Translate (int top, int bottom, void *_dest)
{
int i, j;
byte *dest2; // FIXME: bleargh, this needs cleaning up
top = bound (0, top, 13) * 16;
bottom = bound (0, bottom, 13) * 16;
@ -64,8 +63,7 @@ Skin_Set_Translate (int top, int bottom, void *_dest)
memcpy (dest, vid.colormap8, VID_GRADES * 256);
for (i = 0; i < VID_GRADES; i++, dest += 256, source += 256) {
if (top < 128) // the artists made some backwards
// ranges. sigh.
if (top < 128) // the artists made some backwards ranges.
memcpy (dest + TOP_RANGE, source + top, 16);
else
for (j = 0; j < 16; j++)
@ -149,7 +147,7 @@ Skin_Set_Translate (int top, int bottom, void *_dest)
Sys_Error("Skin_Set_Translate: unsupported r_pixbytes %i\n",
r_pixbytes);
}
/*
dest2 = (byte *) _dest;
for (j = 0;j < 256;j++)
@ -170,6 +168,7 @@ Skin_Set_Translate (int top, int bottom, void *_dest)
for (j = 0; j < 16; j++)
dest2[BOTTOM_RANGE + j] = d_8to24table[bottom + 15 - j];
}
*/
}
void

View file

@ -45,8 +45,6 @@
#include "sv_progs.h"
#include "world.h"
#define PROGHEADER_CRC 5927
progs_t sv_pr_state;
sv_globals_t sv_globals;
sv_funcs_t sv_funcs;

View file

@ -93,6 +93,7 @@ typedef struct player_info_s
int spectator;
byte translations[4*VID_GRADES*256]; // space for colormap32
int translationcolor[256];
struct skin_s *skin;
} player_info_t;

View file

@ -45,8 +45,6 @@
#include "sv_progs.h"
#include "world.h"
#define PROGHEADER_CRC 54730
sv_globals_t sv_globals;
sv_funcs_t sv_funcs;
sv_fields_t sv_fields;