fix course name lagging behind by a frame (#83)
get the course name *after* scrolling is processed
This commit is contained in:
parent
0c9b92c5cd
commit
b3fb92ed4a
|
@ -2810,13 +2810,6 @@ void render_pause_castle_main_strings(s16 x, s16 y) {
|
|||
INGAME_TEXT_COPY(textCoin, TEXT_COIN_X);
|
||||
#endif
|
||||
|
||||
u8 courseNum = gDialogLineNum + 1;
|
||||
const u8 *courseName = (
|
||||
gDialogLineNum == COURSE_STAGES_COUNT ?
|
||||
((const u8 **) get_course_name_table())[COURSE_MAX] : // Castle secret stars
|
||||
get_level_name_sm64(courseNum, get_level_num_from_course_num(courseNum), 1, 1)
|
||||
);
|
||||
|
||||
u8 strVal[8];
|
||||
s16 starNum = gDialogLineNum;
|
||||
|
||||
|
@ -2848,6 +2841,13 @@ void render_pause_castle_main_strings(s16 x, s16 y) {
|
|||
gSPDisplayList(gDisplayListHead++, dl_ia_text_begin);
|
||||
gDPSetEnvColor(gDisplayListHead++, 255, 255, 255, gDialogTextAlpha);
|
||||
|
||||
u8 courseNum = gDialogLineNum + 1;
|
||||
const u8 *courseName = (
|
||||
gDialogLineNum == COURSE_STAGES_COUNT ?
|
||||
((const u8 **) get_course_name_table())[COURSE_MAX] : // Castle secret stars
|
||||
get_level_name_sm64(courseNum, get_level_num_from_course_num(courseNum), 1, 1)
|
||||
);
|
||||
|
||||
if (gDialogLineNum < COURSE_STAGES_COUNT) {
|
||||
render_pause_castle_course_stars(x, y, gCurrSaveFileNum - 1, gDialogLineNum);
|
||||
print_generic_string(x + 34, y - 5, textCoin);
|
||||
|
|
Loading…
Reference in New Issue