Commit 65fa1912 authored by mercury233's avatar mercury233

update time limit

parent 44070585
...@@ -1889,6 +1889,10 @@ void SingleDuel::TimeConfirm(DuelPlayer* dp) { ...@@ -1889,6 +1889,10 @@ void SingleDuel::TimeConfirm(DuelPlayer* dp) {
time_compensator[dp->type] -= time_elapsed; time_compensator[dp->type] -= time_elapsed;
time_elapsed = 0; time_elapsed = 0;
} }
else {
time_limit[dp->type] -= time_elapsed;
time_elapsed = 0;
}
#else #else
if(time_elapsed < 10) if(time_elapsed < 10)
time_elapsed = 0; time_elapsed = 0;
......
...@@ -1968,6 +1968,10 @@ void TagDuel::TimeConfirm(DuelPlayer* dp) { ...@@ -1968,6 +1968,10 @@ void TagDuel::TimeConfirm(DuelPlayer* dp) {
time_compensator[dp->type] -= time_elapsed; time_compensator[dp->type] -= time_elapsed;
time_elapsed = 0; time_elapsed = 0;
} }
else {
time_limit[dp->type] -= time_elapsed;
time_elapsed = 0;
}
#else #else
if(time_elapsed < 10) if(time_elapsed < 10)
time_elapsed = 0; time_elapsed = 0;
......
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