Added support for drawing effects again.
[supertux.git] / src / vector.h
index 21f4a6a..699a4cc 100644 (file)
@@ -46,6 +46,11 @@ public:
     return Vector(x / s, y / s);
   }
 
+  Vector operator-() const
+  {
+    return Vector(-x, -y);
+  }
+
   const Vector& operator +=(const Vector& other)
   {
     x += other.x;