- marked as minor
Not build construction if walkers on building area commit
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)
-
reporter -
repo owner хм, а можно повторить на русском??? я не очень понял суть
-
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.
Или вы можете просто построить на вершине пешеходов
-
repo owner - changed status to resolved
fix
#148. Add dinamic update building area for tiles with walker→ <<cset 99acbd4639bd>>
- Log in to comment