Take in the targeter layers if someone disables the safety and uses 0 for start and stop.

This commit is contained in:
MajorCooke 2016-06-19 12:43:05 -05:00 committed by Christoph Oelckers
parent ecfa7415b3
commit e02ed3a6f7

View file

@ -1163,8 +1163,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ClearOverlays)
player_t *player = self->player;
if (!start && !stop)
{
start = -INT_MAX;
stop = PSP_TARGETCENTER - 1;
start = INT_MIN;
stop = safety ? PSP_TARGETCENTER - 1 : INT_MAX;
}
int count = 0;