Low friction and Disable Jump

We will look into disabling jump a better way later
This commit is contained in:
Sryder 2017-03-05 22:08:13 +00:00
parent ba9ca32c54
commit 92f33c1d60
2 changed files with 3 additions and 1 deletions

View file

@ -394,7 +394,7 @@ typedef struct
// SRB2kart - TODO: To satisfy Iceman's craving, I'll leave this here: 62914 : Is the number he wants friction to be.
// Friction defines.
#define ORIG_FRICTION (0xE8 << (FRACBITS-8)) ///< Original value.
#define ORIG_FRICTION (62914) ///< Original value.
#define ORIG_FRICTION_FACTOR (8 << (FRACBITS-8)) ///< Original value.
void T_Friction(friction_t *f);

View file

@ -3584,6 +3584,8 @@ void P_DoJump(player_t *player, boolean soundandstate)
fixed_t factor;
const fixed_t dist6 = FixedMul(FixedDiv(player->speed, player->mo->scale), player->actionspd)/20;
return;
if (player->pflags & PF_JUMPSTASIS)
return;