From 52969b4a04d6556df97188d4a8aab6d360f7e8f4 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 13 Nov 2015 08:46:06 +0000 Subject: [PATCH] Random civilian ship texture. --- src/battle/fighters.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 9372057..26bd23d 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -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;