From 5d772d4b6fa7e5ef6cf85b817821b6388d3dc9f5 Mon Sep 17 00:00:00 2001 From: Buginator Date: Sat, 13 Feb 2010 02:31:09 +0000 Subject: [PATCH] Only drop artifacts on a fully built factory fixes ticket:1574 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9786 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/multigifts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multigifts.c b/src/multigifts.c index e8f578c59..1f9ff2de3 100644 --- a/src/multigifts.c +++ b/src/multigifts.c @@ -523,8 +523,8 @@ void technologyGiveAway(const STRUCTURE *pS) FEATURE *pF = NULL; FEATURE_TYPE type = FEAT_GEN_ARTE; - // If a factory which is our responsibility got destroyed - if (pS->pStructureType->type == REF_FACTORY + // If a fully built factory which is our responsibility got destroyed + if (pS->pStructureType->type == REF_FACTORY && pS->status == SS_BUILT && myResponsibility(pS->player)) { x = map_coord(pS->pos.x);