diff options
author | KUDr <KUDr@openttd.org> | 2007-02-24 19:43:50 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-02-24 19:43:50 +0000 |
commit | 856ecd41e89e54f438a6678ec327b8eb38cc0f4e (patch) | |
tree | a41c8858c59f020eb7f25cee4b9043f3bccc7259 | |
parent | 719f5c793083f5d124bb4049c3cb31516289993c (diff) | |
download | openttd-856ecd41e89e54f438a6678ec327b8eb38cc0f4e.tar.xz |
(svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto
-rw-r--r-- | src/players.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/players.cpp b/src/players.cpp index 2ca91b4a0..671967421 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -171,13 +171,15 @@ void DrawPlayerFace(uint32 face, int color, int x, int y) DrawSprite((lips * 10 >> 4) + 0x351, PAL_NONE, x, y); } - /* Nose */ - static const SpriteID mouth_table[] = { 0x34C, 0x34D, 0x34F }; - switch (gen_race) { - case WHITE_MALE: DrawSprite(0x349 + nose, PAL_NONE, x, y); break; - case WHITE_FEMALE: DrawSprite(mouth_table[(nose * 3 >> 3)], PAL_NONE, x, y); break; - case BLACK_MALE: DrawSprite(0x393 + (nose & 3), PAL_NONE, x, y); break; - case BLACK_FEMALE: DrawSprite(0x3B3 + (nose * 5 >> 3), PAL_NONE, x, y); break; + { + /* Nose */ + static const SpriteID mouth_table[] = { 0x34C, 0x34D, 0x34F }; + switch (gen_race) { + case WHITE_MALE: DrawSprite(0x349 + nose, PAL_NONE, x, y); break; + case WHITE_FEMALE: DrawSprite(mouth_table[(nose * 3 >> 3)], PAL_NONE, x, y); break; + case BLACK_MALE: DrawSprite(0x393 + (nose & 3), PAL_NONE, x, y); break; + case BLACK_FEMALE: DrawSprite(0x3B3 + (nose * 5 >> 3), PAL_NONE, x, y); break; + } } skip_mouth: |