diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-14 14:37:13 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-14 14:37:13 +0100 |
commit | 9f38c219e2851324b8b2694315abed4d3138fca2 (patch) | |
tree | 6114c3a98299274030561cab343b35e2dabb78c8 /source/Vector3i.h | |
parent | Fixing build for linux using GNUmakefile (explicitly removed LeakFinder and StackWalker) (diff) | |
download | cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.gz cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.bz2 cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.lz cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.xz cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.tar.zst cuberite-9f38c219e2851324b8b2694315abed4d3138fca2.zip |
Diffstat (limited to 'source/Vector3i.h')
-rw-r--r-- | source/Vector3i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/Vector3i.h b/source/Vector3i.h index 676e7ba21..7fbd74b5a 100644 --- a/source/Vector3i.h +++ b/source/Vector3i.h @@ -32,6 +32,7 @@ public: //tolua_export friend Vector3i operator * ( const Vector3i& v, const int f ) { return Vector3i( v.x * f, v.y * f, v.z * f ); }
friend Vector3i operator * ( const Vector3i& v1, const Vector3i& v2 ) { return Vector3i( v1.x * v2.x, v1.y * v2.y, v1.z * v2.z ); }
friend Vector3i operator * ( const int f, const Vector3i& v ) { return Vector3i( v.x * f, v.y * f, v.z * f ); }
+ friend bool operator < ( const Vector3i& v1, const Vector3i& v2 ) { return (v1.x<v2.x)||(v1.x==v2.x && v1.y<v2.y)||(v1.x==v2.x && v1.y == v2.y && v1.z<v2.z); }
int x, y, z; //tolua_export
}; //tolua_export
\ No newline at end of file |