mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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();
|
||||
|
||||
//Do not wipe out layer 0. Ever.
|
||||
if (!id || id > stop || id < start)
|
||||
if (!id || id < start)
|
||||
continue;
|
||||
if (id > stop)
|
||||
break;
|
||||
|
||||
if (safety)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue