This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).
Revisión | f9fa0270195b495b44b556d6920fb420e780cd37 (tree) |
---|---|
Tiempo | 2021-10-04 01:38:58 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
This check should be added to DLevelScript::ThingCount too.
@@ -3827,7 +3827,9 @@ | ||
3827 | 3827 | while ( (actor = iterator.Next ()) ) |
3828 | 3828 | { |
3829 | 3829 | if (actor->health > 0 && |
3830 | - (kind == NULL || actor->IsA (kind))) | |
3830 | + (kind == NULL || actor->IsA (kind)) && | |
3831 | + // [AK] Don't count actors hidden by HideOrDestroyIfSafe(). | |
3832 | + ((actor->STFlags & STFL_HIDDEN_INSTEAD_OF_DESTROYED) == false)) | |
3831 | 3833 | { |
3832 | 3834 | if (actor->Sector->tag == tag || tag == -1) |
3833 | 3835 | { |