1
0
Fork 0

(svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto

release/0.6
KUDr 2007-02-24 19:43:50 +00:00
parent a23b4594ed
commit b3822a22d9
1 changed files with 9 additions and 7 deletions

View File

@ -171,13 +171,15 @@ void DrawPlayerFace(uint32 face, int color, int x, int y)
DrawSprite((lips * 10 >> 4) + 0x351, PAL_NONE, x, y); DrawSprite((lips * 10 >> 4) + 0x351, PAL_NONE, x, y);
} }
/* Nose */ {
static const SpriteID mouth_table[] = { 0x34C, 0x34D, 0x34F }; /* Nose */
switch (gen_race) { static const SpriteID mouth_table[] = { 0x34C, 0x34D, 0x34F };
case WHITE_MALE: DrawSprite(0x349 + nose, PAL_NONE, x, y); break; switch (gen_race) {
case WHITE_FEMALE: DrawSprite(mouth_table[(nose * 3 >> 3)], PAL_NONE, x, y); break; case WHITE_MALE: DrawSprite(0x349 + nose, PAL_NONE, x, y); break;
case BLACK_MALE: DrawSprite(0x393 + (nose & 3), PAL_NONE, x, y); break; case WHITE_FEMALE: DrawSprite(mouth_table[(nose * 3 >> 3)], PAL_NONE, x, y); break;
case BLACK_FEMALE: DrawSprite(0x3B3 + (nose * 5 >> 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: skip_mouth: