mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-27 22:42:29 +00:00
- fixed: The numcommands value in A_KoraxCommand needs to be decremented by one because the max parameter of the random function is inclusive.
This commit is contained in:
parent
4cfc650f5b
commit
b4aacb7be5
1 changed files with 2 additions and 2 deletions
|
@ -363,11 +363,11 @@ class Korax : Actor
|
||||||
|
|
||||||
if (health <= (SpawnHealth() >> 1))
|
if (health <= (SpawnHealth() >> 1))
|
||||||
{
|
{
|
||||||
numcommands = 5;
|
numcommands = 4;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
numcommands = 4;
|
numcommands = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
ACS_Execute(250 + (random[KoraxCommand](0, numcommands)), 0);
|
ACS_Execute(250 + (random[KoraxCommand](0, numcommands)), 0);
|
||||||
|
|
Loading…
Reference in a new issue