Added #ifdef DYNAMIC_LOAD
This commit is contained in:
parent
5db7772c6c
commit
e38cff2cf8
1 changed files with 2 additions and 0 deletions
|
@ -2853,9 +2853,11 @@ global void LetUnitDie(Unit* unit)
|
|||
type->TileHeight != type->CorpseType->TileHeight);
|
||||
type = unit->Type = type->CorpseType;
|
||||
|
||||
#ifdef DYNAMIC_LOAD
|
||||
if (!type->Sprite) {
|
||||
LoadUnitTypeSprite(type);
|
||||
}
|
||||
#endif
|
||||
unit->IX = (type->Width - VideoGraphicWidth(type->Sprite)) / 2;
|
||||
unit->IY = (type->Height - VideoGraphicHeight(type->Sprite)) / 2;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue