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
This commit is contained in:
Lucas GAUTHERON
2013-03-10 19:35:59 +00:00
parent 55bc2f0f5c
commit 704f6f8415
+2 -1
View File
@@ -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;
}