Add /Zi to release config on win64 for debugging info in release mode.

Revert some of the intro cutscene fix PR, and fix it in a different way.
This commit is contained in:
Malkierian 2024-12-02 16:43:27 -07:00 committed by Alejandro Asenjo Nitti
parent 840fc5617d
commit 542c756b2e
2 changed files with 5 additions and 6 deletions

View File

@ -359,6 +359,7 @@ if(MSVC)
${DEFAULT_CXX_EXCEPTION_HANDLING}
)
target_compile_options(${PROJECT_NAME} PRIVATE $<$<CONFIG:Debug>:/ZI;>)
target_compile_options(${PROJECT_NAME} PRIVATE $<$<CONFIG:Release>:/Zi;>)
elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32")
target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Debug>:

View File

@ -572,7 +572,6 @@ void Radio_Draw(void) {
case 32:
if (Audio_GetCurrentVoice() == 0) {
gRadioMsgListIndex++;
gRadioMsgId = 10 * (gRadioMsgListIndex + 1);
gRadioMsg = SEGMENTED_TO_VIRTUAL(gRadioMsgList[gRadioMsgListIndex]);
Audio_PlayVoice(Message_IdFromPtr(gRadioMsg));
gRadioMsgCharIndex = 0;
@ -603,16 +602,15 @@ void Radio_Draw(void) {
if (!(fakeTemp)) {
ret = Audio_GetCurrentVoiceStatus();
if (gRadioMsgId < 50) {
if (gRadioMsg[gRadioMsgCharIndex + 1] == MSGCHAR_NXT) {
if (gRadioMsgCharIndex < 60) {
if (gRadioMsg[gRadioMsgCharIndex + 1] == MSGCHAR_NXT && *gRadioMsg != 38) {
if (ret == 0) {
gRadioState = 31;
}
} else {
}
else {
gRadioMsgCharIndex++;
}
} else {
gRadioMsgCharIndex++;
}
if (sRadioCheckMouthFlag) {