A FIXME removed.
This commit is contained in:
parent
8a7c9f11a0
commit
4f272b7a2b
1 changed files with 4 additions and 3 deletions
|
@ -136,10 +136,11 @@ global void HandleActionDemolish(Unit* unit)
|
|||
// Effect of the explosion on units.
|
||||
//
|
||||
n=SelectUnits(x-2,y-2, x+2, y+2,table);
|
||||
// FIXME: Don't hit flying units!
|
||||
for( i=0; i<n; ++i ) {
|
||||
if ( table[i]->Type->LandUnit )
|
||||
HitUnit(table[i],DEMOLISH_DAMAGE);
|
||||
if ( table[i]->Type->LandUnit ) {
|
||||
// Don't hit flying units!
|
||||
HitUnit(table[i],DEMOLISH_DAMAGE);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue