mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-23 04:18:41 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user