Fixed bounce velocity reduction

This commit is contained in:
smallmodel 2024-02-11 23:31:26 +01:00
parent ca7cacfdcc
commit bf700186d0
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -1329,8 +1329,8 @@ void G_Physics_Toss
if (ent->movetype == MOVETYPE_BOUNCE) {
// Reduce the velocity when bouncing
ent->velocity[0] -= level.frametime * 1.75f;
ent->velocity[1] -= level.frametime * 1.75f;
ent->velocity[0] -= ent->velocity[0] * level.frametime * 1.75f;
ent->velocity[1] -= ent->velocity[1] * level.frametime * 1.75f;
}
// stop if on ground