Skip to content

Commit

Permalink
Editor api renamed WorldZoom to GetWorldZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Aug 27, 2023
1 parent b9f20cc commit 3b83717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/editor/chillerbot/chillereditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void CChillerEditor::DoMapEditor()
float dist = distance(
vec2(m_TextIndexX, m_TextIndexY),
vec2((m_pEditor->MapView()->GetWorldOffset().x + m_pEditor->MapView()->GetEditorOffset().x) / 32, (m_pEditor->MapView()->GetWorldOffset().y + m_pEditor->MapView()->GetEditorOffset().y) / 32));
dist /= m_pEditor->MapView()->WorldZoom();
dist /= m_pEditor->MapView()->GetWorldZoom();
if(dist > 10.0f)
{
m_pEditor->MapView()->SetWorldOffset(vec2(
Expand Down

0 comments on commit 3b83717

Please sign in to comment.