diff --git a/scene/game_config.lua b/scene/game_config.lua index a6ca247..ea91b11 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -9,6 +9,7 @@ ConfigScene.options = { {"manlock", "Manual locking",{"Per ruleset","Per gamemode","Harddrop", "Softdrop"}}, {"piece_colour", "Piece Colours", {"Per ruleset","Arika" ,"TTC"}}, {"world_reverse","A Button Rotation", {"Left" ,"Auto" ,"Right"}}, + {"next_se", "Next Piece SFX", {"On", "Off"}}, {"das_last_key", "DAS Switch", {"Default", "Instant"}}, {"synchroes_allowed", "Synchroes", {"Per ruleset", "On", "Off"}} } diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index f320f67..f5cf2ee 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -415,7 +415,7 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next table.remove(self.next_queue, 1) table.insert(self.next_queue, self:getNextPiece(ruleset)) end - self:playNextSound() + if config.gamesettings.next_se == 1 then self:playNextSound() end end function GameMode:playNextSound()