mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -178,10 +178,10 @@ public:
|
||||
entry.spawngroupID = atoi(row[1]);
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.heading = atof(row[7]);
|
||||
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.heading = static_cast<float>(atof(row[7]));
|
||||
entry.respawntime = atoi(row[8]);
|
||||
entry.variance = atoi(row[9]);
|
||||
entry.pathgrid = atoi(row[10]);
|
||||
@@ -347,10 +347,10 @@ public:
|
||||
entry.spawngroupID = atoi(row[1]);
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.heading = atof(row[7]);
|
||||
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.heading = static_cast<float>(atof(row[7]));
|
||||
entry.respawntime = atoi(row[8]);
|
||||
entry.variance = atoi(row[9]);
|
||||
entry.pathgrid = atoi(row[10]);
|
||||
@@ -386,10 +386,10 @@ public:
|
||||
entry.spawngroupID = atoi(row[1]);
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.x = atof(row[4]);
|
||||
entry.y = atof(row[5]);
|
||||
entry.z = atof(row[6]);
|
||||
entry.heading = atof(row[7]);
|
||||
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.heading = static_cast<float>(atof(row[7]));
|
||||
entry.respawntime = atoi(row[8]);
|
||||
entry.variance = atoi(row[9]);
|
||||
entry.pathgrid = atoi(row[10]);
|
||||
|
||||
Reference in New Issue
Block a user