Remove old PlaySound logics
This commit is contained in:
		| @@ -467,7 +467,6 @@ if (Players.count > 0 && S_MalusDuration > 0 && MalusTime != -1 && Now > MalusTi | |||||||
| 			ActiveMalus = True; | 			ActiveMalus = True; | ||||||
| 			NextStepMalusTime = Now + (S_MalusDuration*1000); | 			NextStepMalusTime = Now + (S_MalusDuration*1000); | ||||||
| 			 | 			 | ||||||
| 			UIManager.UIAll.BigMessageSound = CUIConfig::EUISound::Silence; |  | ||||||
| 			UIModules_BigMessage::SetMessage("Current Effect: "^C_Malus_Name[MalusIndex]); | 			UIModules_BigMessage::SetMessage("Current Effect: "^C_Malus_Name[MalusIndex]); | ||||||
|  |  | ||||||
| 			// Players UI update | 			// Players UI update | ||||||
| @@ -488,7 +487,6 @@ if (Players.count > 0 && S_MalusDuration > 0 && MalusTime != -1 && Now > MalusTi | |||||||
|  |  | ||||||
| 				NextStepMalusTime = Now + (S_MalusEveryNSecs*1000); | 				NextStepMalusTime = Now + (S_MalusEveryNSecs*1000); | ||||||
|  |  | ||||||
| 				UIManager.UIAll.BigMessageSound = CUIConfig::EUISound::Silence; |  | ||||||
| 				UIModules_BigMessage::SetMessage(""); | 				UIModules_BigMessage::SetMessage(""); | ||||||
| 	 | 	 | ||||||
| 				// Players UI update | 				// Players UI update | ||||||
| @@ -549,8 +547,7 @@ if (Round_ForceEndRound || Round_SkipPauseRound) { | |||||||
| 	} | 	} | ||||||
| 	Scores::SetPlayerWinner(WinnerScore); | 	Scores::SetPlayerWinner(WinnerScore); | ||||||
|  |  | ||||||
| 	UIManager.UIAll.BigMessageSound = CUIConfig::EUISound::EndRound; | 	ModeUtils::PlaySound(CUIConfig::EUISound::EndRound, 0); | ||||||
| 	UIManager.UIAll.BigMessageSoundVariant = 0; |  | ||||||
|  |  | ||||||
| 	if (WinnerScore == Null) { | 	if (WinnerScore == Null) { | ||||||
| 		UIModules_BigMessage::SetMessage(_("|Match|Draw")); | 		UIModules_BigMessage::SetMessage(_("|Match|Draw")); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user