mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -236,10 +236,10 @@ public:
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.name = row[4] ? row[4] : "";
|
||||
entry.pos_y = atof(row[5]);
|
||||
entry.pos_x = atof(row[6]);
|
||||
entry.pos_z = atof(row[7]);
|
||||
entry.heading = atof(row[8]);
|
||||
entry.pos_y = static_cast<float>(atof(row[5]));
|
||||
entry.pos_x = static_cast<float>(atof(row[6]));
|
||||
entry.pos_z = static_cast<float>(atof(row[7]));
|
||||
entry.heading = static_cast<float>(atof(row[8]));
|
||||
entry.opentype = atoi(row[9]);
|
||||
entry.guild = atoi(row[10]);
|
||||
entry.lockpick = atoi(row[11]);
|
||||
@@ -252,14 +252,14 @@ public:
|
||||
entry.door_param = atoi(row[18]);
|
||||
entry.dest_zone = row[19] ? row[19] : "";
|
||||
entry.dest_instance = atoi(row[20]);
|
||||
entry.dest_x = atof(row[21]);
|
||||
entry.dest_y = atof(row[22]);
|
||||
entry.dest_z = atof(row[23]);
|
||||
entry.dest_heading = atof(row[24]);
|
||||
entry.dest_x = static_cast<float>(atof(row[21]));
|
||||
entry.dest_y = static_cast<float>(atof(row[22]));
|
||||
entry.dest_z = static_cast<float>(atof(row[23]));
|
||||
entry.dest_heading = static_cast<float>(atof(row[24]));
|
||||
entry.invert_state = atoi(row[25]);
|
||||
entry.incline = atoi(row[26]);
|
||||
entry.size = atoi(row[27]);
|
||||
entry.buffer = atof(row[28]);
|
||||
entry.buffer = static_cast<float>(atof(row[28]));
|
||||
entry.client_version_mask = atoi(row[29]);
|
||||
entry.is_ldon_door = atoi(row[30]);
|
||||
entry.min_expansion = atoi(row[31]);
|
||||
@@ -481,10 +481,10 @@ public:
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.name = row[4] ? row[4] : "";
|
||||
entry.pos_y = atof(row[5]);
|
||||
entry.pos_x = atof(row[6]);
|
||||
entry.pos_z = atof(row[7]);
|
||||
entry.heading = atof(row[8]);
|
||||
entry.pos_y = static_cast<float>(atof(row[5]));
|
||||
entry.pos_x = static_cast<float>(atof(row[6]));
|
||||
entry.pos_z = static_cast<float>(atof(row[7]));
|
||||
entry.heading = static_cast<float>(atof(row[8]));
|
||||
entry.opentype = atoi(row[9]);
|
||||
entry.guild = atoi(row[10]);
|
||||
entry.lockpick = atoi(row[11]);
|
||||
@@ -497,14 +497,14 @@ public:
|
||||
entry.door_param = atoi(row[18]);
|
||||
entry.dest_zone = row[19] ? row[19] : "";
|
||||
entry.dest_instance = atoi(row[20]);
|
||||
entry.dest_x = atof(row[21]);
|
||||
entry.dest_y = atof(row[22]);
|
||||
entry.dest_z = atof(row[23]);
|
||||
entry.dest_heading = atof(row[24]);
|
||||
entry.dest_x = static_cast<float>(atof(row[21]));
|
||||
entry.dest_y = static_cast<float>(atof(row[22]));
|
||||
entry.dest_z = static_cast<float>(atof(row[23]));
|
||||
entry.dest_heading = static_cast<float>(atof(row[24]));
|
||||
entry.invert_state = atoi(row[25]);
|
||||
entry.incline = atoi(row[26]);
|
||||
entry.size = atoi(row[27]);
|
||||
entry.buffer = atof(row[28]);
|
||||
entry.buffer = static_cast<float>(atof(row[28]));
|
||||
entry.client_version_mask = atoi(row[29]);
|
||||
entry.is_ldon_door = atoi(row[30]);
|
||||
entry.min_expansion = atoi(row[31]);
|
||||
@@ -539,10 +539,10 @@ public:
|
||||
entry.zone = row[2] ? row[2] : "";
|
||||
entry.version = atoi(row[3]);
|
||||
entry.name = row[4] ? row[4] : "";
|
||||
entry.pos_y = atof(row[5]);
|
||||
entry.pos_x = atof(row[6]);
|
||||
entry.pos_z = atof(row[7]);
|
||||
entry.heading = atof(row[8]);
|
||||
entry.pos_y = static_cast<float>(atof(row[5]));
|
||||
entry.pos_x = static_cast<float>(atof(row[6]));
|
||||
entry.pos_z = static_cast<float>(atof(row[7]));
|
||||
entry.heading = static_cast<float>(atof(row[8]));
|
||||
entry.opentype = atoi(row[9]);
|
||||
entry.guild = atoi(row[10]);
|
||||
entry.lockpick = atoi(row[11]);
|
||||
@@ -555,14 +555,14 @@ public:
|
||||
entry.door_param = atoi(row[18]);
|
||||
entry.dest_zone = row[19] ? row[19] : "";
|
||||
entry.dest_instance = atoi(row[20]);
|
||||
entry.dest_x = atof(row[21]);
|
||||
entry.dest_y = atof(row[22]);
|
||||
entry.dest_z = atof(row[23]);
|
||||
entry.dest_heading = atof(row[24]);
|
||||
entry.dest_x = static_cast<float>(atof(row[21]));
|
||||
entry.dest_y = static_cast<float>(atof(row[22]));
|
||||
entry.dest_z = static_cast<float>(atof(row[23]));
|
||||
entry.dest_heading = static_cast<float>(atof(row[24]));
|
||||
entry.invert_state = atoi(row[25]);
|
||||
entry.incline = atoi(row[26]);
|
||||
entry.size = atoi(row[27]);
|
||||
entry.buffer = atof(row[28]);
|
||||
entry.buffer = static_cast<float>(atof(row[28]));
|
||||
entry.client_version_mask = atoi(row[29]);
|
||||
entry.is_ldon_door = atoi(row[30]);
|
||||
entry.min_expansion = atoi(row[31]);
|
||||
|
||||
Reference in New Issue
Block a user