mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +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
3ea75a7863
commit
cebca2d93d
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