From 704f6f8415fe9ab617acaec184e0e3f72fa2cbd2 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 10 Mar 2013 19:35:59 +0000 Subject: [PATCH] map check: linear rather than quadratic git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7342 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/tools.cpp b/source/src/tools.cpp index e5bc197d..0a02819e 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -127,7 +127,8 @@ mapstats *loadmapstats(const char *filename, bool getlayout) } if ( type != SOLID && diff > 6 ) { - if (diff > MAXMHEIGHT) SHhits += pow2(diff-MAXMHEIGHT)*n; + // Lucas (10mar2013): Removed "pow2" because it was too strict + if (diff > MAXMHEIGHT) SHhits += /*pow2*/(diff-MAXMHEIGHT)*n; Marea += n; Mvolume += diff * n; }