Allow psprite layers to be manipulated directly from the player's own body

This commit is contained in:
Leonard2 2016-06-03 19:18:58 +02:00
commit afa708c138
5 changed files with 20 additions and 19 deletions

View file

@ -5706,7 +5706,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetTics)
PARAM_ACTION_PROLOGUE;
PARAM_INT(tics_to_set);
if (stateowner != self && self->player != nullptr && stateowner->IsKindOf(RUNTIME_CLASS(AInventory)))
if (self->player != nullptr)
{ // Need to check psp states for a match, then. Blah.
DPSprite *pspr = self->player->psprites;
while (pspr)