summaryrefslogtreecommitdiffstats
path: root/edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'edit.cpp')
-rw-r--r--edit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/edit.cpp b/edit.cpp
index c54f308..0936379 100644
--- a/edit.cpp
+++ b/edit.cpp
@@ -9,7 +9,7 @@ static int editMode = EDIT_MODE_VIEW;
static ROOM *activeRoom = NULL;
static ROOM *hoveredRoom = NULL;
-static VERTEX hoveredVertex;
+static Vertex hoveredVertex;
static int hasHoveredVertex = 0;
int getEditMode() {
@@ -31,12 +31,12 @@ void setActiveRoom(ROOM *room) {
}
}
-VERTEX *getHoveredVertex() {
+Vertex *getHoveredVertex() {
if(hasHoveredVertex) return &hoveredVertex;
else return NULL;
}
-void setHoveredVertex(VERTEX *v) {
+void setHoveredVertex(Vertex *v) {
int i;
LEVEL *l;
@@ -49,8 +49,8 @@ void setHoveredVertex(VERTEX *v) {
for(i = 0; i < l->nRooms; i++) {
if(vertexInPolygon(v, &l->rooms[i].polygon)) {
- hoveredRoom = &l->rooms[i];
- break;
+ //hoveredRoom = &l->rooms[i];
+ //break;
}
}
}
@@ -106,7 +106,7 @@ static int isLineOk(LINE *l) {
return 1;
}
-int isVertexOk(VERTEX *v) {
+int isVertexOk(Vertex *v) {
LEVEL *lvl = getLevel();
LINE l;
int i;