X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fentitylib.h;h=667adf7267cb8ad2360d360ee224822e25891ec5;hb=bca4840507fc1d66a34d7c253b146a08d49e02c0;hp=6602357b8f4663bde0ce0608192b3d9e75d6ebb5;hpb=4947520bd1f085aab8e197e8a51d94b9e444f4da;p=xonotic%2Fnetradiant.git diff --git a/libs/entitylib.h b/libs/entitylib.h index 6602357b..667adf72 100644 --- a/libs/entitylib.h +++ b/libs/entitylib.h @@ -104,10 +104,12 @@ inline void aabb_testselect(const AABB& aabb, SelectionTest& test, SelectionInte inline void aabb_draw_wire(const Vector3 points[8]) { - unsigned int indices[24] = { + 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 + 1, 7 // diagonal line (connect mins to maxs corner) }; #if 1 glVertexPointer(3, GL_FLOAT, 0, points);