From cb6ad171a70a48001f916ee7491cca565bbb19b5 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 9 Apr 2016 15:48:00 +0100 Subject: [PATCH] Jumpgates are neutral by default. --- src/battle/jumpgate.c | 4 ++-- src/system/lookup.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/battle/jumpgate.c b/src/battle/jumpgate.c index ce46354..c1b379c 100644 --- a/src/battle/jumpgate.c +++ b/src/battle/jumpgate.c @@ -71,13 +71,13 @@ static void addNodes(Entity *jumpgate, long flags) node->owner = jumpgate; node->side = jumpgate->side; node->texture = nodeTexture; - node->flags = EF_TAKES_DAMAGE; + node->flags = EF_TAKES_DAMAGE+EF_AI_IGNORE; node->die = nodeDie; SDL_QueryTexture(node->texture, NULL, NULL, &node->w, &node->h); if (flags != -1) { - node->flags |= flags; + node->flags = flags; } jumpgate->maxHealth++; diff --git a/src/system/lookup.c b/src/system/lookup.c index 228030f..223acb8 100644 --- a/src/system/lookup.c +++ b/src/system/lookup.c @@ -101,6 +101,7 @@ void initLookups(void) addLookup("WT_IMG_BUTTON", WT_IMG_BUTTON); addLookup("WT_CONTROL_CONFIG", WT_CONTROL_CONFIG); + addLookup("SIDE_NONE", SIDE_NONE); addLookup("SIDE_ALLIES", SIDE_ALLIES); addLookup("SIDE_PIRATE", SIDE_PIRATE); addLookup("SIDE_REBEL", SIDE_REBEL);