Added #ifdef DYNAMIC_LOAD

This commit is contained in:
jsalmon3 2004-01-31 18:35:57 +00:00
parent 5db7772c6c
commit e38cff2cf8

View file

@ -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;