diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 8dd259dd0..80c9bbbb8 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -1293,6 +1293,8 @@ const memberlabel_t UserdefsLabels[]= { "slidebar_paldisabled", USERDEFS_SLIDEBAR_PALDISABLED, 0, 0 }, { "user_map", USERDEFS_USER_MAP, 0, 0 }, { "m_user_map", USERDEFS_M_USER_MAP, 0, 0 }, + { "music_episode", USERDEFS_MUSIC_EPISODE, 0, 0 }, + { "music_level", USERDEFS_MUSIC_LEVEL, 0, 0 }, { NULL, -1, 0, 0 } // END OF LIST }; diff --git a/source/duke3d/src/gamedef.h b/source/duke3d/src/gamedef.h index 5619bb3bb..4b0c59729 100644 --- a/source/duke3d/src/gamedef.h +++ b/source/duke3d/src/gamedef.h @@ -581,6 +581,8 @@ enum UserdefsLabel_t USERDEFS_SLIDEBAR_PALDISABLED, USERDEFS_USER_MAP, USERDEFS_M_USER_MAP, + USERDEFS_MUSIC_EPISODE, + USERDEFS_MUSIC_LEVEL, USERDEFS_END }; diff --git a/source/duke3d/src/gamestructures.cpp b/source/duke3d/src/gamestructures.cpp index e0bd86164..eb005b000 100644 --- a/source/duke3d/src/gamestructures.cpp +++ b/source/duke3d/src/gamestructures.cpp @@ -212,6 +212,8 @@ int32_t __fastcall VM_GetUserdef(int32_t labelNum) case USERDEFS_MENUTITLE_PAL: labelNum = ud.menutitle_pal; break; case USERDEFS_SLIDEBAR_PALSELECTED: labelNum = ud.slidebar_palselected; break; case USERDEFS_SLIDEBAR_PALDISABLED: labelNum = ud.slidebar_paldisabled; break; + case USERDEFS_MUSIC_EPISODE: labelNum = ud.music_episode; break; + case USERDEFS_MUSIC_LEVEL: labelNum = ud.music_level; break; default: labelNum = -1; break; }