summaryrefslogtreecommitdiffstats
path: root/ToolAddPolygon.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-12-25 04:27:03 +0100
committerneoraider <devnull@localhost>2007-12-25 04:27:03 +0100
commit052641637bd20ffde6ddb8919888e2af987bafff (patch)
treea3ad75e2271fd95337a9768df5fe452e2a63b0ce /ToolAddPolygon.cpp
parent953a6ff48ac6c46a0d81bedb0fbdafe5d637666e (diff)
downloadzoomedit-052641637bd20ffde6ddb8919888e2af987bafff.tar
zoomedit-052641637bd20ffde6ddb8919888e2af987bafff.zip
zoomedit: Added rectangular room tool.
Diffstat (limited to 'ToolAddPolygon.cpp')
-rw-r--r--ToolAddPolygon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ToolAddPolygon.cpp b/ToolAddPolygon.cpp
index 184d107..0ef7225 100644
--- a/ToolAddPolygon.cpp
+++ b/ToolAddPolygon.cpp
@@ -36,7 +36,7 @@ void ToolAddPolygon::render(const Level &level, const Rectangle &rect, float sca
drawPolygon(newRoom, false);
if(!newRoom.empty() && editManager->getHoveredVertex()) {
- if(!editManager->vertexOk(newRoom, *editManager->getHoveredVertex()))
+ if(!editManager->vertexOk(*editManager->getHoveredVertex(), &newRoom))
glColor4f(1.0f, 0.3f, 0.3f, 0.7f);
glBegin(GL_LINES);
@@ -55,7 +55,7 @@ bool ToolAddPolygon::buttonPress(unsigned int button) {
if(!editManager->getHoveredVertex())
return false;
- if(!editManager->vertexOk(newRoom, *editManager->getHoveredVertex()))
+ if(!editManager->vertexOk(*editManager->getHoveredVertex(), &newRoom))
return false;
newRoom.push_back(*editManager->getHoveredVertex());