diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-20 20:50:50 +0300 |
commit | 4b19b15936faa8e1d5f331cc11147ccfc360bde7 (patch) | |
tree | e601b548c0c55a7e434b30cfff328ca5e3662bee /src/map.cpp | |
parent | 042c4f09e34157522692d6f99f5c51bc04e8f27a (diff) | |
download | manaverse-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.gz manaverse-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.bz2 manaverse-4b19b15936faa8e1d5f331cc11147ccfc360bde7.tar.xz manaverse-4b19b15936faa8e1d5f331cc11147ccfc360bde7.zip |
improve a bit code speed.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index df49b2eb9..07d28b164 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -892,7 +892,7 @@ Path Map::findPath(const int startX, const int startY, // The basic walking cost of a tile. static const int basicCost = 100; const int basicCost2 = 100 * 362 / 256; - const float basicCostF = 100 * 362 / 256; + const float basicCostF = 100.0 * 362 / 256; // Path to be built up (empty by default) Path path; |