mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +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)
|
||||
{
|
||||
FName spec = mo->Species;
|
||||
return (!(species) || !(stricmp(species, "")) || (species && ((exclude) ? (spec != species) : (spec == species))));
|
||||
return (!(species) || mo->Species == NAME_None || (species && ((exclude) ? (mo->Species != species) : (mo->Species == species))));
|
||||
}
|
||||
|
||||
static bool DoCheckFilter(AActor *mo, const PClass *filter, bool exclude)
|
||||
|
|
Loading…
Reference in a new issue