mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Corrected the species checking.
This commit is contained in:
parent
d94be8f57b
commit
f2551dceda
1 changed files with 1 additions and 2 deletions
|
@ -5034,8 +5034,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetSpeed)
|
||||||
|
|
||||||
static bool DoCheckSpecies(AActor *mo, FName species, bool exclude)
|
static bool DoCheckSpecies(AActor *mo, FName species, bool exclude)
|
||||||
{
|
{
|
||||||
FName spec = mo->Species;
|
return (!(species) || mo->Species == NAME_None || (species && ((exclude) ? (mo->Species != species) : (mo->Species == species))));
|
||||||
return (!(species) || !(stricmp(species, "")) || (species && ((exclude) ? (spec != species) : (spec == species))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool DoCheckFilter(AActor *mo, const PClass *filter, bool exclude)
|
static bool DoCheckFilter(AActor *mo, const PClass *filter, bool exclude)
|
||||||
|
|
Loading…
Reference in a new issue