Fix Music Remap

This commit is contained in:
NepDisk 2025-05-21 07:25:56 -04:00
parent 5ce5f607c8
commit 2ee8729585

View file

@ -3196,7 +3196,7 @@ bool CallFunc_MusicStopAll(ACSVM::Thread *thread, const ACSVM::Word *argV, ACSVM
bool CallFunc_MusicRemap(ACSVM::Thread *thread, const ACSVM::Word *argV, ACSVM::Word argC) bool CallFunc_MusicRemap(ACSVM::Thread *thread, const ACSVM::Word *argV, ACSVM::Word argC)
{ {
ACSVM::MapScope *map = thread->scopeMap; ACSVM::MapScope *map = thread->scopeMap;
UINT32 lastmapmusposition = mapmusposition; UINT32 lastmapmusposition = S_GetMusicPosition();
// 0: str song - lump name for the song to map to // 0: str song - lump name for the song to map to
// 1: [bool foractivator] - only do this if the activator is a player and is being viewed // 1: [bool foractivator] - only do this if the activator is a player and is being viewed