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
master
Per Inge Mathisen 2009-06-10 18:09:04 +00:00 committed by Git SVN Gateway
parent 4e0fc39ebb
commit 9c52d2d07f
1 changed files with 2 additions and 2 deletions

View File

@ -3754,7 +3754,7 @@ void structureUpdate(STRUCTURE *psBuilding, bool mission)
} }
/* Only add smoke if they're visible and they can 'burn' */ /* 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); const float damage = getStructureDamage(psBuilding);
@ -3844,7 +3844,7 @@ void structureUpdate(STRUCTURE *psBuilding, bool mission)
aDefaultRepair[psBuilding->player])->time); aDefaultRepair[psBuilding->player])->time);
//add the blue flashing effect for multiPlayer //add the blue flashing effect for multiPlayer
if(bMultiPlayer && ONEINTEN) if(bMultiPlayer && ONEINTEN && !mission)
{ {
Vector3i position; Vector3i position;
Vector3f *point; Vector3f *point;