From fb178f9c65edb162d6e77194cb08ca36bf8289e3 Mon Sep 17 00:00:00 2001 From: titiger Date: Fri, 16 Apr 2021 01:56:05 +0200 Subject: [PATCH] fix for spawn unit when projectile impacts --- source/glest_game/world/unit_updater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index 7931ab2d..88fa1dd3 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -3442,8 +3442,8 @@ void ParticleDamager::update(ParticleSystem *particleSystem) { //check for spawnattack if(projectileType->getSpawnUnit()!="" && projectileType->getSpawnUnitcount()>0 ){ - unitUpdater->spawnAttack(attacker, projectileType->getSpawnUnit(), 100, - 100, 100, projectileType->getSpawnUnitcount(), + unitUpdater->spawnAttack(attacker, projectileType->getSpawnUnit(), projectileType->getSpawnUnitcount(), + 100, 100, 100, projectileType->getSpawnUnitAtTarget(), targetPos); }