mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 09:28:21 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -172,9 +172,9 @@ public:
|
||||
entry.zone = row[1] ? row[1] : "";
|
||||
entry.name = row[2] ? row[2] : "";
|
||||
entry.ui = row[3] ? row[3] : "";
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.x = static_cast<float>(atof(row[4]));
|
||||
entry.y = static_cast<float>(atof(row[5]));
|
||||
entry.z = static_cast<float>(atof(row[6]));
|
||||
entry.type = row[7] ? row[7] : "";
|
||||
entry.flag = atoi(row[8]);
|
||||
entry.target = row[9] ? row[9] : "";
|
||||
@@ -333,9 +333,9 @@ public:
|
||||
entry.zone = row[1] ? row[1] : "";
|
||||
entry.name = row[2] ? row[2] : "";
|
||||
entry.ui = row[3] ? row[3] : "";
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.x = static_cast<float>(atof(row[4]));
|
||||
entry.y = static_cast<float>(atof(row[5]));
|
||||
entry.z = static_cast<float>(atof(row[6]));
|
||||
entry.type = row[7] ? row[7] : "";
|
||||
entry.flag = atoi(row[8]);
|
||||
entry.target = row[9] ? row[9] : "";
|
||||
@@ -370,9 +370,9 @@ public:
|
||||
entry.zone = row[1] ? row[1] : "";
|
||||
entry.name = row[2] ? row[2] : "";
|
||||
entry.ui = row[3] ? row[3] : "";
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.x = static_cast<float>(atof(row[4]));
|
||||
entry.y = static_cast<float>(atof(row[5]));
|
||||
entry.z = static_cast<float>(atof(row[6]));
|
||||
entry.type = row[7] ? row[7] : "";
|
||||
entry.flag = atoi(row[8]);
|
||||
entry.target = row[9] ? row[9] : "";
|
||||
|
||||
Reference in New Issue
Block a user