Skip to content
Snippets Groups Projects
Commit 2171958f authored by Hannes Jämtner's avatar Hannes Jämtner
Browse files

Fixed typo

parent ab0e3861
No related branches found
No related tags found
1 merge request!7Uppdaterat API
......@@ -79,7 +79,7 @@ bool BuildingPlacer::canBuildHereWithSpace(int bx, int by, const UnitType & type
// TODO: recalculate start and end positions for addons
// if this rectangle doesn't fit on the map we can't build here
if (startx < 0 || starty < 0 || endx > m_bot.Map().width() || endx < bx + width - xdelta || endy > m_bot.Map().height() || endy < bx + height - ydelta)
if (startx < 0 || starty < 0 || endx > m_bot.Map().width() || endx < bx + width - xdelta || endy > m_bot.Map().height() || endy < by + height - ydelta)
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment