Implement unit tests for the project. Fix Display Name bug (found in InternalNameCheck unit test). Add Monster Unit Tests.
This commit is contained in:
@@ -87,7 +87,7 @@ void SoundEffect::Initialize(){
|
||||
}
|
||||
|
||||
void SoundEffect::PlaySFX(const std::string_view eventName,const vf2d&pos){
|
||||
if(eventName.length()==0)return;
|
||||
if(game->TestingModeEnabled()||eventName.length()==0)return;
|
||||
const SoundEffect&sfx=GetRandomSFXFromFile(eventName);
|
||||
|
||||
if(GameState::STATE==GameState::states[States::MAIN_MENU]&&sfx.combatSound)return; //Do not play combat sounds on the main menu.
|
||||
|
||||
Reference in New Issue
Block a user