File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44namespace OpenSHC {
55namespace Random {
66
7- // FUNCTION: STRONGHOLDCRUSADER 0x0046a800
7+ // FUNCTION: STRONGHOLDCRUSADER 0x0046A800
88 void RNG::nextRandomNumber1 ()
99 {
1010 this ->currentNumber1 = this ->randomNumbers [this ->index1 ];
1111 this ->index1 += 1 ;
12- if (sizeof ( this -> randomNumbers ) / sizeof ( this -> randomNumbers [ 0 ]) <= this ->index1 ) {
12+ if (20000 <= this ->index1 ) {
1313 this ->index1 = 0 ;
1414 }
1515 }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Random {
99 {
1010 this ->currentNumber2 = this ->randomNumbers [this ->index2 ];
1111 this ->index2 = this ->index2 + 1 ;
12- if (sizeof ( this -> randomNumbers ) / sizeof ( this -> randomNumbers [ 0 ]) <= this ->index2 ) {
12+ if (20000 <= this ->index2 ) {
1313 this ->index2 = 0 ;
1414 }
1515 return ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace Random {
1414 MACRO_CALL (OpenSHC::Global_Func::SetRNGSeed)(this ->seed );
1515 this ->index2 = 0 ;
1616 this ->index1 = 0 ;
17- for (int i = 0 ; i < sizeof ( this -> randomNumbers ) / sizeof ( this -> randomNumbers [ 0 ]) ; i++) {
17+ for (int i = 0 ; i < 20000 ; i++) {
1818 this ->randomNumbers [i] = MACRO_CALL (OpenSHC::OS_Func::_rand)();
1919 }
2020
Original file line number Diff line number Diff line change 66namespace OpenSHC {
77namespace Random {
88
9- // FUNCTION: STRONGHOLDCRUSADER 0x0046a740
9+ // FUNCTION: STRONGHOLDCRUSADER 0x0046A740
1010 void RNG::setTimeBasedSeed ()
1111
1212 {
You can’t perform that action at this time.
0 commit comments