mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 06:01:38 +00:00
Static cast floats in atof usages where the datatype is actually float to avoid windows compiler warnings
This commit is contained in:
@@ -1067,10 +1067,10 @@ public:
|
||||
entry.persistdeath = atoi(row[224]);
|
||||
entry.field225 = atoi(row[225]);
|
||||
entry.field226 = atoi(row[226]);
|
||||
entry.min_dist = atof(row[227]);
|
||||
entry.min_dist_mod = atof(row[228]);
|
||||
entry.max_dist = atof(row[229]);
|
||||
entry.max_dist_mod = atof(row[230]);
|
||||
entry.min_dist = static_cast<float>(atof(row[227]));
|
||||
entry.min_dist_mod = static_cast<float>(atof(row[228]));
|
||||
entry.max_dist = static_cast<float>(atof(row[229]));
|
||||
entry.max_dist_mod = static_cast<float>(atof(row[230]));
|
||||
entry.min_range = atoi(row[231]);
|
||||
entry.field232 = atoi(row[232]);
|
||||
entry.field233 = atoi(row[233]);
|
||||
@@ -2127,10 +2127,10 @@ public:
|
||||
entry.persistdeath = atoi(row[224]);
|
||||
entry.field225 = atoi(row[225]);
|
||||
entry.field226 = atoi(row[226]);
|
||||
entry.min_dist = atof(row[227]);
|
||||
entry.min_dist_mod = atof(row[228]);
|
||||
entry.max_dist = atof(row[229]);
|
||||
entry.max_dist_mod = atof(row[230]);
|
||||
entry.min_dist = static_cast<float>(atof(row[227]));
|
||||
entry.min_dist_mod = static_cast<float>(atof(row[228]));
|
||||
entry.max_dist = static_cast<float>(atof(row[229]));
|
||||
entry.max_dist_mod = static_cast<float>(atof(row[230]));
|
||||
entry.min_range = atoi(row[231]);
|
||||
entry.field232 = atoi(row[232]);
|
||||
entry.field233 = atoi(row[233]);
|
||||
@@ -2388,10 +2388,10 @@ public:
|
||||
entry.persistdeath = atoi(row[224]);
|
||||
entry.field225 = atoi(row[225]);
|
||||
entry.field226 = atoi(row[226]);
|
||||
entry.min_dist = atof(row[227]);
|
||||
entry.min_dist_mod = atof(row[228]);
|
||||
entry.max_dist = atof(row[229]);
|
||||
entry.max_dist_mod = atof(row[230]);
|
||||
entry.min_dist = static_cast<float>(atof(row[227]));
|
||||
entry.min_dist_mod = static_cast<float>(atof(row[228]));
|
||||
entry.max_dist = static_cast<float>(atof(row[229]));
|
||||
entry.max_dist_mod = static_cast<float>(atof(row[230]));
|
||||
entry.min_range = atoi(row[231]);
|
||||
entry.field232 = atoi(row[232]);
|
||||
entry.field233 = atoi(row[233]);
|
||||
|
||||
Reference in New Issue
Block a user