Fix issues with audio system again
+ Fixed multiple bugs with syncing music and playing it.
This commit is contained in:
@@ -79,6 +79,7 @@ enum struct AUDIOMANAGER {
|
|||||||
**/
|
**/
|
||||||
void ChangeBGM(int bgm, bool instant) {
|
void ChangeBGM(int bgm, bool instant) {
|
||||||
this.indexBGM = this.VIPBGM > 0 ? this.VIPBGM : bgm == 0 ? g_indexBGM : bgm;
|
this.indexBGM = this.VIPBGM > 0 ? this.VIPBGM : bgm == 0 ? g_indexBGM : bgm;
|
||||||
|
<<<<<<< Updated upstream
|
||||||
PrintToChatAll("%i = %i >=0 ? %i : %i == 0 ? %i : %i", this.indexBGM, this.VIPBGM, this.VIPBGM, bgm, g_indexBGM, bgm);
|
PrintToChatAll("%i = %i >=0 ? %i : %i == 0 ? %i : %i", this.indexBGM, this.VIPBGM, this.VIPBGM, bgm, g_indexBGM, bgm);
|
||||||
if (instant) { this.timeSeconds = GetEngineTime() - this.loopSeconds; }
|
if (instant) { this.timeSeconds = GetEngineTime() - this.loopSeconds; }
|
||||||
=======
|
=======
|
||||||
|
Reference in New Issue
Block a user