summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-15 20:33:11 +0000
committerrubidium <rubidium@openttd.org>2007-10-15 20:33:11 +0000
commitf4f47451ac815dd14883ff4365ef13f3b363b24f (patch)
tree5752b7e2042f5fcf9908ae1425ee3aeb4c6058dd /src
parent322746ee11100a78e110d97b37c22d87452f8bff (diff)
downloadopenttd-f4f47451ac815dd14883ff4365ef13f3b363b24f.tar.xz
(svn r11270) -Fix (r11269): black people only have one eye colour.
Diffstat (limited to 'src')
-rw-r--r--src/players.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 6842fa04b..5a06a90ae 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -94,7 +94,7 @@ PlayerFace ConvertFromOldPlayerFace(uint32 face)
SetPlayerFaceBits(pf, PFV_GEN_ETHN, ge, ge);
SetPlayerFaceBits(pf, PFV_HAS_GLASSES, ge, GB(face, 28, 3) <= 1);
- SetPlayerFaceBits(pf, PFV_EYE_COLOUR, ge, clampu(GB(face, 20, 3), 5, 7) - 5);
+ SetPlayerFaceBits(pf, PFV_EYE_COLOUR, ge, HASBIT(ge, ETHNICITY_BLACK) ? 0 : clampu(GB(face, 20, 3), 5, 7) - 5);
SetPlayerFaceBits(pf, PFV_CHIN, ge, ScalePlayerFaceValue(PFV_CHIN, ge, GB(face, 4, 2)));
SetPlayerFaceBits(pf, PFV_EYEBROWS, ge, ScalePlayerFaceValue(PFV_EYEBROWS, ge, GB(face, 6, 4)));
SetPlayerFaceBits(pf, PFV_HAIR, ge, ScalePlayerFaceValue(PFV_HAIR, ge, GB(face, 16, 4)));