summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-02-17 22:53:39 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-02-17 22:53:39 +0000
commit4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (patch)
treed48be98832d2d9cb977540541fae1acb1859142b /source/sv_init.c
parenta5afaf65af8ef50d1ce8bbd9e2133239013c26f7 (diff)
Huge search and replace commit.
Use fixed size integer types from stdint.h instead of custom defined ones. Get endianess infromation form endian.h. Added `remotemode' console command. Link with -ldl only on Linux.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index 608c42e..fafd580 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -47,7 +47,7 @@ clients along with it.
*/
void SV_SpawnServer( const char *server, const char *spawnpoint ) {
int i;
- uint32 checksum;
+ uint32_t checksum;
char string[MAX_QPATH];
client_t *client;
tcpClient_t *t;
@@ -62,7 +62,7 @@ void SV_SpawnServer( const char *server, const char *spawnpoint ) {
// wipe the entire per-level structure
memset( &sv, 0, sizeof( sv ) );
- sv.spawncount = ( rand() | ( rand() << 16 ) ) ^ Sys_Realtime();
+ sv.spawncount = ( rand() | ( rand() << 16 ) ) ^ Sys_Milliseconds();
sv.spawncount &= 0x7FFFFFFF;
// reset counters