Change how selecting sector effects works (no repeated addition)

This commit is contained in:
spherallic 2023-04-11 12:14:50 +02:00
parent eb8b86ac85
commit b8618f1821

View file

@ -207,7 +207,7 @@ namespace CodeImp.DoomBuilder.Windows
}
//mxd. Add generalized effects? (Don't add when "Any effect" is selected)
if(selectedeffect != -1 && General.Map.Config.GeneralizedEffects)
if(selectedeffect != -1 && General.Map.Config.GeneralizedEffects && tabs.SelectedTab == tabgeneralized)
{
// Go for all options
for(int i = 0; i < MAX_OPTIONS; i++)