summaryrefslogtreecommitdiffstats
path: root/source/Vector3i.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Vector3i.h')
-rw-r--r--source/Vector3i.h1
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