maps are more efficient to make and run on memory
This commit is contained in:
+3
-2
@@ -3,9 +3,10 @@
|
||||
#include "scheduler.hpp"
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
void Timer::update_timers(bool &running, float &dash_timer) {
|
||||
void Timer::update_timers(bool &running, Times ×) {
|
||||
while (running) {
|
||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
dash_timer--;
|
||||
times.dash_cooldown--;
|
||||
times.level_switch_cooldown--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user