Added "none" for teamwin argument

This commit is contained in:
smallmodel committed 2023-11-13 18:22:35 +01:00
1 parent a7301ed7b6
commit e453d1fa17
1 file changed
+3 -1
+3 -1
View File
@@ -4119,8 +4119,10 @@ void ScriptThread::EventTeamWin(Event *ev)
teamnum = TEAM_ALLIES;
} else if (team == STRING_AXIS) {
teamnum = TEAM_AXIS;
} else if (team == STRING_DISGUISE_NONE) {
teamnum = TEAM_NONE;
} else {
throw ScriptException("'teamwin' must be called with 'axis' or 'allies' as its argument");
throw ScriptException("'teamwin' must be called with 'axis', 'allies' or 'none' as its argument");
}
dmManager.TeamWin(teamnum);