diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-19 18:15:54 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-22 12:05:11 +0100 |
commit | 8a4b82e3ed75e426d44b69640f009e1e731c75c4 (patch) | |
tree | 4393fcd7681942561dc0ac988d4762682979328f /src/vector.h | |
parent | c4bdf324d7d464bc7fabbf88e1a6e66701c6e7cb (diff) | |
download | mana-8a4b82e3ed75e426d44b69640f009e1e731c75c4.tar.gz mana-8a4b82e3ed75e426d44b69640f009e1e731c75c4.tar.bz2 mana-8a4b82e3ed75e426d44b69640f009e1e731c75c4.tar.xz mana-8a4b82e3ed75e426d44b69640f009e1e731c75c4.zip |
Prevented looking at item when picking up while moving
+ Fixes from Bjorns review.
Reviewed-by: Bjorn.
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vector.h b/src/vector.h index 3360c20b..c0457bd7 100644 --- a/src/vector.h +++ b/src/vector.h @@ -182,6 +182,11 @@ class Vector float x, y, z; }; +inline bool operator == (const Vector &a, const Vector &b) +{ + return a.x == b.x && a.y == b.y && a.z == b.z; +} + /** * Appends a string representation of a vector to the output stream. */ |