diff options
author | neoraider <devnull@localhost> | 2008-02-09 13:21:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-09 13:21:00 +0100 |
commit | 16397f4474fbbe5f140a5e68b3bb6934170bf2e3 (patch) | |
tree | 78fe6e556228bb95d28d68d38d51faa77d95f132 /Room.h | |
parent | acb1721e94a49a4941bb11dfc2f832c3848aa204 (diff) | |
download | zoomedit-16397f4474fbbe5f140a5e68b3bb6934170bf2e3.tar zoomedit-16397f4474fbbe5f140a5e68b3bb6934170bf2e3.zip |
zoomedit: Make vertices visible.
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) { |