mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-09 23:10:49 +00:00
- removed pointless constexpr declaration on numeric constants.
This commit is contained in:
parent
3b7f494a88
commit
4f0e3adfbb
5 changed files with 10 additions and 10 deletions
|
@ -29,7 +29,7 @@ void Dictionary::Serialize(FSerializer &arc)
|
||||||
{
|
{
|
||||||
Super::Serialize(arc);
|
Super::Serialize(arc);
|
||||||
|
|
||||||
constexpr char key[] { "dictionary" };
|
static const char key[] = "dictionary";
|
||||||
|
|
||||||
if (arc.isWriting())
|
if (arc.isWriting())
|
||||||
{
|
{
|
||||||
|
|
|
@ -179,8 +179,8 @@ public:
|
||||||
|
|
||||||
extern InputState inputState;
|
extern InputState inputState;
|
||||||
|
|
||||||
constexpr int analogExtent = 32767; // used as a divisor for scaling joystick input.
|
const int analogExtent = 32767; // used as a divisor for scaling joystick input.
|
||||||
constexpr float joyaxesScale = (float)analogExtent * 0.75f; // used as a multiplier for scaling joystick input.
|
const float joyaxesScale = (float)analogExtent * 0.75f; // used as a multiplier for scaling joystick input.
|
||||||
|
|
||||||
void CONTROL_GetInput(ControlInfo* info);
|
void CONTROL_GetInput(ControlInfo* info);
|
||||||
int32_t handleevents(void);
|
int32_t handleevents(void);
|
||||||
|
|
|
@ -407,8 +407,8 @@ static void G_DoLoadScreen(const char *statustext, int percent)
|
||||||
if (percent != -1)
|
if (percent != -1)
|
||||||
{
|
{
|
||||||
int const width = scale(scale(xdim-1, 288, 320), percent, 100);
|
int const width = scale(scale(xdim-1, 288, 320), percent, 100);
|
||||||
int constexpr tile = 929;
|
int const tile = 929;
|
||||||
int constexpr bits = 2+8+16;
|
int const bits = 2+8+16;
|
||||||
|
|
||||||
rotatesprite(31<<16 , 145<<16, 65536, 0, tile, 15, 0, bits, 0, 0, width, ydim-1);
|
rotatesprite(31<<16 , 145<<16, 65536, 0, tile, 15, 0, bits, 0, 0, width, ydim-1);
|
||||||
rotatesprite(159<<16, 145<<16, 65536, 0, tile, 15, 0, bits, 0, 0, width, ydim-1);
|
rotatesprite(159<<16, 145<<16, 65536, 0, tile, 15, 0, bits, 0, 0, width, ydim-1);
|
||||||
|
|
|
@ -188,7 +188,7 @@ void PlayerInterruptKeys()
|
||||||
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
int const turnAmount = playerRunning ? 12 : 8;
|
int const turnAmount = playerRunning ? 12 : 8;
|
||||||
int const keyMove = playerRunning ? 12 : 6;
|
int const keyMove = playerRunning ? 12 : 6;
|
||||||
constexpr int const analogTurnAmount = 12;
|
int const analogTurnAmount = 12;
|
||||||
|
|
||||||
if (buttonMap.ButtonDown(gamefunc_Strafe))
|
if (buttonMap.ButtonDown(gamefunc_Strafe))
|
||||||
{
|
{
|
||||||
|
|
|
@ -3254,7 +3254,7 @@ void P_GetInput(int const playerNum)
|
||||||
|
|
||||||
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
int const turnAmount = playerRunning ? (NORMALTURN << 1) : NORMALTURN;
|
int const turnAmount = playerRunning ? (NORMALTURN << 1) : NORMALTURN;
|
||||||
constexpr int analogTurnAmount = (NORMALTURN << 1);
|
int const analogTurnAmount = (NORMALTURN << 1);
|
||||||
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
||||||
|
|
||||||
input_t input {};
|
input_t input {};
|
||||||
|
@ -3668,7 +3668,7 @@ void P_GetInputMotorcycle(int playerNum)
|
||||||
|
|
||||||
// JBF: Run key behaviour is selectable
|
// JBF: Run key behaviour is selectable
|
||||||
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
constexpr int analogTurnAmount = (NORMALTURN << 1);
|
int const analogTurnAmount = (NORMALTURN << 1);
|
||||||
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
||||||
|
|
||||||
input_t input {};
|
input_t input {};
|
||||||
|
@ -3918,7 +3918,7 @@ void P_GetInputBoat(int playerNum)
|
||||||
|
|
||||||
// JBF: Run key behaviour is selectable
|
// JBF: Run key behaviour is selectable
|
||||||
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run));
|
||||||
constexpr int analogTurnAmount = (NORMALTURN << 1);
|
int const analogTurnAmount = (NORMALTURN << 1);
|
||||||
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
int const keyMove = playerRunning ? (NORMALKEYMOVE << 1) : NORMALKEYMOVE;
|
||||||
|
|
||||||
input_t input {};
|
input_t input {};
|
||||||
|
@ -4159,7 +4159,7 @@ void P_DHGetInput(int const playerNum)
|
||||||
int const playerCrouch = sub_299D8();
|
int const playerCrouch = sub_299D8();
|
||||||
int const playerJump = buttonMap.ButtonDown(gamefunc_Jump) && !(pPlayer->cursectnum >= 0 && sector[pPlayer->cursectnum].hitag == 2003);
|
int const playerJump = buttonMap.ButtonDown(gamefunc_Jump) && !(pPlayer->cursectnum >= 0 && sector[pPlayer->cursectnum].hitag == 2003);
|
||||||
int const turnAmount = playerCrouch ? 2 : (playerRunning ? 16 : 8);
|
int const turnAmount = playerCrouch ? 2 : (playerRunning ? 16 : 8);
|
||||||
constexpr int analogTurnAmount = 16;
|
int const analogTurnAmount = 16;
|
||||||
int const keyMove = playerCrouch ? 3 : (playerRunning ? 24 : 12);
|
int const keyMove = playerCrouch ? 3 : (playerRunning ? 24 : 12);
|
||||||
|
|
||||||
input_t input {};
|
input_t input {};
|
||||||
|
|
Loading…
Reference in a new issue