summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-28 23:44:33 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-28 23:44:33 +0100
commit810bad9fd8cf344f7d73b82f042910a4c443b0f7 (patch)
tree642eb40736bd71d12edbe5cdc7afa1a70ffe7c36 /src/audio
parentfix (diff)
downloadre3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar.gz
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar.bz2
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar.lz
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar.xz
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.tar.zst
re3-810bad9fd8cf344f7d73b82f042910a4c443b0f7.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/MusicManager.cpp5
-rw-r--r--src/audio/MusicManager.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index acfe09c3..374de081 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -1223,8 +1223,11 @@ cMusicManager::DisplayRadioStationName()
gNumRetunePresses++;
}
else
+#ifdef FIX_BUGS
+ track = m_nFrontendTrack == NO_TRACK ? POLICE_RADIO : m_nFrontendTrack;
+#else
track = m_nFrontendTrack;
-
+#endif
wchar* string = nil;
switch (track) {
diff --git a/src/audio/MusicManager.h b/src/audio/MusicManager.h
index f103e84e..5691b7b8 100644
--- a/src/audio/MusicManager.h
+++ b/src/audio/MusicManager.h
@@ -29,7 +29,7 @@ public:
uint32 m_nResetTime;
bool m_bRadioSetByScript;
uint8 m_nRadioStation;
- uint32 m_nRadioPosition;
+ int32 m_nRadioPosition;
uint32 m_nRadioInCar;
uint32 m_nFrontendTrack;
uint32 m_nPlayingTrack;