diff options
author | neoraider <devnull@localhost> | 2007-09-16 16:07:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-09-16 16:07:03 +0200 |
commit | 01e98d51fedf65ad71d468c3b0410d6e7764a384 (patch) | |
tree | 3259e2655249865cd335d96cc4b32815a4236532 /edit.cpp | |
parent | 2bdbece75f9dcc9b98d7f9d5794c4b5e5f441b26 (diff) | |
download | zoomedit-01e98d51fedf65ad71d468c3b0410d6e7764a384.tar zoomedit-01e98d51fedf65ad71d468c3b0410d6e7764a384.zip |
zoomedit: C++ized Vertex
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; |