mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'master' into portal
This commit is contained in:
commit
022ab95817
1 changed files with 11 additions and 17 deletions
|
@ -3269,15 +3269,15 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_JumpIf)
|
||||||
// A_CountdownArg
|
// A_CountdownArg
|
||||||
//
|
//
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
||||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg)
|
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg)
|
||||||
{
|
{
|
||||||
PARAM_ACTION_PROLOGUE;
|
PARAM_ACTION_PROLOGUE;
|
||||||
PARAM_INT(argnum);
|
PARAM_INT(cnt);
|
||||||
PARAM_STATE_OPT(state) { state = self->FindState(NAME_Death); }
|
PARAM_STATE_OPT(state) { state = self->FindState(NAME_Death); }
|
||||||
|
|
||||||
if (argnum >= 0 && argnum < (int)countof(self->args))
|
if (cnt<0 || cnt >= 5) return;
|
||||||
{
|
if (!self->args[cnt]--)
|
||||||
if (!self->args[argnum]--)
|
|
||||||
{
|
{
|
||||||
if (self->flags&MF_MISSILE)
|
if (self->flags&MF_MISSILE)
|
||||||
{
|
{
|
||||||
|
@ -3288,16 +3288,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CountdownArg)
|
||||||
P_DamageMobj(self, NULL, NULL, self->health, NAME_None, DMG_FORCED);
|
P_DamageMobj(self, NULL, NULL, self->health, NAME_None, DMG_FORCED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
self->SetState(self->FindState(NAME_Death));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
self->SetState(state);
|
self->SetState(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
Loading…
Reference in a new issue