mirror of https://github.com/sm64pc/sm64pc.git
Update ingame_menu.c
This commit is contained in:
parent
6829dca65e
commit
3ffcef70d4
|
@ -833,10 +833,9 @@ s16 get_str_x_pos_from_center_scale(s16 centerPos, u8 *str, f32 scale) {
|
|||
f32 spacesWidth = 0.0f;
|
||||
|
||||
while (str[strPos] != DIALOG_CHAR_TERMINATOR) {
|
||||
#ifdef VERSION_EU
|
||||
#if defined(VERSION_EU) && !defined(QOL_FIXES)
|
||||
//! EU checks for dakuten and handakuten despite dialog code unable to handle it
|
||||
// fixed in QOL_FIXES
|
||||
#ifndef QOL_FIXES
|
||||
if (str[strPos] == DIALOG_CHAR_SPACE) {
|
||||
spacesWidth += 1.0;
|
||||
} else if (str[strPos] != DIALOG_CHAR_DAKUTEN
|
||||
|
@ -844,7 +843,6 @@ s16 get_str_x_pos_from_center_scale(s16 centerPos, u8 *str, f32 scale) {
|
|||
charsWidth += 1.0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
strPos++;
|
||||
}
|
||||
// return the x position of where the string starts as half the string's
|
||||
|
|
Loading…
Reference in New Issue