Random civilian ship texture.
This commit is contained in:
parent
5fc2bed650
commit
52969b4a04
|
@ -71,6 +71,11 @@ Entity *spawnFighter(char *name, int x, int y, int side)
|
||||||
randomizeDart(f);
|
randomizeDart(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcmp(name, "Civilian") == 0 && rand() % 2 == 0)
|
||||||
|
{
|
||||||
|
f->texture = getTexture("gfx/craft/civilian02.png");
|
||||||
|
}
|
||||||
|
|
||||||
if (f->flags & EF_CIVILIAN)
|
if (f->flags & EF_CIVILIAN)
|
||||||
{
|
{
|
||||||
f->defaultAction = doCivilianAI;
|
f->defaultAction = doCivilianAI;
|
||||||
|
|
Loading…
Reference in New Issue