Random civilian ship texture.

This commit is contained in:
Steve 2015-11-13 08:46:06 +00:00
parent 5fc2bed650
commit 52969b4a04
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ Entity *spawnFighter(char *name, int x, int y, int side)
randomizeDart(f);
}
if (strcmp(name, "Civilian") == 0 && rand() % 2 == 0)
{
f->texture = getTexture("gfx/craft/civilian02.png");
}
if (f->flags & EF_CIVILIAN)
{
f->defaultAction = doCivilianAI;