Not build construction if walkers on building area commit

Issue #148 resolved
ramMASTER created an issue

it's blocking the tiles the walkers are in and the ones northwest (-1,-1) of them.

from source/gfx/layerbuild.cpp:

  • bool walkersOnTile = !_city()->getWalkers( walker::any, pos, pos + TilePos( size.width(), size.height() ) ).empty(); +
  • if( !walkersOnTile && overlay->canBuild( _city(), pos, d->buildTiles ) )

problem might have to do with that "size", also there's a double negative for walkersOnTile.

i never liked walkers blocking the contruction, seems aestetic over function.

Comments (4)

  1. dalerank repo owner

    хм, а можно повторить на русском??? я не очень понял суть

  2. ramMASTER reporter

    ходоки блокируют плитки северо-западу от своей позиции.

    from source/gfx/layerbuild.cpp: bool walkersOnTile = !_city()->getWalkers( walker::any, pos, pos + TilePos( size.width(), size.height() ) ).empty(); + if( !walkersOnTile && overlay->canBuild( _city(), pos, d->buildTiles ) )

    Проблема, возможно, придется делать с этой "size", также есть двойное отрицание для walkersOnTile.

    Или вы можете просто построить на вершине пешеходов

  3. Log in to comment