fix weirdness in random numbers and ray creation

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6005 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2011-01-15 21:20:31 +00:00
parent 6285f5758a
commit 32d96b2be4
12 changed files with 99 additions and 96 deletions
-1
View File
@@ -1009,7 +1009,6 @@ const char *rndmapname()
"ac_shine", "ac_snow", "ac_sunset", "ac_toxic", "ac_urban",
"ac_werk",
};
srand(time(NULL));
int l = sizeof(mapnames)/sizeof(mapnames[0]);
int n = rnd(l);
return mapnames[n];