Jumpgates are neutral by default.
This commit is contained in:
parent
3fe01427d1
commit
cb6ad171a7
|
@ -71,13 +71,13 @@ static void addNodes(Entity *jumpgate, long flags)
|
||||||
node->owner = jumpgate;
|
node->owner = jumpgate;
|
||||||
node->side = jumpgate->side;
|
node->side = jumpgate->side;
|
||||||
node->texture = nodeTexture;
|
node->texture = nodeTexture;
|
||||||
node->flags = EF_TAKES_DAMAGE;
|
node->flags = EF_TAKES_DAMAGE+EF_AI_IGNORE;
|
||||||
node->die = nodeDie;
|
node->die = nodeDie;
|
||||||
SDL_QueryTexture(node->texture, NULL, NULL, &node->w, &node->h);
|
SDL_QueryTexture(node->texture, NULL, NULL, &node->w, &node->h);
|
||||||
|
|
||||||
if (flags != -1)
|
if (flags != -1)
|
||||||
{
|
{
|
||||||
node->flags |= flags;
|
node->flags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
jumpgate->maxHealth++;
|
jumpgate->maxHealth++;
|
||||||
|
|
|
@ -101,6 +101,7 @@ void initLookups(void)
|
||||||
addLookup("WT_IMG_BUTTON", WT_IMG_BUTTON);
|
addLookup("WT_IMG_BUTTON", WT_IMG_BUTTON);
|
||||||
addLookup("WT_CONTROL_CONFIG", WT_CONTROL_CONFIG);
|
addLookup("WT_CONTROL_CONFIG", WT_CONTROL_CONFIG);
|
||||||
|
|
||||||
|
addLookup("SIDE_NONE", SIDE_NONE);
|
||||||
addLookup("SIDE_ALLIES", SIDE_ALLIES);
|
addLookup("SIDE_ALLIES", SIDE_ALLIES);
|
||||||
addLookup("SIDE_PIRATE", SIDE_PIRATE);
|
addLookup("SIDE_PIRATE", SIDE_PIRATE);
|
||||||
addLookup("SIDE_REBEL", SIDE_REBEL);
|
addLookup("SIDE_REBEL", SIDE_REBEL);
|
||||||
|
|
Loading…
Reference in New Issue