Added ifdef DYNAMIC_LOAD
This commit is contained in:
parent
83152f3da0
commit
a6f5494eed
1 changed files with 2 additions and 0 deletions
|
@ -619,9 +619,11 @@ static int MissileVisibleInViewport(const Viewport* vp, const Missile* missile)
|
|||
*/
|
||||
void DrawMissile(MissileType* mtype, int frame, int x, int y)
|
||||
{
|
||||
#ifdef DYNAMIC_LOAD
|
||||
if (!mtype->Sprite) {
|
||||
LoadMissileSprite(mtype);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (mtype->Flip) {
|
||||
if (frame < 0) {
|
||||
|
|
Loading…
Reference in a new issue