- made SP_TAG1 a function with an actor parameter.

This commit is contained in:
Christoph Oelckers 2021-12-24 13:42:50 +01:00
parent 40050f5008
commit 5be1bc4de7
9 changed files with 35 additions and 34 deletions

View file

@ -155,7 +155,7 @@ void DoRotatorMatch(PLAYERp pp, short match, bool manual)
{
fsp = &actor->s();
if (SP_TAG1(fsp) == SECT_ROTATOR && SP_TAG2(fsp) == match)
if (SP_TAG1(actor) == SECT_ROTATOR && SP_TAG2(fsp) == match)
{
fu = actor->u();
@ -212,7 +212,7 @@ bool TestRotatorMatchActive(short match)
{
fsp = &actor->s();
if (SP_TAG1(fsp) == SECT_ROTATOR && SP_TAG2(fsp) == match)
if (SP_TAG1(actor) == SECT_ROTATOR && SP_TAG2(fsp) == match)
{
fu = actor->u();