generated from sigonasr2/CPlusPlusProjectTemplate
Fix less precise grid snapping.
This commit is contained in:
parent
84268e139e
commit
e14ef84422
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user