SW: Since sprite->filler is now fogpal, modify the CTF code that uses it to use a new variable in SW's USER struct instead.

git-svn-id: https://svn.eduke32.com/eduke32@5209 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2015-05-19 22:04:06 +00:00
parent 6e8e49d17f
commit 8d78f25bc5
2 changed files with 8 additions and 6 deletions

View file

@ -1532,6 +1532,8 @@ typedef struct
short FlagOwner; // The spritenum of the original flag
short Vis; // Shading upgrade, for shooting, etc...
SWBOOL DidAlert; // Has actor done his alert noise before?
uint8_t filler;
} USER,*USERp;
// sprite->extra flags

View file

@ -2259,10 +2259,10 @@ DoCarryFlag(int16_t Weapon)
DoFlagScore(ap->pal);
if (SP_TAG5(fp) > 0)
{
fp->filler++;
if (fp->filler >= SP_TAG5(fp))
fu->filler++;
if (fu->filler >= SP_TAG5(fp))
{
fp->filler = 0;
fu->filler = 0;
DoMatchEverything(NULL, SP_TAG6(fp), ON);
}
}
@ -2400,10 +2400,10 @@ DoCarryFlagNoDet(int16_t Weapon)
DoFlagScore(ap->pal);
if (SP_TAG5(fp) > 0)
{
fp->filler++;
if (fp->filler >= SP_TAG5(fp))
fu->filler++;
if (fu->filler >= SP_TAG5(fp))
{
fp->filler = 0;
fu->filler = 0;
DoMatchEverything(NULL, SP_TAG6(fp), ON);
}
}