Revert changes of rand() to random() as random() was redefined in quake3.
This commit is contained in:
parent
b40f1507ea
commit
e4d0c14f70
5 changed files with 17 additions and 11 deletions
|
@ -72,8 +72,7 @@ void SV_GetChallenge( netadr_t from ) {
|
|||
if (i == MAX_CHALLENGES) {
|
||||
// this is the first time this client has asked for a challenge
|
||||
challenge = &svs.challenges[oldest];
|
||||
|
||||
challenge->challenge = ( (random() << 16) ^ random() ) ^ svs.time;
|
||||
challenge->challenge = ( (rand() << 16) ^ rand() ) ^ svs.time;
|
||||
challenge->adr = from;
|
||||
challenge->firstTime = svs.time;
|
||||
challenge->time = svs.time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue