only color detail brush if it's not part of an entity

This commit is contained in:
Josh Steffen 2015-01-15 15:54:54 -05:00
parent a1fd52a8c2
commit c55e260114

View file

@ -2851,16 +2851,15 @@ void XYWnd::XY_Draw(){
if ( brush->owner != e && brush->owner ) { if ( brush->owner != e && brush->owner ) {
qglColor3fv( brush->owner->eclass->color ); qglColor3fv( brush->owner->eclass->color );
} }
else if ( brush->brush_faces->texdef.contents & CONTENTS_DETAIL )
{
qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_DETAIL] );
}
else else
{ {
qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_BRUSHES] ); qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_BRUSHES] );
} }
//Color detail brushes differently
if ( brush->brush_faces->texdef.contents & CONTENTS_DETAIL ) {
qglColor3fv( g_qeglobals.d_savedinfo.colors[COLOR_DETAIL] );
}
#ifdef DBG_SCENEDUMP #ifdef DBG_SCENEDUMP
if ( bDump ) { if ( bDump ) {
Sys_FPrintf( SYS_WRN, "Active brush: %p ", brush ); Sys_FPrintf( SYS_WRN, "Active brush: %p ", brush );