mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Duke3D: Change horizSkew from fix16_t to int8_t.
- No point converting an int to fix16, only to convert it back. It's only ever an unrounded integer.
This commit is contained in:
parent
c7d3753c2b
commit
ae353b93fb
2 changed files with 4 additions and 4 deletions
|
@ -3374,7 +3374,7 @@ void P_GetInput(int const playerNum)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thisPlayer.horizSkew)
|
if (thisPlayer.horizSkew)
|
||||||
pPlayer->q16horiz = fix16_sadd(pPlayer->q16horiz, fix16_from_dbl(scaleAdjustmentToInterval(fix16_to_dbl(thisPlayer.horizSkew))));
|
pPlayer->q16horiz = fix16_sadd(pPlayer->q16horiz, fix16_from_dbl(scaleAdjustmentToInterval(thisPlayer.horizSkew)));
|
||||||
|
|
||||||
pPlayer->q16horiz = fix16_clamp(pPlayer->q16horiz, F16(HORIZ_MIN), F16(HORIZ_MAX));
|
pPlayer->q16horiz = fix16_clamp(pPlayer->q16horiz, F16(HORIZ_MIN), F16(HORIZ_MAX));
|
||||||
}
|
}
|
||||||
|
@ -5747,7 +5747,7 @@ RECHECK:
|
||||||
|
|
||||||
if (pPlayer->hard_landing > 0)
|
if (pPlayer->hard_landing > 0)
|
||||||
{
|
{
|
||||||
thisPlayer.horizSkew = fix16_from_int(-(pPlayer->hard_landing << 4));
|
thisPlayer.horizSkew = -(pPlayer->hard_landing << 4);
|
||||||
pPlayer->hard_landing--;
|
pPlayer->hard_landing--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5776,7 +5776,7 @@ RECHECK:
|
||||||
#ifndef EDUKE32_STANDALONE
|
#ifndef EDUKE32_STANDALONE
|
||||||
if (!FURY && pPlayer->knee_incs > 0)
|
if (!FURY && pPlayer->knee_incs > 0)
|
||||||
{
|
{
|
||||||
thisPlayer.horizSkew = F16(-48);
|
thisPlayer.horizSkew = -48;
|
||||||
thisPlayer.horizRecenter = true;
|
thisPlayer.horizRecenter = true;
|
||||||
pPlayer->return_to_center = 9;
|
pPlayer->return_to_center = 9;
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ typedef struct
|
||||||
|
|
||||||
bool horizRecenter;
|
bool horizRecenter;
|
||||||
float horizAngleAdjust;
|
float horizAngleAdjust;
|
||||||
fix16_t horizSkew;
|
int8_t horizSkew;
|
||||||
|
|
||||||
int32_t netsynctime;
|
int32_t netsynctime;
|
||||||
int16_t ping, filler;
|
int16_t ping, filler;
|
||||||
|
|
Loading…
Reference in a new issue