- do not report missing camera target if its TID is zero

This handles the case with setting TID of thing to follow after camera spawning, e.g. via ACS

https://forum.zdoom.org/viewtopic.php?t=69690
This commit is contained in:
alexey.lysiuk 2020-08-27 11:57:25 +03:00
parent fc1f14b2eb
commit c20a7f53c9

View file

@ -70,7 +70,10 @@ class AimingCamera : SecurityCamera
tracer = it.Next ();
if (tracer == NULL)
{
console.Printf ("AimingCamera %d: Can't find TID %d\n", tid, args[3]);
if (args[3] != 0)
{
console.Printf ("AimingCamera %d: Can't find TID %d\n", tid, args[3]);
}
}
else
{ // Don't try for a new target upon losing this one.