Commit 2b2df796 authored by Helicosaurus's avatar Helicosaurus Committed by GitHub

Unnecessary time conversion for "TMx#" arg

This argument is passed in the PSW of a room to change the time limit of a turn.
It can already be set to 0 (unlimited time), or up to 999 seconds (more than 15 minutes).
Removing this seconds-to-minutes conversion also allows for setting a time of 60 seconds or shorter, for blitz games.
parent 92d6b1e3
Pipeline #3 failed with stages
...@@ -1340,9 +1340,6 @@ ...@@ -1340,9 +1340,6 @@
if (time_limit < 0) { if (time_limit < 0) {
time_limit = 180; time_limit = 180;
} }
if (time_limit >= 1 && time_limit <= 60) {
time_limit = time_limit * 60;
}
if (time_limit >= 999) { if (time_limit >= 999) {
time_limit = 999; time_limit = 999;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment