revert most doubles back to float and truncate at 6 decimals

This commit is contained in:
Mark Vejvoda
2013-10-03 00:17:51 +00:00
parent 0eeb526e27
commit 9e60723296
22 changed files with 202 additions and 191 deletions

View File

@@ -43,7 +43,7 @@ public:
void init(int seed);
int randRange(int min, int max,std::string lastCaller="");
double randRange(double min, double max,std::string lastCaller="");
float randRange(float min, float max,std::string lastCaller="");
int getLastNumber() const { return lastNumber; }
void setLastNumber(int value) { lastNumber = value; }

View File

@@ -231,10 +231,10 @@ void copyStringToBuffer(char *buffer, int bufferSize, const string& s);
//numeric fcs
int clamp(int value, int min, int max);
double clamp(double value, double min, double max);
float clamp(float value, float min, float max);
int64 clamp(int64 value, int64 min, int64 max);
double saturate(double value);
int round(double f);
float saturate(float value);
int round(float f);
//misc
bool checkVersionComptability(string clientVersionString, string serverVersionString);