Skip to content

Commit

Permalink
make random number generator state data static variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jkivilin committed Dec 3, 2011
1 parent 7e7447e commit 42a1eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion dll.cpp
Expand Up @@ -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};


Expand Down
3 changes: 2 additions & 1 deletion util.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 42a1eff

Please sign in to comment.