Target marker fixes.

This commit is contained in:
Steve 2018-02-16 08:41:02 +00:00
parent 6f69f9a56a
commit 427848db9a
1 changed files with 7 additions and 11 deletions

View File

@ -229,12 +229,12 @@ void doEntities(void)
self->die(); self->die();
} }
} }
}
if (!(self->flags & (EF_TELEPORTING | EF_GONE))) if (!(self->flags & (EF_TELEPORTING | EF_GONE)))
{ {
addToQuadtree(self, &world.quadtree); addToQuadtree(self, &world.quadtree);
} }
}
prev = self; prev = self;
} }
@ -287,18 +287,14 @@ void drawEntities(int plane)
if (self->type == ET_ENEMY && ((Unit*)self)->carriedItem != NULL) if (self->type == ET_ENEMY && ((Unit*)self)->carriedItem != NULL)
{ {
y -= (targetMarker[0].y + 5); blitRect(atlasTexture->texture, x, y - (targetMarker[0].y + 5), &targetMarker[0].sprite->frames[0]->rect, 0);
blitRect(atlasTexture->texture, x, y, &targetMarker[0].sprite->frames[0]->rect, 0);
} }
if (self->isMissionTarget) if (self->isMissionTarget)
{ {
t = getMarkerType(); t = getMarkerType();
y -= (targetMarker[t].y + 5); blitRect(atlasTexture->texture, x, y - (targetMarker[t].y + 5), &targetMarker[t].sprite->frames[t]->rect, 0);
blitRect(atlasTexture->texture, x, y, &targetMarker[t].sprite->frames[t]->rect, 0);
} }
} }
} }