mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
removed streflop from map editor
This commit is contained in:
@@ -12,8 +12,7 @@
|
|||||||
|
|
||||||
#include "map.h"
|
#include "map.h"
|
||||||
|
|
||||||
//#include <cmath>
|
#include <cmath>
|
||||||
#include "math_wrapper.h"
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
using namespace Shared::Util;
|
using namespace Shared::Util;
|
||||||
@@ -77,11 +76,7 @@ static int get_dist(int delta_x, int delta_y) {
|
|||||||
float dx = delta_x;
|
float dx = delta_x;
|
||||||
float dy = delta_y;
|
float dy = delta_y;
|
||||||
|
|
||||||
#ifdef USE_STREFLOP
|
|
||||||
return static_cast<int>(streflop::sqrtf(dx * dx + dy * dy));
|
|
||||||
#else
|
|
||||||
return static_cast<int>(sqrtf(dx * dx + dy * dy));
|
return static_cast<int>(sqrtf(dx * dx + dy * dy));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Map::glestChangeHeight(int x, int y, int height, int radius) {
|
void Map::glestChangeHeight(int x, int y, int height, int radius) {
|
||||||
|
Reference in New Issue
Block a user