mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +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