- replaced the homegrown integer types in all p* sources and headers.

This commit is contained in:
Christoph Oelckers 2017-03-08 15:20:00 +01:00
commit ad41b23506
37 changed files with 487 additions and 487 deletions

View file

@ -146,7 +146,7 @@ bool P_ActivateLine (line_t *line, AActor *mo, int side, int activationType, DVe
int lineActivation;
INTBOOL repeat;
INTBOOL buttonSuccess;
BYTE special;
uint8_t special;
if (!P_TestActivateLine (line, mo, side, activationType, optpos))
{
@ -336,7 +336,7 @@ bool P_PredictLine(line_t *line, AActor *mo, int side, int activationType)
{
int lineActivation;
INTBOOL buttonSuccess;
BYTE special;
uint8_t special;
// Only predict a very specifc section of specials
if (line->special != Teleport_Line &&
@ -749,17 +749,17 @@ class DWallLightTransfer : public DThinker
DECLARE_CLASS (DWallLightTransfer, DThinker)
DWallLightTransfer() {}
public:
DWallLightTransfer (sector_t *srcSec, int target, BYTE flags);
DWallLightTransfer (sector_t *srcSec, int target, uint8_t flags);
void Serialize(FSerializer &arc);
void Tick ();
protected:
static void DoTransfer (short level, int target, BYTE flags);
static void DoTransfer (short level, int target, uint8_t flags);
sector_t *Source;
int TargetID;
short LastLight;
BYTE Flags;
uint8_t Flags;
};
IMPLEMENT_CLASS(DWallLightTransfer, false, false)
@ -773,7 +773,7 @@ void DWallLightTransfer::Serialize(FSerializer &arc)
("flags", Flags);
}
DWallLightTransfer::DWallLightTransfer (sector_t *srcSec, int target, BYTE flags)
DWallLightTransfer::DWallLightTransfer (sector_t *srcSec, int target, uint8_t flags)
{
int linenum;
int wallflags;
@ -819,7 +819,7 @@ void DWallLightTransfer::Tick ()
}
}
void DWallLightTransfer::DoTransfer (short lightlevel, int target, BYTE flags)
void DWallLightTransfer::DoTransfer (short lightlevel, int target, uint8_t flags)
{
int linenum;
@ -1204,7 +1204,7 @@ void P_InitSectorSpecial(sector_t *sector, int special)
if (sector->special >= Scroll_North_Slow &&
sector->special <= Scroll_SouthWest_Fast)
{ // Hexen scroll special
static const SBYTE hexenScrollies[24][2] =
static const int8_t hexenScrollies[24][2] =
{
{ 0, 1 }, { 0, 2 }, { 0, 4 },
{ -1, 0 }, { -2, 0 }, { -4, 0 },