diff options
Diffstat (limited to 'edit.cpp')
-rw-r--r-- | edit.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |