summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--StarsEx/StarServer.cpp8
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));
}
}