Fix /camp rest timer exploit

This commit is contained in:
Michael Cook (mackal) committed 2018-07-14 17:41:42 -04:00
1 parent d0956194af
commit 37ff8c830d
6 files changed
+27 -47

No files matched your search

+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;