mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Restored A_SpawnItemEx's "chance" to "failchance" to prevent mod breakage from named parameters.
This commit is contained in:
parent
117537339d
commit
e9df56198c
1 changed files with 2 additions and 2 deletions
|
@ -400,13 +400,13 @@ extend class Actor
|
||||||
// Enhanced spawning function
|
// Enhanced spawning function
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
bool, Actor A_SpawnItemEx(class<Actor> missile, double xofs = 0, double yofs = 0, double zofs = 0, double xvel = 0, double yvel = 0, double zvel = 0, double angle = 0, int flags = 0, int chance = 0, int tid=0)
|
bool, Actor A_SpawnItemEx(class<Actor> missile, double xofs = 0, double yofs = 0, double zofs = 0, double xvel = 0, double yvel = 0, double zvel = 0, double angle = 0, int flags = 0, int failchance = 0, int tid=0)
|
||||||
{
|
{
|
||||||
if (missile == NULL)
|
if (missile == NULL)
|
||||||
{
|
{
|
||||||
return false, null;
|
return false, null;
|
||||||
}
|
}
|
||||||
if (chance > 0 && random[spawnitemex]() < chance)
|
if (failchance > 0 && random[spawnitemex]() < failchance)
|
||||||
{
|
{
|
||||||
return true, null;
|
return true, null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue