maps are more efficient to make and run on memory
This commit is contained in:
1 parent
5e5f712a84
commit
cd19e841a5
6 files changed
+135
-105
No files matched your search
+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