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
@@ -171,11 +171,11 @@ public:
entry.id = atoi(row[0]);
entry.name = row[1] ? row[1] : "";
entry.spawn_limit = atoi(row[2]);
entry.dist = atof(row[3]);
entry.max_x = atof(row[4]);
entry.min_x = atof(row[5]);
entry.max_y = atof(row[6]);
entry.min_y = atof(row[7]);
entry.dist = static_cast<float>(atof(row[3]));
entry.max_x = static_cast<float>(atof(row[4]));
entry.min_x = static_cast<float>(atof(row[5]));
entry.max_y = static_cast<float>(atof(row[6]));
entry.min_y = static_cast<float>(atof(row[7]));
entry.delay = atoi(row[8]);
entry.mindelay = atoi(row[9]);
entry.despawn = atoi(row[10]);
@@ -332,11 +332,11 @@ public:
entry.id = atoi(row[0]);
entry.name = row[1] ? row[1] : "";
entry.spawn_limit = atoi(row[2]);
entry.dist = atof(row[3]);
entry.max_x = atof(row[4]);
entry.min_x = atof(row[5]);
entry.max_y = atof(row[6]);
entry.min_y = atof(row[7]);
entry.dist = static_cast<float>(atof(row[3]));
entry.max_x = static_cast<float>(atof(row[4]));
entry.min_x = static_cast<float>(atof(row[5]));
entry.max_y = static_cast<float>(atof(row[6]));
entry.min_y = static_cast<float>(atof(row[7]));
entry.delay = atoi(row[8]);
entry.mindelay = atoi(row[9]);
entry.despawn = atoi(row[10]);
@@ -369,11 +369,11 @@ public:
entry.id = atoi(row[0]);
entry.name = row[1] ? row[1] : "";
entry.spawn_limit = atoi(row[2]);
entry.dist = atof(row[3]);
entry.max_x = atof(row[4]);
entry.min_x = atof(row[5]);
entry.max_y = atof(row[6]);
entry.min_y = atof(row[7]);
entry.dist = static_cast<float>(atof(row[3]));
entry.max_x = static_cast<float>(atof(row[4]));
entry.min_x = static_cast<float>(atof(row[5]));
entry.max_y = static_cast<float>(atof(row[6]));
entry.min_y = static_cast<float>(atof(row[7]));
entry.delay = atoi(row[8]);
entry.mindelay = atoi(row[9]);
entry.despawn = atoi(row[10]);