diff options
author | neoraider <devnull@localhost> | 2007-12-25 04:27:03 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-25 04:27:03 +0100 |
commit | 052641637bd20ffde6ddb8919888e2af987bafff (patch) | |
tree | a3ad75e2271fd95337a9768df5fe452e2a63b0ce /ToolAddPolygon.cpp | |
parent | 953a6ff48ac6c46a0d81bedb0fbdafe5d637666e (diff) | |
download | zoomedit-052641637bd20ffde6ddb8919888e2af987bafff.tar zoomedit-052641637bd20ffde6ddb8919888e2af987bafff.zip |
zoomedit: Added rectangular room tool.
Diffstat (limited to 'ToolAddPolygon.cpp')
-rw-r--r-- | ToolAddPolygon.cpp | 4 |
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()); |