* fixed warnings

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@278 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
mattn
2008-06-26 11:40:59 +00:00
parent 6d10428141
commit 99b8049c8c
12 changed files with 50 additions and 48 deletions

View File

@@ -243,7 +243,7 @@ static void DrawLightSphere(entity_t * e, int nGLState, int pref)
const char *target = ValueForKey(e, "target");
bool bIsSpotLight = !!target[0];
//!\todo Write an API for modules to register preference settings, and make this preference module-specific.
int nPasses = pref == 1 ? 3 : 2;
// int nPasses = pref == 1 ? 3 : 2;
g_QglTable.m_pfn_qglPushAttrib(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
g_QglTable.m_pfn_qglDepthMask(GL_FALSE);
@@ -287,7 +287,7 @@ unsigned short indices[24] = { 0, 2, 3, 0, 3, 4, 0, 4, 5, 0, 5, 2,
void DrawLight(entity_t* e, int nGLState, int pref, int nViewType)
{
int i;
// int i;
// top, bottom, tleft, tright, bright, bleft
vec3_t points[6];
vec3_t vMid, vMin, vMax;
@@ -479,7 +479,7 @@ void DrawLight(entity_t* e, int nGLState, int pref, int nViewType)
g_QglTable.m_pfn_qglLineStipple(8, 0xAAAA);
g_QglTable.m_pfn_qglEnable(GL_LINE_STIPPLE);
float* envelope = (pref == 1) ? e->fLightEnvelope1 : e->fLightEnvelope2;
float* envelope = (pref == 1) ? e->fLightEnvelope1 : e->fLightEnvelope2;
for (int iPass = 0; iPass < nPasses; iPass++)
{
float fRadius = envelope[iPass];