mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
fc1f14b2eb
commit
c20a7f53c9
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue