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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user