Fixed Dead Building Cache to save and load correctly
This commit is contained in:
parent
7f85b9ac37
commit
2f8697b774
1 changed files with 9 additions and 0 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue