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:
parent
9af1433995
commit
e8908dfee8
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user