Extraction point is registered with battle.

This commit is contained in:
Steve 2015-11-11 21:55:04 +00:00
parent 70d47a796b
commit ec6e57194e
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,6 @@ Entity *spawnExtractionPoint(void)
extractionPoint->type = ET_EXTRACTION_POINT;
extractionPoint->health = extractionPoint->maxHealth = FPS;
extractionPoint->texture = getTexture("gfx/entities/extractionPoint.png");
extractionPoint->flags = EF_MISSION_TARGET;
extractionPoint->action = think;
extractionPoint->flags |= EF_NO_MT_BOX;
@ -48,6 +47,8 @@ static void think(void)
}
handleFleeingEntities();
battle.extractionPoint = self;
}
static void handleFleeingEntities(void)

View File

@ -28,4 +28,5 @@ extern Entity *spawnEntity(void);
extern Entity **getAllEntsWithin(int x, int y, int w, int h, Entity *ignore);
extern int getDistance(int x1, int y1, int x2, int y2);
extern Battle battle;
extern Entity *self;