Fixed decay-rate for trained units.
This commit is contained in:
parent
4c576de23c
commit
71cdb547f6
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ global void HandleActionTrain(Unit* unit)
|
|||
DropOutOnSide(nunit,LookingW,type->TileWidth,type->TileHeight);
|
||||
|
||||
// set life span
|
||||
nunit->TTL=GameCycle+type->DecayRate*6*CYCLES_PER_SECOND;
|
||||
if( type->DecayRate ) {
|
||||
nunit->TTL=GameCycle+type->DecayRate*6*CYCLES_PER_SECOND;
|
||||
}
|
||||
|
||||
// FIXME: GameMessage
|
||||
if( player==ThisPlayer ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue