Permalink
Browse files

make random number generator state data static variable

  • Loading branch information...
1 parent 7e7447e commit 42a1eff1920e8cbc52f248071ad0f0414396a1aa @jkivilin committed Jan 6, 2009
Showing with 2 additions and 2 deletions.
  1. +0 −1 dll.cpp
  2. +2 −1 util.cpp
View
@@ -106,7 +106,6 @@ player_t players[32];
static void (*old_PM_PlaySound)(int channel, const char *sample, float volume, float attenuation, int fFlags, int pitch) = NULL;
static struct playermove_s *old_ppmove = NULL;
-unsigned int rnd_idnum[2] = {1, 1};
cvar_t jk_botti_version = { "jk_botti_version", "", FCVAR_EXTDLL|FCVAR_SERVER, 0, NULL};
View
@@ -22,11 +22,12 @@
extern bot_t bots[32];
extern qboolean is_team_play;
-extern unsigned int rnd_idnum[2];
static breakable_list_t *g_breakable_list = NULL;
static breakable_list_t breakable_list_memarray[BREAKABLE_LIST_MAX];
+static unsigned int rnd_idnum[2] = {1, 1};
+
#ifdef __GNUC__
inline void fsincos(double x, double &s, double &c)
{

0 comments on commit 42a1eff

Please sign in to comment.