1
SCI Syntax Help / Re: Memory Fragmentation in QFG2
« on: November 19, 2017, 12:40:59 AM »Actually, I meant this:Woah! I have no clue how to bring that up. Please let me know how you did that.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Actually, I meant this:Woah! I have no clue how to bring that up. Please let me know how you did that.
u16 diff;
u16 min;
u16 max;
min = *(c++);
max = *(c++);
diff = max - min +1;
state.var[*(c++)] = (agi_rand() % diff) + min;
return c;
if (agi_rand_seed == 0)
{
//printf("Creating new randomised seed...\n");
/* ah = 0; int(1Ah); */ // number of ticks since midnight
#ifndef RAD_LINUX
_ftime (&t); // time since 1970 but that's ok
#else
ftime(&t);
#endif
//printf("time = %ld seconds %ld milliseconds\n", t.time, t.millitm );
agi_rand_seed = t.time * TANDY_CLOCK_PER_SEC;
agi_rand_seed += (u16) ((double)t.millitm / 1000 * TANDY_CLOCK_PER_SEC);
//printf("seed = 0x%04X\n\n", agi_rand_seed);
}
agi_rand_seed = 0x7C4D * agi_rand_seed + 1;
r = agi_rand_seed ^ (agi_rand_seed>>8);
return( r );
(if (u> (MemoryInfo 1) (+ 20 (MemoryInfo 0)))
SMF 2.0.19 |
SMF © 2021, Simple Machines
Simple Audio Video Embedder
Page created in 0.034 seconds with 21 queries.