mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
fix course naming again (#515)
* fix course naming again whoops that was my fault (hopefully for the last time) * +1 course index in pause_castle_get_stars
This commit is contained in:
parent
e3fc8e92a4
commit
156cca9607
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ enum CourseNum
|
|||
#undef DEFINE_BONUS_COURSE
|
||||
|
||||
#define COURSE_IS_MAIN_COURSE(cmd) (cmd >= COURSE_MIN && cmd <= COURSE_STAGES_MAX)
|
||||
#define COURSE_IS_VALID_COURSE(cmd) (cmd >= COURSE_MIN && cmd <= COURSE_MAX)
|
||||
#define COURSE_IS_VALID_COURSE(cmd) (cmd >= COURSE_MIN && cmd < COURSE_MAX)
|
||||
|
||||
|
||||
#endif // COURSE_TABLE_H
|
||||
|
|
|
@ -2873,7 +2873,7 @@ void render_pause_castle_main_strings(s16 x, s16 y) {
|
|||
static u32 pause_castle_get_stars(s32 index) {
|
||||
|
||||
// Main courses (0-14), Secret courses (15-24)
|
||||
if (COURSE_IS_VALID_COURSE(index)) {
|
||||
if (COURSE_IS_VALID_COURSE(index + 1)) {
|
||||
return save_file_get_star_flags(gCurrSaveFileNum - 1, index);
|
||||
}
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ const char *get_level_name_ascii(s16 courseNum, s16 levelNum, s16 areaIndex, s16
|
|||
}
|
||||
|
||||
else if (!hasCustomName) {
|
||||
if (COURSE_IS_MAIN_COURSE(courseNum)) {
|
||||
if (COURSE_IS_VALID_COURSE(courseNum)) {
|
||||
void **courseNameTbl = get_course_name_table();
|
||||
const u8 *courseName = segmented_to_virtual(courseNameTbl[courseNum - COURSE_BOB]);
|
||||
convert_string_sm64_to_ascii(output, courseName + 3);
|
||||
|
|
Loading…
Reference in a new issue