Fix less precise grid snapping.

This commit is contained in:
sigonasr2 2024-03-14 17:13:55 -05:00
parent 84268e139e
commit e14ef84422

View File

@ -106,7 +106,7 @@ public:
if(GetKey(CTRL).bHeld){
return vf2d{round(worldCoords.x),round(worldCoords.y)};
}
return vf2d{round(worldCoords.x/tileset.tilewidth)*tileset.tilewidth,round(worldCoords.y/tileset.tileheight)*tileset.tileheight};
return vf2d{round(worldCoords.x/(tileset.tilewidth/4))*tileset.tilewidth/4,round(worldCoords.y/(tileset.tileheight/4))*tileset.tileheight/4};
};
if(EditingQuad){