mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- fixed run health clamping.
This didn't scale the move factors properly.
This commit is contained in:
parent
6ff6a6af00
commit
914818cb88
1 changed files with 2 additions and 2 deletions
|
@ -1169,8 +1169,8 @@ class PlayerPawn : Actor
|
|||
// Strife's player can't run when its health is below 10
|
||||
if (health <= RunHealth)
|
||||
{
|
||||
forward = clamp(forward, -gameinfo.normforwardmove[0], gameinfo.normforwardmove[0]);
|
||||
side = clamp(side, -gameinfo.normsidemove[0], gameinfo.normsidemove[0]);
|
||||
forward = clamp(forward, -gameinfo.normforwardmove[0]*256, gameinfo.normforwardmove[0]*256);
|
||||
side = clamp(side, -gameinfo.normsidemove[0]*256, gameinfo.normsidemove[0]*256);
|
||||
}
|
||||
|
||||
// [GRB]
|
||||
|
|
Loading…
Reference in a new issue