summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-20 16:43:20 +0000
committerrubidium <rubidium@openttd.org>2007-03-20 16:43:20 +0000
commit8e3e055248277ec4239619360e64f9f098ba276f (patch)
tree2baf7bff1bededb925348234db00e5779eca8d32
parentc865b9f566f2c9737680659da7bdf37d3bc0a9fd (diff)
downloadopenttd-8e3e055248277ec4239619360e64f9f098ba276f.tar.xz
(svn r9377) -Fix (r9376): the off-by-one error was also present at another location :(
-rw-r--r--src/players.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 1da49754e..fcac79415 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -107,6 +107,7 @@ PlayerFace ConvertFromOldPlayerFace(uint32 face)
SetPlayerFaceBits(pf, PFV_MOUSTACHE, ge, max(lips, 1U) - 1);
} else {
if (!HASBIT(ge, GENDER_FEMALE)) {
+ lips = lips * 15 / 16;
lips -= 3;
if (HASBIT(ge, ETHNICITY_BLACK) && lips > 8) lips = 0;
} else {