summaryrefslogtreecommitdiffstats
path: root/EditManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'EditManager.cpp')
-rw-r--r--EditManager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/EditManager.cpp b/EditManager.cpp
index 0656939..bae061d 100644
--- a/EditManager.cpp
+++ b/EditManager.cpp
@@ -38,8 +38,8 @@ EditManager::EditManager(Window *window) {
hasHoveredVertex = false;
}
-void EditManager::update() {
- window->update();
+void EditManager::redraw() {
+ window->redraw();
}
void EditManager::addRoom() {
@@ -92,8 +92,10 @@ void EditManager::setHoveredVertex(Vertex *v) {
for(Level::iterator object = window->getLevel().begin(); object != window->getLevel().end(); object++) {
if((*object)->hit(*v)) {
+ if(hoveredObject && (*object)->getPriority() < hoveredObject->getPriority())
+ continue;
+
hoveredObject = &**object;
- break;
}
}
}