mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +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
|
@ -69,9 +69,12 @@ class AimingCamera : SecurityCamera
|
|||
ActorIterator it = Level.CreateActorIterator(args[3]);
|
||||
tracer = it.Next ();
|
||||
if (tracer == NULL)
|
||||
{
|
||||
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.
|
||||
args[3] = 0;
|
||||
|
|
Loading…
Reference in a new issue