diff --git a/server/main.cpp b/server/main.cpp index f4b6609..76d8387 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -290,6 +290,7 @@ int main (int argc, char** argv) // Setup the exception handler on windows SetUnhandledExceptionFilter(exc_handler); + timeBeginPeriod(1); // increases the accuracy of Sleep() #endif // Load up the plugins diff --git a/server/main.h b/server/main.h index 62791dd..b5d98e6 100644 --- a/server/main.h +++ b/server/main.h @@ -22,6 +22,7 @@ #define SLEEP(x) { Sleep(x); } #include + #include #include #else #define SLEEP(x) { usleep(x * 1000); } diff --git a/server/server.vcproj b/server/server.vcproj index 250a211..fa748f5 100644 --- a/server/server.vcproj +++ b/server/server.vcproj @@ -31,6 +31,7 @@ Name="VCCustomBuildTool"/>