mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -443,10 +443,10 @@ public:
|
||||
entry.suffix = row[5] ? row[5] : "";
|
||||
entry.zone_id = atoi(row[6]);
|
||||
entry.zone_instance = atoi(row[7]);
|
||||
entry.y = atof(row[8]);
|
||||
entry.x = atof(row[9]);
|
||||
entry.z = atof(row[10]);
|
||||
entry.heading = atof(row[11]);
|
||||
entry.y = static_cast<float>(atof(row[8]));
|
||||
entry.x = static_cast<float>(atof(row[9]));
|
||||
entry.z = static_cast<float>(atof(row[10]));
|
||||
entry.heading = static_cast<float>(atof(row[11]));
|
||||
entry.gender = atoi(row[12]);
|
||||
entry.race = atoi(row[13]);
|
||||
entry.class = atoi(row[14]);
|
||||
@@ -960,10 +960,10 @@ public:
|
||||
entry.suffix = row[5] ? row[5] : "";
|
||||
entry.zone_id = atoi(row[6]);
|
||||
entry.zone_instance = atoi(row[7]);
|
||||
entry.y = atof(row[8]);
|
||||
entry.x = atof(row[9]);
|
||||
entry.z = atof(row[10]);
|
||||
entry.heading = atof(row[11]);
|
||||
entry.y = static_cast<float>(atof(row[8]));
|
||||
entry.x = static_cast<float>(atof(row[9]));
|
||||
entry.z = static_cast<float>(atof(row[10]));
|
||||
entry.heading = static_cast<float>(atof(row[11]));
|
||||
entry.gender = atoi(row[12]);
|
||||
entry.race = atoi(row[13]);
|
||||
entry.class = atoi(row[14]);
|
||||
@@ -1086,10 +1086,10 @@ public:
|
||||
entry.suffix = row[5] ? row[5] : "";
|
||||
entry.zone_id = atoi(row[6]);
|
||||
entry.zone_instance = atoi(row[7]);
|
||||
entry.y = atof(row[8]);
|
||||
entry.x = atof(row[9]);
|
||||
entry.z = atof(row[10]);
|
||||
entry.heading = atof(row[11]);
|
||||
entry.y = static_cast<float>(atof(row[8]));
|
||||
entry.x = static_cast<float>(atof(row[9]));
|
||||
entry.z = static_cast<float>(atof(row[10]));
|
||||
entry.heading = static_cast<float>(atof(row[11]));
|
||||
entry.gender = atoi(row[12]);
|
||||
entry.race = atoi(row[13]);
|
||||
entry.class = atoi(row[14]);
|
||||
|
||||
Reference in New Issue
Block a user