Skip to content

Commit f109f04

Browse files
committed
Apply half-step alignment if LSHIFT pressed
1 parent b341aad commit f109f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/editor/gui/view_map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,11 @@ const std::vector<int>* CViewMap::GetMemorizedZoneData(const CAssetPath& AssetPa
908908

909909
void CViewMap::CCursorTool::ApplyGridAlignment(vec2 *pPoint, const vec2 &Offset) const
910910
{
911-
if(m_pViewMap->GetGridAlign())
911+
bool HalfStepAlignment = Input()->KeyIsPressed(KEY_LSHIFT);
912+
if(m_pViewMap->GetGridAlign() || HalfStepAlignment)
912913
{
913914
vec2 AlignedPoint = *pPoint;
914915
AlignedPoint -= Offset;
915-
bool HalfStepAlignment = Input()->KeyIsPressed(KEY_LSHIFT);
916916
AlignedPoint = m_pViewMap->MapRenderer()->MapPosToTilePos(AlignedPoint);
917917
int Factor = 1;
918918
if(HalfStepAlignment)

0 commit comments

Comments
 (0)