1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Merge branch 'develop' of https://github.com/vcmi/vcmi into develop

This commit is contained in:
DjWarmonger
2014-05-18 08:52:23 +02:00

View File

@ -1955,8 +1955,7 @@ BFieldType CGameState::battleGetBattlefieldType(int3 tile)
for(auto &obj : map->objects) for(auto &obj : map->objects)
{ {
//look only for objects covering given tile //look only for objects covering given tile
if( !obj || obj->pos.z != tile.z if( !obj || obj->pos.z != tile.z || !obj->coveringAt(tile.x, tile.y))
|| !obj->coveringAt(tile.x - obj->pos.x, tile.y - obj->pos.y))
continue; continue;
switch(obj->ID) switch(obj->ID)