summaryrefslogtreecommitdiffstats
path: root/Room.h
diff options
context:
space:
mode:
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) {