summary refs log tree commit diff stats
path: root/tools/mapedit/src/widget.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 00:07:38 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-16 00:07:38 -0400
commit54eee8e0a79898825b39749b38134f4369ccd3ab (patch)
treef6354dcc33e50b93d2bd157de2be21404ed7bf61 /tools/mapedit/src/widget.cpp
parent213cab3c04b81428ab715f340bd7c12438fdb980 (diff)
downloadtherapy-54eee8e0a79898825b39749b38134f4369ccd3ab.tar.gz
therapy-54eee8e0a79898825b39749b38134f4369ccd3ab.tar.bz2
therapy-54eee8e0a79898825b39749b38134f4369ccd3ab.zip
Adjusted how resizing the map editor works
Also added an informative label for the entity manager that currently lies
Diffstat (limited to 'tools/mapedit/src/widget.cpp')
-rw-r--r--tools/mapedit/src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mapedit/src/widget.cpp b/tools/mapedit/src/widget.cpp index ba3b6a5..a78caae 100644 --- a/tools/mapedit/src/widget.cpp +++ b/tools/mapedit/src/widget.cpp
@@ -139,7 +139,7 @@ void MapeditWidget::OnClick(wxMouseEvent& event)
139 139
140 int x = (event.GetPosition().x + vX) / scale - (addingEntity->getWidth() / 2); 140 int x = (event.GetPosition().x + vX) / scale - (addingEntity->getWidth() / 2);
141 int y = (event.GetPosition().y + vY) / scale - (addingEntity->getHeight() / 2); 141 int y = (event.GetPosition().y + vY) / scale - (addingEntity->getHeight() / 2);
142 printf("%d,%d\n",x,y); 142
143 MapObjectEntry data; 143 MapObjectEntry data;
144 data.object = addingEntity; 144 data.object = addingEntity;
145 data.position = std::make_pair(x,y); 145 data.position = std::make_pair(x,y);