diff options
Diffstat (limited to 'Room.h')
-rw-r--r-- | Room.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |