" -c, --connect <host>\tInitiate connection\n"
" -p, --port <port>\tSet port number (default is %d)\n"
"\n"
- " -s, --seed <seed>\tStart with given random seed\n"
" -i, --speed <sec>\tSet the initial step-down interval, in seconds\n"
" -l, --level <lvl>\tBegin at a higher level (can be used as handicap)\n"
" -k, --keys <keys>\tRemap keys (default is \"%s\" for cursors)\n"
ExtFunc void InitUtil(void)
{
- if (Game.seed)
- SRandom(Game.seed);
- else
- SRandom(time(0));
+ SRandom(time(0));
if (sigsetjmp(close_env, 1)) exit(0);
signal(SIGINT, CatchInt);
ResetBaseTime();
} //SRandom
ExtFunc int Random(int min, int max1)
-{
+{ //return a random value
myRandSeed = (myRandSeed * 31751 + 15437) % 32767;
return myRandSeed % (max1 - min) + min;
} //Random