mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-04 21:50:38 -04:00
allow to leave PC in other map
This commit is contained in:
parent
5c4cfaf314
commit
33fa026576
23 changed files with 515 additions and 319 deletions
|
@ -3,9 +3,12 @@
|
|||
#include "platform.h"
|
||||
|
||||
#include <thread>
|
||||
|
||||
int timerspeed_val = TIMERSPEED;
|
||||
|
||||
int get_timer_value() {
|
||||
auto n = std::chrono::steady_clock::now();
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(n.time_since_epoch()).count()/TIMERSPEED;
|
||||
return std::chrono::duration_cast<std::chrono::milliseconds>(n.time_since_epoch()).count()/timerspeed_val;
|
||||
}
|
||||
|
||||
uint32_t get_game_tick_count() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue