mirror of https://github.com/sm64pc/sm64pc.git
Fix a minor potential bug with QOL_FIXES
This commit is contained in:
parent
de8b4bcfb2
commit
e08ab71cb5
|
@ -836,8 +836,10 @@ s16 get_str_x_pos_from_center_scale(s16 centerPos, u8 *str, f32 scale) {
|
|||
f32 spacesWidth = 0.0f;
|
||||
|
||||
while (str[strPos] != DIALOG_CHAR_TERMINATOR) {
|
||||
#if !defined(QOL_FIXES) && defined(VERSION_EU)
|
||||
#ifdef VERSION_EU
|
||||
//! 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
|
||||
|
@ -845,6 +847,7 @@ 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