mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 10:54:01 +02:00
Fixed re-joining lag issue by skipping lag checks, Resource multiplier can now go up to 5.0, Network slots now remain open even if not filled immediately
This commit is contained in:
@@ -171,19 +171,19 @@ namespace Shared {
|
||||
return (str[0] != '\0' ? str : "");
|
||||
}
|
||||
|
||||
string floatToStr(float f, int precsion) {
|
||||
string floatToStr(float f, int precision) {
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
char str[strSize] = "";
|
||||
snprintf(str, strSize - 1, "%.*f", precsion, f);
|
||||
snprintf(str, strSize - 1, "%.*f", precision, f);
|
||||
return (str[0] != '\0' ? str : "");
|
||||
}
|
||||
|
||||
string doubleToStr(double d, int precsion) {
|
||||
string doubleToStr(double d, int precision) {
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
char str[strSize] = "";
|
||||
snprintf(str, strSize - 1, "%.*f", precsion, d);
|
||||
snprintf(str, strSize - 1, "%.*f", precision, d);
|
||||
return (str[0] != '\0' ? str : "");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user