Shared: add crandom() implementation into defs.h
This commit is contained in:
parent
19d7f30cc4
commit
fea5ed574f
1 changed files with 7 additions and 0 deletions
|
@ -325,3 +325,10 @@ Util_IsSingleplayer(void)
|
|||
/* else we're multiplayer */
|
||||
return false;
|
||||
}
|
||||
|
||||
float
|
||||
crandom(void)
|
||||
{
|
||||
return ((random() - 0.5f) * 2.0f);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue