tiny fix, audiomanager misrepresenting calculation
This commit is contained in:
@@ -79,7 +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;
|
||||||
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; }
|
||||||
this.shouldTick = true;
|
this.shouldTick = true;
|
||||||
this.hasTimeOffset = BGMArray[this.indexBGM].introSeconds > 0 ? true : false;
|
this.hasTimeOffset = BGMArray[this.indexBGM].introSeconds > 0 ? true : false;
|
||||||
|
Reference in New Issue
Block a user