From 9c52d2d07f767cc125aaf28b7a312aed4ad38d6c Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Wed, 10 Jun 2009 18:09:04 +0000 Subject: [PATCH] Do not add effects to the wrong map in off-world missions. Fix bug introduced in r7097. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7708 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/structure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structure.c b/src/structure.c index 8cf384cf0..2b5536f17 100644 --- a/src/structure.c +++ b/src/structure.c @@ -3754,7 +3754,7 @@ void structureUpdate(STRUCTURE *psBuilding, bool mission) } /* Only add smoke if they're visible and they can 'burn' */ - if(psBuilding->visible[selectedPlayer] && canSmoke(psBuilding)) + if (!mission && psBuilding->visible[selectedPlayer] && canSmoke(psBuilding)) { const float damage = getStructureDamage(psBuilding); @@ -3844,7 +3844,7 @@ void structureUpdate(STRUCTURE *psBuilding, bool mission) aDefaultRepair[psBuilding->player])->time); //add the blue flashing effect for multiPlayer - if(bMultiPlayer && ONEINTEN) + if(bMultiPlayer && ONEINTEN && !mission) { Vector3i position; Vector3f *point;