Permalink
Browse files

-Fix (#239): unveil fog around captured structures

  • Loading branch information...
1 parent 57622a3 commit d176e091e339cc5adc91a3afee42f603fd5b34a1 @wangds wangds committed Sep 14, 2013
Showing with 4 additions and 0 deletions.
  1. +1 −0 enhancement.txt
  2. +3 −0 src/unit.c
View
@@ -49,6 +49,7 @@ Structure
structure.
- The range of a turret was calculated from the top left corner instead of the
center of the structure.
+- Fog was not removed from around captured structures.
Unit
View
@@ -2259,6 +2259,9 @@ void Unit_EnterStructure(Unit *unit, Structure *s)
/* ENHANCEMENT -- When taking over a structure, untarget it. Else you will destroy the structure you just have taken over very easily */
if (g_dune2_enhanced) Structure_UntargetMe(s);
+
+ /* ENHANCEMENT -- When taking over a structure, unveil the fog around the structure. */
+ if (g_dune2_enhanced) Structure_RemoveFog(s);
} else {
Structure_Damage(s, min(unit->o.hitpoints * 2, s->o.hitpoints / 2), 1);
}

0 comments on commit d176e09

Please sign in to comment.