From 24cd34c39b9b2e115a3d496ef4b4b0280813f21f Mon Sep 17 00:00:00 2001 From: Japa Date: Sun, 26 Aug 2012 10:20:28 +0530 Subject: Fixed wrong caste tiles being used. --- Creatures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Creatures.cpp b/Creatures.cpp index 811934d..782a1d9 100644 --- a/Creatures.cpp +++ b/Creatures.cpp @@ -283,7 +283,7 @@ void DrawCreature(int drawx, int drawy, t_unit* creature, Block * b){ { df::creature_raw *raw = df::global::world->raws.creatures.all[creature->race]; int spritenum = raw->creature_tile; - if(raw->caste[creature->caste]->caste_tile) + if(raw->caste[creature->caste]->caste_tile != 1) spritenum = raw->caste[creature->caste]->caste_tile; spritenum += (spritenum/16)*4; ALLEGRO_COLOR tilecolor = config.colors.getDfColor(DFHack::Units::getCasteProfessionColor(creature->race,creature->caste,(df::profession)creature->profession)); -- cgit v1.2.1