Skip to content

Commit

Permalink
Fix recalculating BQ around big static objects
Browse files Browse the repository at this point in the history
  • Loading branch information
wichern authored and Flamefire committed Mar 5, 2024
1 parent 12f0c5f commit a994098
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/s25main/lua/LuaWorld.cpp
Expand Up @@ -84,7 +84,10 @@ bool LuaWorld::AddStaticObject(int x, int y, unsigned id, unsigned file /* = 0xF

gw.DestroyNO(pt, false);
gw.SetNO(pt, new noStaticObject(pt, id, file, size));
gw.RecalcBQAroundPoint(pt);
if(size > 1)
gw.RecalcBQAroundPointBig(pt);
else if(size == 1)
gw.RecalcBQAroundPoint(pt);
return true;
}

Expand Down

0 comments on commit a994098

Please sign in to comment.