summaryrefslogtreecommitdiffstats
path: root/Room.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2008-02-09 13:21:00 +0100
committerneoraider <devnull@localhost>2008-02-09 13:21:00 +0100
commit16397f4474fbbe5f140a5e68b3bb6934170bf2e3 (patch)
tree78fe6e556228bb95d28d68d38d51faa77d95f132 /Room.h
parentacb1721e94a49a4941bb11dfc2f832c3848aa204 (diff)
downloadzoomedit-16397f4474fbbe5f140a5e68b3bb6934170bf2e3.tar
zoomedit-16397f4474fbbe5f140a5e68b3bb6934170bf2e3.zip
zoomedit: Make vertices visible.
Diffstat (limited to 'Room.h')
-rw-r--r--Room.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Room.h b/Room.h
index 1cac5d9..c9f5dcb 100644
--- a/Room.h
+++ b/Room.h
@@ -30,10 +30,10 @@ class Room : public Polygon, public LevelObject {
}
virtual void move(float x, float y) {
- for(iterator v = begin(); v != end(); v++) {
- v->setX(v->getX()+x);
- v->setY(v->getY()+y);
- }
+ Vertex m(x, y);
+
+ for(iterator v = begin(); v != end(); v++)
+ *v += m;
}
virtual void rotate(float a) {