diff options
| author | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-10 22:22:31 +0100 |
|---|---|---|
| committer | Mittendrein Markus <maxmitti@gmx.net> | 2016-02-10 22:57:30 +0100 |
| commit | d18ead9151af1e5bcd7813544f531b2cb1e21a00 (patch) | |
| tree | c1ebf3d18950a7294c82f3e733be3178d840b22e /TemplePushing.c4s/Misc.c4d | |
| parent | 2def67d7f5a70473141977e5be755424eb320298 (diff) | |
| download | tempelschubsen-d18ead9151af1e5bcd7813544f531b2cb1e21a00.tar.gz tempelschubsen-d18ead9151af1e5bcd7813544f531b2cb1e21a00.zip | |
Add deathmatch win-score upper and lower limits with 10 and 30 respectively
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d')
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c index 6082ca5..6bd8790 100644 --- a/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c +++ b/TemplePushing.c4s/Misc.c4d/SetupMenu.c4d/Script.c @@ -155,11 +155,11 @@ private func SelectSetting(int selectedSetting) } else if (selectedSetting == SETTING_DeathmatchScoreInc) { - ++deathmatchWinScore; + deathmatchWinScore = Min(deathmatchWinScore + 1, 30); } else if (selectedSetting == SETTING_DeathmatchScoreDec) { - deathmatchWinScore = Max(deathmatchWinScore - 1, 1); + deathmatchWinScore = Max(deathmatchWinScore - 1, 10); } ShowMessage(); |
