This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG), Euroboros (EB), and Down Under Doomers (DUD).
Revisión | eb94132dc21e89b2fe2b621c89993fcd4f7f4827 (tree) |
---|---|
Tiempo | 2021-04-18 23:13:38 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed some MSVC warnings.
@@ -481,7 +481,7 @@ | ||
481 | 481 | // [BB] This is a new server, but we still need to verify it. |
482 | 482 | if ( currentUnverifiedServer == g_UnverifiedServers.end() ) |
483 | 483 | { |
484 | - srand ( time(NULL) ); | |
484 | + srand ( static_cast<unsigned int>( time(NULL) ) ); | |
485 | 485 | newServer.ServerVerificationInt = rand() + rand() * rand() + rand() * rand() * rand(); |
486 | 486 | // [BB] We don't send the ban list to unverified servers, so just pretent the server already has the list. |
487 | 487 | newServer.bHasLatestBanList = true; |
@@ -158,7 +158,7 @@ | ||
158 | 158 | hash, vertag, hash, lastlog); |
159 | 159 | |
160 | 160 | // [BB] Also save out hg info. |
161 | - fprintf (stream, "#define HG_REVISION_NUMBER %lu\n", hgdate); | |
161 | + fprintf (stream, "#define HG_REVISION_NUMBER %lu\n", (unsigned long)hgdate ); | |
162 | 162 | // [BB] We use the short hash. |
163 | 163 | hash[12] = 0; |
164 | 164 | fprintf (stream, "#define HG_REVISION_HASH_STRING \"%s\"\n", hash); |