X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fentitylib.h;h=667adf7267cb8ad2360d360ee224822e25891ec5;hp=2612ac2bd9f553e86f1b69da8fb39fa70a243b62;hb=71271751d15243b8ff39aadab226448229e0a670;hpb=fa0fce3cfabc1193202d990dd468bb84867b2275 diff --git a/libs/entitylib.h b/libs/entitylib.h index 2612ac2b..667adf72 100644 --- a/libs/entitylib.h +++ b/libs/entitylib.h @@ -104,11 +104,12 @@ inline void aabb_testselect(const AABB& aabb, SelectionTest& test, SelectionInte inline void aabb_draw_wire(const Vector3 points[8]) { - unsigned int indices[32] = { + unsigned int indices[26] = { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7, - 0, 6, 1, 7, 2, 4, 3, 5 // X cross + // 0, 6, 1, 7, 2, 4, 3, 5 // X cross + 1, 7 // diagonal line (connect mins to maxs corner) }; #if 1 glVertexPointer(3, GL_FLOAT, 0, points);