src/core/random_func.hpp
branchNewGRF_ports
changeset 6872 1c4a4a609f85
parent 6871 5a9dc001e1ad
child 6877 889301acc299
equal deleted inserted replaced
6871:5a9dc001e1ad 6872:1c4a4a609f85
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 /** @file random_func.h */
     3 /** @file random_func.hpp */
     4 
     4 
     5 #ifndef RANDOM_FUNC_HPP
     5 #ifndef RANDOM_FUNC_HPP
     6 #define RANDOM_FUNC_HPP
     6 #define RANDOM_FUNC_HPP
       
     7 
       
     8 #if defined(__APPLE__)
       
     9 	/* Apple already has Random declared */
       
    10 	#define Random OTTD_Random
       
    11 #endif /* __APPLE__ */
     7 
    12 
     8 /**************
    13 /**************
     9  * Warning: DO NOT enable this unless you understand what it does
    14  * Warning: DO NOT enable this unless you understand what it does
    10  *
    15  *
    11  * If enabled, in a network game all randoms will be dumped to the
    16  * If enabled, in a network game all randoms will be dumped to the
    93 {
    98 {
    94 	r = Random();
    99 	r = Random();
    95 	return Chance16I(a, b, r);
   100 	return Chance16I(a, b, r);
    96 }
   101 }
    97 
   102 
       
   103 extern uint32 _random_seeds[2][2];
       
   104 
    98 #endif /* RANDOM_FUNC_HPP */
   105 #endif /* RANDOM_FUNC_HPP */