Extraction point is registered with battle.
This commit is contained in:
parent
70d47a796b
commit
ec6e57194e
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue