Fixed Bug #438896: Platform destroyed in fog of war
Fixed Bug #676724: Buildings Not Updated Until seen in viewport
This commit is contained in:
parent
fee9ec2f6e
commit
b51d0f0bbb
3 changed files with 6 additions and 1 deletions
|
@ -256,6 +256,7 @@ global void HandleActionBuild(Unit* unit)
|
|||
unit->Y=y;
|
||||
unit->Orders[0].Action=UnitActionStill;
|
||||
unit->SubAction=0;
|
||||
UnitMarkSeen(unit);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -397,6 +398,7 @@ global void HandleActionBuilded(Unit* unit)
|
|||
} else {
|
||||
unit->Frame=i;
|
||||
}
|
||||
UnitMarkSeen(unit);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ global void HandleActionDie(Unit* unit)
|
|||
DebugLevel3("Die complete %d\n" _C_ UnitNumber(unit));
|
||||
|
||||
if( !unit->Type->CorpseType ) {
|
||||
UnitMarkSeen(unit);
|
||||
ReleaseUnit(unit);
|
||||
return;
|
||||
}
|
||||
|
@ -96,6 +97,7 @@ global void HandleActionDie(Unit* unit)
|
|||
// FIXME: perhaps later or never is better
|
||||
//ChangeUnitOwner(unit,unit->Player,&Players[PlayerNumNeutral]);
|
||||
}
|
||||
UnitMarkSeen(unit);
|
||||
}
|
||||
|
||||
//@}
|
||||
|
|
|
@ -141,7 +141,7 @@ local int MoveToGoldMine(Unit* unit)
|
|||
destu->Frame=1; // FIXME: should be configurable
|
||||
CheckUnitToBeDrawn(destu);
|
||||
}
|
||||
|
||||
UnitMarkSeen(destu);
|
||||
RemoveUnit(unit,destu);
|
||||
|
||||
#if 0
|
||||
|
@ -225,6 +225,7 @@ local int MineInGoldmine(Unit* unit)
|
|||
mine->Frame=0;
|
||||
CheckUnitToBeDrawn(mine);
|
||||
}
|
||||
UnitMarkSeen(mine);
|
||||
if( IsOnlySelected(mine) ) {
|
||||
MustRedraw|=RedrawInfoPanel;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue