mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Blood: replaced 'unsigned char' with 'uint8_t' and 'signed char' with 'int8_t'.
Preparation for getting rid of all those excessively used plain chars which are a menace to code stability.
This commit is contained in:
parent
839547a9fc
commit
ada28d8d04
12 changed files with 34 additions and 34 deletions
|
@ -6533,7 +6533,7 @@ void actFireVector(spritetype *pShooter, int a2, int a3, int a4, int a5, int a6,
|
|||
int y = gHitInfo.hity-MulScale(a5, 16, 14);
|
||||
int z = gHitInfo.hitz-MulScale(a6, 256, 14);
|
||||
short nSector = gHitInfo.hitsect;
|
||||
unsigned char nSurf = kSurfNone;
|
||||
uint8_t nSurf = kSurfNone;
|
||||
if (nRange == 0 || approxDist(gHitInfo.hitx-pShooter->x, gHitInfo.hity-pShooter->y) < nRange)
|
||||
{
|
||||
switch (hit)
|
||||
|
|
|
@ -70,16 +70,16 @@ struct THINGINFO
|
|||
{
|
||||
short startHealth;
|
||||
short mass;
|
||||
unsigned char clipdist;
|
||||
uint8_t clipdist;
|
||||
short flags;
|
||||
int elastic; // elasticity
|
||||
int dmgResist; // damage resistance
|
||||
short cstat;
|
||||
short picnum;
|
||||
char shade;
|
||||
unsigned char pal;
|
||||
unsigned char xrepeat; // xrepeat
|
||||
unsigned char yrepeat; // yrepeat
|
||||
uint8_t pal;
|
||||
uint8_t xrepeat; // xrepeat
|
||||
uint8_t yrepeat; // yrepeat
|
||||
int dmgControl[kDamageMax]; // damage
|
||||
};
|
||||
|
||||
|
@ -89,11 +89,11 @@ struct AMMOITEMDATA
|
|||
short picnum;
|
||||
char shade;
|
||||
char pal;
|
||||
unsigned char xrepeat;
|
||||
unsigned char yrepeat;
|
||||
uint8_t xrepeat;
|
||||
uint8_t yrepeat;
|
||||
short count;
|
||||
unsigned char type;
|
||||
unsigned char weaponType;
|
||||
uint8_t type;
|
||||
uint8_t weaponType;
|
||||
};
|
||||
|
||||
struct WEAPONITEMDATA
|
||||
|
@ -102,8 +102,8 @@ struct WEAPONITEMDATA
|
|||
short picnum;
|
||||
char shade;
|
||||
char pal;
|
||||
unsigned char xrepeat;
|
||||
unsigned char yrepeat;
|
||||
uint8_t xrepeat;
|
||||
uint8_t yrepeat;
|
||||
short type;
|
||||
short ammoType;
|
||||
short count;
|
||||
|
@ -115,8 +115,8 @@ struct ITEMDATA
|
|||
short picnum;
|
||||
char shade;
|
||||
char pal;
|
||||
unsigned char xrepeat;
|
||||
unsigned char yrepeat;
|
||||
uint8_t xrepeat;
|
||||
uint8_t yrepeat;
|
||||
short packSlot;
|
||||
};
|
||||
|
||||
|
@ -125,15 +125,15 @@ struct MissileType
|
|||
short picnum;
|
||||
int velocity;
|
||||
int angleOfs;
|
||||
unsigned char xrepeat;
|
||||
unsigned char yrepeat;
|
||||
uint8_t xrepeat;
|
||||
uint8_t yrepeat;
|
||||
char shade;
|
||||
unsigned char clipDist;
|
||||
uint8_t clipDist;
|
||||
};
|
||||
|
||||
struct EXPLOSION
|
||||
{
|
||||
unsigned char repeat;
|
||||
uint8_t repeat;
|
||||
char dmg;
|
||||
char dmgRng;
|
||||
int radius;
|
||||
|
|
|
@ -979,7 +979,7 @@ void dbLoadMap(const char *pPath, int *pX, int *pY, int *pZ, short *pAngle, shor
|
|||
|
||||
fr.Seek(0, FileReader::SeekSet);
|
||||
auto buffer = fr.Read();
|
||||
unsigned char md4[16];
|
||||
uint8_t md4[16];
|
||||
md4once(buffer.Data(), buffer.Size(), md4);
|
||||
G_LoadMapHack(mapname, md4);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ struct DUDEINFO {
|
|||
short startHealth; // health
|
||||
unsigned short mass; // mass
|
||||
int at6; // unused?
|
||||
unsigned char clipdist; // clipdist
|
||||
uint8_t clipdist; // clipdist
|
||||
int eyeHeight;
|
||||
int aimHeight; // used by just Cerberus
|
||||
int hearDist; // hear radius
|
||||
|
|
|
@ -109,10 +109,10 @@ void FireProcess(void)
|
|||
void CellularFrame(char *pFrame, int sizeX, int sizeY)
|
||||
{
|
||||
int nSquare = sizeX * sizeY;
|
||||
unsigned char *pPtr1 = (unsigned char*)pFrame;
|
||||
uint8_t *pPtr1 = (uint8_t*)pFrame;
|
||||
while (nSquare--)
|
||||
{
|
||||
unsigned char *pPtr2 = pPtr1+sizeX;
|
||||
uint8_t *pPtr2 = pPtr1+sizeX;
|
||||
int sum = *(pPtr2-1) + *pPtr2 + *(pPtr2+1) + *(pPtr2+sizeX);
|
||||
if (*(pPtr2+sizeX) > 96)
|
||||
{
|
||||
|
|
|
@ -44,8 +44,8 @@ BEGIN_BLD_NS
|
|||
|
||||
static struct {
|
||||
short nTile;
|
||||
unsigned char nStat;
|
||||
unsigned char nPal;
|
||||
uint8_t nStat;
|
||||
uint8_t nPal;
|
||||
int nScale;
|
||||
short nX, nY;
|
||||
} burnTable[9] = {
|
||||
|
|
|
@ -47,8 +47,8 @@ enum EGameFlag
|
|||
};
|
||||
|
||||
struct GAMEOPTIONS {
|
||||
unsigned char nGameType;
|
||||
unsigned char nDifficulty;
|
||||
uint8_t nGameType;
|
||||
uint8_t nDifficulty;
|
||||
char nMonsterSettings;
|
||||
int uGameFlags;
|
||||
int uNetGameFlags;
|
||||
|
|
|
@ -115,7 +115,7 @@ enum SurfaceType {
|
|||
};
|
||||
|
||||
extern char surfType[MAXTILES];
|
||||
extern signed char tileShade[MAXTILES];
|
||||
extern int8_t tileShade[MAXTILES];
|
||||
extern short voxelIndex[MAXTILES];
|
||||
|
||||
extern int nPrecacheCount;
|
||||
|
|
|
@ -182,7 +182,7 @@ struct PLAYER
|
|||
struct AMMOINFO
|
||||
{
|
||||
int max;
|
||||
signed char vectorType;
|
||||
int8_t vectorType;
|
||||
};
|
||||
|
||||
struct POWERUPINFO
|
||||
|
|
|
@ -46,7 +46,7 @@ struct TILE_FRAME
|
|||
int y;
|
||||
int z;
|
||||
int stat;
|
||||
signed char shade;
|
||||
int8_t shade;
|
||||
char palnum;
|
||||
unsigned short angle;
|
||||
};
|
||||
|
@ -54,9 +54,9 @@ struct TILE_FRAME
|
|||
struct SOUNDINFO
|
||||
{
|
||||
int sound;
|
||||
unsigned char priority;
|
||||
unsigned char sndFlags; // (by NoOne) Various sound flags
|
||||
unsigned char sndRange; // (by NoOne) Random sound range
|
||||
uint8_t priority;
|
||||
uint8_t sndFlags; // (by NoOne) Various sound flags
|
||||
uint8_t sndRange; // (by NoOne) Random sound range
|
||||
char reserved[1];
|
||||
};
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ struct Seq {
|
|||
|
||||
struct ACTIVE
|
||||
{
|
||||
unsigned char type;
|
||||
uint8_t type;
|
||||
unsigned short xindex;
|
||||
};
|
||||
|
||||
|
@ -86,7 +86,7 @@ struct SEQINST
|
|||
int nSeqID;
|
||||
int callback;
|
||||
short timeCounter;
|
||||
unsigned char frameIndex;
|
||||
uint8_t frameIndex;
|
||||
void Update();
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ int tileEnd[256];
|
|||
int hTileFile[256];
|
||||
|
||||
char surfType[kMaxTiles];
|
||||
signed char tileShade[kMaxTiles];
|
||||
int8_t tileShade[kMaxTiles];
|
||||
short voxelIndex[kMaxTiles];
|
||||
|
||||
const char *pzBaseFileName = "TILES%03i.ART"; //"TILES%03i.ART";
|
||||
|
|
Loading…
Reference in a new issue