projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for drawing effects again.
[supertux.git]
/
src
/
vector.h
diff --git
a/src/vector.h
b/src/vector.h
index
21f4a6a
..
699a4cc
100644
(file)
--- a/
src/vector.h
+++ b/
src/vector.h
@@
-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;