Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings

This commit is contained in:
Akkadius
2020-07-12 17:25:50 -05:00
parent 758a30a080
commit 6a7a78af29
26 changed files with 418 additions and 409 deletions
@@ -152,7 +152,7 @@ public:
entry.multiplier = atoi(row[2]);
entry.droplimit = atoi(row[3]);
entry.mindrop = atoi(row[4]);
entry.probability = atof(row[5]);
entry.probability = static_cast<float>(atof(row[5]));
return entry;
}
@@ -288,7 +288,7 @@ public:
entry.multiplier = atoi(row[2]);
entry.droplimit = atoi(row[3]);
entry.mindrop = atoi(row[4]);
entry.probability = atof(row[5]);
entry.probability = static_cast<float>(atof(row[5]));
all_entries.push_back(entry);
}
@@ -318,7 +318,7 @@ public:
entry.multiplier = atoi(row[2]);
entry.droplimit = atoi(row[3]);
entry.mindrop = atoi(row[4]);
entry.probability = atof(row[5]);
entry.probability = static_cast<float>(atof(row[5]));
all_entries.push_back(entry);
}