diff options
author | Aki <please@ignore.pl> | 2022-04-06 23:38:43 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-06 23:38:43 +0200 |
commit | b0442b1f010832ec047f37c841e5a71b53cff458 (patch) | |
tree | 6a12562f06477a835e1c440b9a9e3a4569bdc0b7 /StarsEx | |
parent | be8570bca631e9488a8aff437d5af13b4f6983bc (diff) | |
download | starshatter-b0442b1f010832ec047f37c841e5a71b53cff458.zip starshatter-b0442b1f010832ec047f37c841e5a71b53cff458.tar.gz starshatter-b0442b1f010832ec047f37c841e5a71b53cff458.tar.bz2 |
Changed to use Sleep equivalent from STL
Diffstat (limited to 'StarsEx')
-rw-r--r-- | StarsEx/StarServer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/StarsEx/StarServer.cpp b/StarsEx/StarServer.cpp index a7bb169..c627178 100644 --- a/StarsEx/StarServer.cpp +++ b/StarsEx/StarServer.cpp @@ -11,7 +11,9 @@ #include <stdlib.h> +#include <chrono> #include <iostream> +#include <thread> #include "Campaign.h" #include "Clock.h" @@ -300,18 +302,16 @@ StarServer::GameState() } if (game_mode == MENU_MODE) { - Sleep(30); + std::this_thread::sleep_for(std::chrono::milliseconds(30)); } - else if (game_mode == LOAD_MODE) { CreateWorld(); InstantiateMission(); SetGameMode(PLAY_MODE); } - else if (game_mode == PLAY_MODE) { - Sleep(10); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); } } |