Don't attach rope if disabled. Speed is 0 if created disabled.
This commit is contained in:
parent
5e8b983f3e
commit
0abfb672d7
|
@ -192,7 +192,10 @@ void doFighter(void)
|
|||
separate();
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue