From 125e1c53dcfe587440a0529e9813464975f016c2 Mon Sep 17 00:00:00 2001 From: williame Date: Sat, 30 Nov 2013 21:44:53 +0100 Subject: [PATCH] Got the colour conversion wrong in colour picking --- source/shared_lib/sources/graphics/model.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/shared_lib/sources/graphics/model.cpp b/source/shared_lib/sources/graphics/model.cpp index 4da782d16..fdc14c76f 100644 --- a/source/shared_lib/sources/graphics/model.cpp +++ b/source/shared_lib/sources/graphics/model.cpp @@ -1846,9 +1846,9 @@ void BaseColorPickEntity::assign_color() { // we expand it to true-color for use with OpenGL const int - r = (nextColorID >> 11) & ((1<<6)-1), - b = (nextColorID >> 5) & ((1<<7)-1), - g = nextColorID & ((1<<6)-1); + r = (nextColorID >> 11) & ((1<<5)-1), + g = (nextColorID >> 5) & ((1<<6)-1), + b = nextColorID & ((1<<5)-1); uniqueColorID[0] = r << 3; uniqueColorID[1] = g << 2;