Move player friction reset after movement code

This commit is contained in:
Alug committed 2024-03-01 20:23:10 +01:00
1 parent b92d3dd7ae
commit 332369a910
2 files changed
+1 -2

No files matched your search

-2
View File
@@ -1120,8 +1120,6 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
mo->momx = FixedMul(mo->momx, mo->friction);
mo->momy = FixedMul(mo->momy, mo->friction);
}
mo->friction = ORIG_FRICTION;
}
}
else
+1
View File
@@ -2120,6 +2120,7 @@ static void P_3dMovement(player_t *player)
player->mo->momy = tempmomy + player->cmomy;
}
}
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
}
//