allow players to run down ramps normally when no_pogo_stick bit 1 is set

This commit is contained in:
Bill Currie 2002-09-14 03:34:33 +00:00
parent 013743931d
commit d9eff16941

View file

@ -827,15 +827,15 @@ PlayerMove (void)
// set onground, watertype, and waterlevel
PM_CategorizePosition ();
if (no_pogo_stick->int_val & 2) {
if (onground != -1 && pmove.oldonground == -1) { // just landed
if (pmove.cmd.buttons & BUTTON_JUMP
&& onground != -1 && pmove.oldonground == -1 // just landed
&& no_pogo_stick->int_val & 2) {
float save = movevars.friction;
pmove.waterjumptime = 0;
movevars.friction *= 3;
PM_Friction ();
movevars.friction = save;
}
}
pmove.oldonground = onground;
if (waterlevel == 2)