mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Add timeBeginPeriod
This commit is contained in:
parent
a1ec7b149e
commit
ba956da957
@ -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
|
||||
|
@ -22,6 +22,7 @@
|
||||
#define SLEEP(x) { Sleep(x); }
|
||||
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#define SLEEP(x) { usleep(x * 1000); }
|
||||
|
@ -31,6 +31,7 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="winmm.lib"
|
||||
OutputFile="$(OutDir)/samp-server.exe"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="TRUE"
|
||||
@ -76,6 +77,7 @@
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="winmm.lib"
|
||||
OutputFile="$(OutDir)/samp-server.exe"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="TRUE"
|
||||
|
Loading…
x
Reference in New Issue
Block a user