Don't attach rope if disabled. Speed is 0 if created disabled.

This commit is contained in:
Steve 2016-04-07 12:40:14 +01:00
parent 5e8b983f3e
commit 0abfb672d7
1 changed files with 9 additions and 1 deletions

View File

@ -192,7 +192,10 @@ void doFighter(void)
separate();
}
attachRope();
if (!(self->flags & EF_DISABLED))
{
attachRope();
}
if (self->thrust > 0.25)
{
@ -824,6 +827,11 @@ void loadFighters(cJSON *node)
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "Flags for '%s' (%s) replaced", e->name, e->defName);
}
if (e->flags & EF_DISABLED)
{
e->speed = 0;
}
}
if (aiFlags != -1)