And a bit more optimization...

This commit is contained in:
MajorCooke 2016-06-18 07:49:15 -05:00 committed by Christoph Oelckers
parent 2b91db7b3a
commit 30880aab79

View file

@ -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)
{