mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 07:00:52 +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
|
// Strife's player can't run when its health is below 10
|
||||||
if (health <= RunHealth)
|
if (health <= RunHealth)
|
||||||
{
|
{
|
||||||
forward = clamp(forward, -gameinfo.normforwardmove[0], gameinfo.normforwardmove[0]);
|
forward = clamp(forward, -gameinfo.normforwardmove[0]*256, gameinfo.normforwardmove[0]*256);
|
||||||
side = clamp(side, -gameinfo.normsidemove[0], gameinfo.normsidemove[0]);
|
side = clamp(side, -gameinfo.normsidemove[0]*256, gameinfo.normsidemove[0]*256);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [GRB]
|
// [GRB]
|
||||||
|
|
Loading…
Reference in a new issue