From 542c756b2e4e0ce56944241577f7e767f25e6a71 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Mon, 2 Dec 2024 16:43:27 -0700 Subject: [PATCH] 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. --- CMakeLists.txt | 1 + src/engine/fox_radio.c | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d99cfe9e..33311c73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -359,6 +359,7 @@ if(MSVC) ${DEFAULT_CXX_EXCEPTION_HANDLING} ) target_compile_options(${PROJECT_NAME} PRIVATE $<$:/ZI;>) + target_compile_options(${PROJECT_NAME} PRIVATE $<$:/Zi;>) elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32") target_compile_options(${PROJECT_NAME} PRIVATE $<$: diff --git a/src/engine/fox_radio.c b/src/engine/fox_radio.c index 9cde4152..91708ad6 100644 --- a/src/engine/fox_radio.c +++ b/src/engine/fox_radio.c @@ -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) {