Use decay-rate for trained units.

This commit is contained in:
johns 2002-11-28 21:01:03 +00:00
parent 2e04be70a0
commit 4c576de23c

View file

@ -113,6 +113,9 @@ global void HandleActionTrain(Unit* unit)
type=unit->Type;
DropOutOnSide(nunit,LookingW,type->TileWidth,type->TileHeight);
// set life span
nunit->TTL=GameCycle+type->DecayRate*6*CYCLES_PER_SECOND;
// FIXME: GameMessage
if( player==ThisPlayer ) {
SetMessageEvent( nunit->X, nunit->Y, "New %s ready",