misc.c
changeset 1120 047e8b16a954
parent 1095 b59632d9df1b
child 1121 8a7e7ace154f
equal deleted inserted replaced
1119:44a402ca7c01 1120:047e8b16a954
    27 #undef PLAYER_SEED_RANDOM
    27 #undef PLAYER_SEED_RANDOM
    28 
    28 
    29 #ifdef RANDOM_DEBUG
    29 #ifdef RANDOM_DEBUG
    30 #include "network_data.h"
    30 #include "network_data.h"
    31 
    31 
    32 uint32 DoRandom(uint line, char *file)
    32 uint32 DoRandom(int line, const char *file)
    33 #else
    33 #else
    34 uint32 Random(void)
    34 uint32 Random(void)
    35 #endif
    35 #endif
    36 {
    36 {
    37 #ifdef RANDOM_DEBUG
    37 #ifdef RANDOM_DEBUG
    59 	return _random_seeds[0][1] = ROR(s, 3);
    59 	return _random_seeds[0][1] = ROR(s, 3);
    60 #endif
    60 #endif
    61 }
    61 }
    62 
    62 
    63 #ifdef RANDOM_DEBUG
    63 #ifdef RANDOM_DEBUG
    64 uint DoRandomRange(uint max, uint line, char *file)
    64 uint DoRandomRange(uint max, int line, const char *file)
    65 {
    65 {
    66 	return (uint16)DoRandom(line, file) * max >> 16;
    66 	return (uint16)DoRandom(line, file) * max >> 16;
    67 }
    67 }
    68 #else
    68 #else
    69 uint RandomRange(uint max)
    69 uint RandomRange(uint max)