mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
- fixed mod center image previews in cases where userdata folder was non default
- removed commented out old code
This commit is contained in:
@@ -32,34 +32,15 @@ const int RandomGen::a= 1366;
|
||||
const int RandomGen::b= 150889;
|
||||
|
||||
RandomGen::RandomGen(){
|
||||
|
||||
//#ifdef USE_STREFLOP
|
||||
// lastNumber = streflop::RandomInit(0); // streflop
|
||||
//#else
|
||||
lastNumber= 0;
|
||||
//#endif
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] lastNumber = %d\n",__FILE__,__FUNCTION__,__LINE__,lastNumber);
|
||||
}
|
||||
|
||||
void RandomGen::init(int seed){
|
||||
|
||||
//#ifdef USE_STREFLOP
|
||||
// lastNumber = streflop::RandomInit(seed); // streflop
|
||||
//#else
|
||||
lastNumber= seed % m;
|
||||
//#endif
|
||||
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] seed = %d, lastNumber = %d\n",__FILE__,__FUNCTION__,__LINE__,seed,lastNumber);
|
||||
}
|
||||
|
||||
int RandomGen::rand(string lastCaller) {
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] lastNumber = %d\n",__FILE__,__FUNCTION__,__LINE__,lastNumber);
|
||||
|
||||
this->lastNumber = (a*lastNumber + b) % m;
|
||||
//this->lastCaller.push_back(lastCaller);
|
||||
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] lastNumber = %d\n",__FILE__,__FUNCTION__,__LINE__,lastNumber);
|
||||
|
||||
return lastNumber;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user