mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- fixed chance default for ACS's DropItem.
This commit is contained in:
parent
072b66fb9f
commit
1b79f7d956
1 changed files with 1 additions and 1 deletions
|
@ -5241,7 +5241,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
||||||
{
|
{
|
||||||
const char *type = FBehavior::StaticLookupString(args[1]);
|
const char *type = FBehavior::StaticLookupString(args[1]);
|
||||||
int amount = argCount >= 3? args[2] : -1;
|
int amount = argCount >= 3? args[2] : -1;
|
||||||
int chance = argCount >= 4? args[3] : -1;
|
int chance = argCount >= 4? args[3] : 256;
|
||||||
const PClass *cls = PClass::FindClass(type);
|
const PClass *cls = PClass::FindClass(type);
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
if (cls != NULL)
|
if (cls != NULL)
|
||||||
|
|
Loading…
Reference in a new issue