Fix /camp rest timer exploit

This commit is contained in:
Michael Cook (mackal)
2018-07-14 17:41:42 -04:00
parent d0956194af
commit 37ff8c830d
6 changed files with 27 additions and 47 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ void Timer::SetTimer(uint32 set_timer_time) {
}
}
uint32 Timer::GetRemainingTime() {
uint32 Timer::GetRemainingTime() const {
if (enabled) {
if (current_time - start_time > timer_time)
return 0;