mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-22 11:31:11 +00:00
- replaced a few chars in Exhumed
This commit is contained in:
parent
baa3e531d4
commit
5465c9976c
5 changed files with 9 additions and 12 deletions
|
@ -730,7 +730,7 @@ struct Snake
|
||||||
short sC;
|
short sC;
|
||||||
short nRun;
|
short nRun;
|
||||||
|
|
||||||
char c[8];
|
uint8_t c[8];
|
||||||
short sE;
|
short sE;
|
||||||
short nSnakePlayer;
|
short nSnakePlayer;
|
||||||
};
|
};
|
||||||
|
|
|
@ -110,7 +110,6 @@ void FixPalette();
|
||||||
int HavePLURemap();
|
int HavePLURemap();
|
||||||
uint8_t RemapPLU(uint8_t pal);
|
uint8_t RemapPLU(uint8_t pal);
|
||||||
|
|
||||||
//extern unsigned char kenpal[];
|
|
||||||
extern short overscanindex;
|
extern short overscanindex;
|
||||||
|
|
||||||
extern char *origpalookup[];
|
extern char *origpalookup[];
|
||||||
|
@ -129,7 +128,7 @@ void DrawMap(double const smoothratio);
|
||||||
|
|
||||||
void InitRandom();
|
void InitRandom();
|
||||||
int RandomBit();
|
int RandomBit();
|
||||||
char RandomByte();
|
uint8_t RandomByte();
|
||||||
uint16_t RandomWord();
|
uint16_t RandomWord();
|
||||||
int RandomLong();
|
int RandomLong();
|
||||||
int RandomSize(int nSize);
|
int RandomSize(int nSize);
|
||||||
|
|
|
@ -46,9 +46,7 @@ const char *GradList[kMaxGrads] = {
|
||||||
int rtint = 0;
|
int rtint = 0;
|
||||||
int gtint = 0;
|
int gtint = 0;
|
||||||
int btint = 0;
|
int btint = 0;
|
||||||
//char *origpalookup[kMaxPalookups];
|
|
||||||
//unsigned char curpal[768];
|
|
||||||
//unsigned char kenpal[768];
|
|
||||||
palette_t *fadedestpal;
|
palette_t *fadedestpal;
|
||||||
palette_t *fadecurpal;
|
palette_t *fadecurpal;
|
||||||
short nPalDelay;
|
short nPalDelay;
|
||||||
|
|
|
@ -50,7 +50,7 @@ struct TrailPoint
|
||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
char nTrailPointVal;
|
uint8_t nTrailPointVal;
|
||||||
short nTrailPointPrev;
|
short nTrailPointPrev;
|
||||||
short nTrailPointNext;
|
short nTrailPointNext;
|
||||||
|
|
||||||
|
@ -59,8 +59,8 @@ struct TrailPoint
|
||||||
struct Bob
|
struct Bob
|
||||||
{
|
{
|
||||||
int nSector;
|
int nSector;
|
||||||
char field_2;
|
uint8_t field_2;
|
||||||
char field_3;
|
uint8_t field_3;
|
||||||
int z;
|
int z;
|
||||||
short sBobID;
|
short sBobID;
|
||||||
|
|
||||||
|
|
|
@ -52,9 +52,9 @@ int RandomBit()
|
||||||
return (((randA == 0) & randC) | (randB & randA)) & 1;
|
return (((randA == 0) & randC) | (randB & randA)) & 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char RandomByte()
|
uint8_t RandomByte()
|
||||||
{
|
{
|
||||||
char randByte = RandomBit() << 7;
|
uint8_t randByte = RandomBit() << 7;
|
||||||
randByte |= RandomBit() << 6;
|
randByte |= RandomBit() << 6;
|
||||||
randByte |= RandomBit() << 5;
|
randByte |= RandomBit() << 5;
|
||||||
randByte |= RandomBit() << 4;
|
randByte |= RandomBit() << 4;
|
||||||
|
@ -67,7 +67,7 @@ char RandomByte()
|
||||||
|
|
||||||
uint16_t RandomWord()
|
uint16_t RandomWord()
|
||||||
{
|
{
|
||||||
short randWord = RandomByte() << 8;
|
uint16_t randWord = RandomByte() << 8;
|
||||||
randWord |= RandomByte();
|
randWord |= RandomByte();
|
||||||
return randWord;
|
return randWord;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue