Fix getArea

The code didn't call `this.isCircularMap` but checks if it's defined.
The function returned the wrong values for square maps.

Broken in 480228f964

Comments by: @Stan
Differential Revision: https://code.wildfiregames.com/D5288
This was SVN commit r28122.
This commit is contained in:
phosit 2024-06-23 17:17:46 +00:00
parent 9af1433995
commit e8908dfee8

View File

@ -140,7 +140,7 @@ RandomMap.prototype.getSize = function()
RandomMap.prototype.getArea = function(size = this.size)
{
return this.isCircularMap ? diskArea(size / 2) : size * size;
return this.isCircularMap() ? diskArea(size / 2) : size * size;
};
/**