summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-25 09:06:13 +0000
committerrubidium <rubidium@openttd.org>2007-02-25 09:06:13 +0000
commit9c6957b45770f1ab91f1621bb7c63dc546f77906 (patch)
treee2278218eb8657417d95b545f9ceea52d55b7bac
parent4c4b035175a6b8c23793bc3250c75bf50c4d72bd (diff)
downloadopenttd-9c6957b45770f1ab91f1621bb7c63dc546f77906.tar.xz
(svn r8892) -Fix (r8879): swapped the eye colour and eyebrow bits.
-rw-r--r--src/players.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 671967421..d0c9a8deb 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -81,11 +81,11 @@ DECLARE_ENUM_AS_BIT_SET(GenderRace); ///< See GenderRace as a bitset
*
* Meaning of the bits in face (some bits are used in several times):
* - 4 and 5: chin
- * - 6 to 9: eye colour
+ * - 6 to 9: eyebrows
* - 10 to 13: nose
* - 13 to 15: lips (also moustache for males)
* - 16 to 19: hair
- * - 20 to 22: eyebrows
+ * - 20 to 22: eye color
* - 20 to 27: tie, ear rings etc.
* - 28 to 30: glasses
* - 19, 26 and 27: race (bit 27 set and bit 19 equal to bit 26 = black, otherwise white)
@@ -122,8 +122,8 @@ void DrawPlayerFace(uint32 face, int color, int x, int y)
}
/* Draw the eyes */
- uint eye_colour = GB(face, 6, 4);
- uint eyebrows = GB(face, 20, 3);
+ uint eye_colour = GB(face, 20, 3);
+ uint eyebrows = GB(face, 6, 4);
SpriteID pal;
if (eye_colour < 6) {