mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix deleted line for uphill/downhill multiplier
This commit is contained in:
parent
431a99db78
commit
383bf4b604
1 changed files with 4 additions and 2 deletions
|
|
@ -1146,7 +1146,6 @@ void P_ButteredSlope(mobj_t *mo)
|
|||
|
||||
thrust = FINESINE(mo->standingslope->zangle>>ANGLETOFINESHIFT) * 5 / 4 * (mo->eflags & MFE_VERTICALFLIP ? 1 : -1);
|
||||
|
||||
// Make uphill easier to climb, and downhill even faster.
|
||||
if (mo->momx || mo->momy)
|
||||
{
|
||||
fixed_t mult = FRACUNIT;
|
||||
|
|
@ -1157,7 +1156,10 @@ void P_ButteredSlope(mobj_t *mo)
|
|||
angle ^= ANGLE_180;
|
||||
}
|
||||
|
||||
// Make downhills goofier for Hard, and climbing slopes easier for Easy.
|
||||
// Make uphill easier to climb, and downhill even faster.
|
||||
mult = FINECOSINE(angle >> ANGLETOFINESHIFT);
|
||||
|
||||
// Make relative to game speed
|
||||
mult = FixedMul(mult, gameSpeed);
|
||||
|
||||
mult = FRACUNIT + (FRACUNIT + mult)*4/3;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue