Mercurial > hg > openttd
changeset 6910:bd2ab0c4d43a draft
(svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way.
author | belugas <belugas@openttd.org> |
---|---|
date | Fri, 15 Jun 2007 01:53:43 +0000 |
parents | 6d1b28e5f91f |
children | 4c86d15026b4 |
files | src/industry_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -280,6 +280,8 @@ if (HASBIT(_transparent_opt, TO_INDUSTRIES)) { SETBIT(image, PALETTE_MODIFIER_TRANSPARENT); pal = PALETTE_TO_TRANSPARENT; + } else if (HASBIT(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) { + pal = GENERAL_SPRITE_COLOR(ind->random_color); } else { pal = dits->building.pal; }