From c20a7f53c9810d93b770aa8ed5de98633ddb2c35 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 27 Aug 2020 11:57:25 +0300 Subject: [PATCH] - 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 --- wadsrc/static/zscript/actors/shared/camera.zs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/shared/camera.zs b/wadsrc/static/zscript/actors/shared/camera.zs index d9e579284b..d7826c0517 100644 --- a/wadsrc/static/zscript/actors/shared/camera.zs +++ b/wadsrc/static/zscript/actors/shared/camera.zs @@ -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.