Browse Source

Fix typo in CanPlaceRandomObject

pull/4728/head
Vladimir Olteanu 4 years ago committed by Anders Jenbo
parent
commit
6f4fe8a142
  1. 2
      Source/objects.cpp

2
Source/objects.cpp

@ -368,7 +368,7 @@ void InitRndLocBigObj(int min, int max, _object_id objtype)
bool CanPlaceRandomObject(Point position, Displacement standoff)
{
for (int yy = -standoff.deltaY; yy <= standoff.deltaX; yy++) {
for (int yy = -standoff.deltaY; yy <= standoff.deltaY; yy++) {
for (int xx = -standoff.deltaX; xx <= standoff.deltaX; xx++) {
Point tile = position + Displacement { xx, yy };
if (!RndLocOk(tile.x, tile.y))

Loading…
Cancel
Save