mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-06 19:01:04 +03:00
Fixed bounce velocity reduction
This commit is contained in:
parent
ca7cacfdcc
commit
bf700186d0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue