- fixed many compilation errors with GCC and Clang

This commit is contained in:
alexey.lysiuk 2019-01-07 10:14:52 +02:00 committed by Christoph Oelckers
commit 11958b713e
25 changed files with 110 additions and 110 deletions

View file

@ -150,7 +150,7 @@ void VerifyTargetChain(AActor *self, bool preciseMissileCheck)
{
// if any of the actors from self to (inclusive) origin match the next actor,
// self has reached/created a loop
self->target = NULL;
self->target = nullptr;
return;
}
if (compare == origin) break; // when "compare" = origin, we know that the next actor is, and should be "next"
@ -176,7 +176,7 @@ void VerifyMasterChain(AActor *self)
{
if (compare == next)
{
self->master = NULL;
self->master = nullptr;
return;
}
if (compare == origin) break;
@ -215,4 +215,4 @@ void ASSIGN_AAPTR(AActor *toActor, int toSlot, AActor *ptr, int flags)
toActor->tracer = ptr;
break;
}
}
}