forked from Mirrors/openclonk
Remove unused Get-Effect-by-number function
parent
b533c8b8fc
commit
682319cc2b
|
@ -238,24 +238,6 @@ C4Effect *C4Effect::Get(const char *szName, int32_t iIndex, int32_t iMaxPriority
|
|||
return NULL;
|
||||
}
|
||||
|
||||
C4Effect *C4Effect::Get(int32_t iNumber, bool fIncludeDead, int32_t iMaxPriority)
|
||||
{
|
||||
// check all effects
|
||||
C4Effect *pEff = this;
|
||||
do
|
||||
if (pEff->iNumber == iNumber)
|
||||
{
|
||||
if (!pEff->IsDead() || fIncludeDead)
|
||||
if (!iMaxPriority || pEff->iPriority <= iMaxPriority)
|
||||
return pEff;
|
||||
// effect found but denied
|
||||
return NULL;
|
||||
}
|
||||
while ((pEff=pEff->pNext));
|
||||
// nothing found
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int32_t C4Effect::GetCount(const char *szMask, int32_t iMaxPriority)
|
||||
{
|
||||
// count all matching effects
|
||||
|
|
|
@ -109,7 +109,6 @@ public:
|
|||
bool IsInactiveAndNotDead() { return iPriority<0; } // as the name says
|
||||
|
||||
C4Effect *Get(const char *szName, int32_t iIndex=0, int32_t iMaxPriority=0); // get effect by name
|
||||
C4Effect *Get(int32_t iNumber, bool fIncludeDead, int32_t iMaxPriority=0); // get effect by number
|
||||
int32_t GetCount(const char *szMask, int32_t iMaxPriority=0); // count effects that match the mask
|
||||
C4Effect *Check(C4Object *pForObj, const char *szCheckEffect, int32_t iPrio, int32_t iTimer, const C4Value &rVal1, const C4Value &rVal2, const C4Value &rVal3, const C4Value &rVal4); // do some effect callbacks
|
||||
C4AulScript *GetCallbackScript(); // get script context for effect callbacks
|
||||
|
|
Loading…
Reference in New Issue