Skip to content

Commit

Permalink
Only drop artifacts on a fully built factory
Browse files Browse the repository at this point in the history
fixes ticket:1574

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9786 4a71c877-e1ca-e34f-864e-861f7616d084
  • Loading branch information
buginator authored and Git SVN Gateway committed Feb 13, 2010
1 parent c2fc183 commit 5d772d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/multigifts.c
Expand Up @@ -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);
Expand Down

0 comments on commit 5d772d4

Please sign in to comment.