mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 04:16:46 +00:00
Fix /camp rest timer exploit
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ public:
|
||||
void Disable();
|
||||
void Start(uint32 set_timer_time=0, bool ChangeResetTimer = true);
|
||||
void SetTimer(uint32 set_timer_time=0);
|
||||
uint32 GetRemainingTime();
|
||||
uint32 GetRemainingTime() const;
|
||||
inline const uint32& GetTimerTime() { return timer_time; }
|
||||
inline const uint32& GetSetAtTrigger() { return set_at_trigger; }
|
||||
void Trigger();
|
||||
|
||||
Reference in New Issue
Block a user