Browse Source

Change to adapt to AcediaCore's iterator changes

feature_improvement
Anton Tarasenko 2 years ago
parent
commit
ee77a99dc5
  1. 4
      sources/Commands/ACommandSpawn.uc

4
sources/Commands/ACommandSpawn.uc

@ -100,8 +100,8 @@ private final function SpawnInInstigatorSight(
local Vector spawnLocation;
local TracingIterator iter;
iter = _server.kf.world.TracePlayerSight(instigator).LeaveOnlyVisible();
if (iter.HasFinished())
iter = _server.kf.world.TracePlayerSight(instigator);
if (iter.LeaveOnlyVisible().HasFinished())
{
announcer.AnnounceFailedTrace();
return;

Loading…
Cancel
Save