summaryrefslogtreecommitdiffstats
path: root/Portal.h
diff options
context:
space:
mode:
Diffstat (limited to 'Portal.h')
-rw-r--r--Portal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Portal.h b/Portal.h
index a4cb349..3df4247 100644
--- a/Portal.h
+++ b/Portal.h
@@ -57,8 +57,7 @@ class Portal : public LevelObject {
}
virtual void move(float x, float y) {
- pos.setX(pos.getX()+x);
- pos.setY(pos.getY()+y);
+ pos += Vertex(x, y);
}
virtual void rotate(float a) {