mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +00:00
And a bit more optimization...
This commit is contained in:
parent
2b91db7b3a
commit
30880aab79
1 changed files with 3 additions and 1 deletions
|
@ -1174,8 +1174,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ClearOverlays)
|
||||||
int id = pspr->GetID();
|
int id = pspr->GetID();
|
||||||
|
|
||||||
//Do not wipe out layer 0. Ever.
|
//Do not wipe out layer 0. Ever.
|
||||||
if (!id || id > stop || id < start)
|
if (!id || id < start)
|
||||||
continue;
|
continue;
|
||||||
|
if (id > stop)
|
||||||
|
break;
|
||||||
|
|
||||||
if (safety)
|
if (safety)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue