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:
mathusummut
2018-12-10 02:17:28 +01:00
parent 4ee1352d4b
commit 19fe3e6b52
17 changed files with 68 additions and 82 deletions

View File

@@ -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 : "");
}