fixed buildings will not be drawn when crossing map edges .

close #90
This commit is contained in:
Zero Fanker 2024-09-30 19:48:45 -04:00
parent 34a09e9aca
commit 462cd5bf77
2 changed files with 16 additions and 2 deletions

View file

@ -307,7 +307,10 @@ public:
}
INT GetStructureAt(DWORD dwPos) const
{
if (fielddata[dwPos].structure > -1) return fielddata[dwPos].structure; return -1;
if (fielddata[dwPos].structure > -1) {
return fielddata[dwPos].structure;
}
return -1;
}
INT GetStructureAt(MapCoords pos) const
{