Fixed Dead Building Cache to save and load correctly

This commit is contained in:
mr-russ 2003-03-01 04:32:17 +00:00
parent 7f85b9ac37
commit 2f8697b774

View file

@ -744,9 +744,18 @@ local SCM CclUnit(SCM list)
unit->Player->UnitTypesCount[type->Type]--;
}
// FIXME: Does not load CorpseList Properly
#if defined(NEW_FOW) && defined(BUILDING_DESTROYED)
if( unit->Type->Building &&
( unit->Orders[0].Action==UnitActionDie || unit->Destroyed )) {
DeadBuildingCacheInsert(unit);
} else if( unit->Orders[0].Action==UnitActionDie ) {
CorpseCacheInsert(unit);
}
#else
if( unit->Orders[0].Action==UnitActionDie ) {
CorpseCacheInsert(unit);
}
#endif
#ifdef NEW_FOW
if( unit->Orders[0].Action==UnitActionDie &&
unit->Type->CorpseScript ) {