mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-24 02:11:20 +00:00
Fix a handful of compiler warnings.
This commit is contained in:
parent
a851e037c8
commit
5938d4e49f
3 changed files with 7 additions and 11 deletions
|
@ -272,7 +272,7 @@ void _pico_first_token( char *str ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (*str && !isspace(*str))
|
while (*str && !isspace(*str))
|
||||||
*str++;
|
str++;
|
||||||
*str = '\0';
|
*str = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
#include "filters.h"
|
#include "filters.h"
|
||||||
|
|
||||||
extern MainFrame* g_pParentWnd;
|
extern MainFrame* g_pParentWnd;
|
||||||
extern void MemFile_fprintf( MemStream* pMemFile, const char* pText, ... );
|
|
||||||
|
|
||||||
// globals
|
// globals
|
||||||
|
|
||||||
|
@ -130,7 +129,6 @@ float lightaxis[3] = {0.6f, 0.8f, 1.0f};
|
||||||
improve recognition
|
improve recognition
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
extern float ShadeForNormal( vec3_t normal );
|
|
||||||
|
|
||||||
float SetShadeForPlane( plane_t *p ){
|
float SetShadeForPlane( plane_t *p ){
|
||||||
//return ShadeForNormal(p->normal);
|
//return ShadeForNormal(p->normal);
|
||||||
|
@ -2292,7 +2290,7 @@ face_t *Brush_Ray( vec3_t origin, vec3_t dir, brush_t *b, float *dist, int nFlag
|
||||||
// see Brush_Draw
|
// see Brush_Draw
|
||||||
|
|
||||||
// do some last minute filtering
|
// do some last minute filtering
|
||||||
if ( firstface && nFlags & SF_CAMERA ) {
|
if ( firstface && ( nFlags & SF_CAMERA ) ) {
|
||||||
if ( g_qeglobals.d_savedinfo.exclude & EXCLUDE_CAULK ) {
|
if ( g_qeglobals.d_savedinfo.exclude & EXCLUDE_CAULK ) {
|
||||||
if ( strstr( firstface->texdef.GetName(), "caulk" ) ) {
|
if ( strstr( firstface->texdef.GetName(), "caulk" ) ) {
|
||||||
*dist = 0;
|
*dist = 0;
|
||||||
|
@ -3060,7 +3058,7 @@ void Brush_FaceDraw( face_t *face, int nGLState ){
|
||||||
if ( w == NULL ) {
|
if ( w == NULL ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( nGLState & DRAW_GL_LIGHTING && g_PrefsDlg.m_bGLLighting ) {
|
if ( ( nGLState & DRAW_GL_LIGHTING ) && g_PrefsDlg.m_bGLLighting ) {
|
||||||
qglNormal3fv( face->plane.normal );
|
qglNormal3fv( face->plane.normal );
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
@ -3137,7 +3135,7 @@ void Brush_Draw( brush_t *b ){
|
||||||
if ( bTrans && !( nGLState & DRAW_GL_BLEND ) ) {
|
if ( bTrans && !( nGLState & DRAW_GL_BLEND ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( !bTrans && nGLState & DRAW_GL_BLEND ) {
|
if ( !bTrans && ( nGLState & DRAW_GL_BLEND ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3163,17 +3161,17 @@ void Brush_Draw( brush_t *b ){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( nGLState & DRAW_GL_TEXTURE_2D && face->d_texture->name[0] == '(' ) {
|
if ( ( nGLState & DRAW_GL_TEXTURE_2D ) && face->d_texture->name[0] == '(' ) {
|
||||||
prev = NULL;
|
prev = NULL;
|
||||||
qglDisable( GL_TEXTURE_2D );
|
qglDisable( GL_TEXTURE_2D );
|
||||||
}
|
}
|
||||||
else if ( nGLState & DRAW_GL_TEXTURE_2D && ( nDrawMode == cd_texture || nDrawMode == cd_light ) && face->d_texture != prev ) {
|
else if ( ( nGLState & DRAW_GL_TEXTURE_2D ) && ( nDrawMode == cd_texture || nDrawMode == cd_light ) && face->d_texture != prev ) {
|
||||||
// set the texture for this face
|
// set the texture for this face
|
||||||
prev = face->d_texture;
|
prev = face->d_texture;
|
||||||
qglBindTexture( GL_TEXTURE_2D, face->d_texture->texture_number );
|
qglBindTexture( GL_TEXTURE_2D, face->d_texture->texture_number );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( nGLState & DRAW_GL_LIGHTING && !g_PrefsDlg.m_bGLLighting ) {
|
if ( ( nGLState & DRAW_GL_LIGHTING ) && !g_PrefsDlg.m_bGLLighting ) {
|
||||||
if ( !b->owner->eclass->fixedsize ) {
|
if ( !b->owner->eclass->fixedsize ) {
|
||||||
material[3] = transVal;
|
material[3] = transVal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#include "qbsp.h"
|
#include "qbsp.h"
|
||||||
|
|
||||||
extern qboolean onlyents;
|
|
||||||
|
|
||||||
int nummapbrushes;
|
int nummapbrushes;
|
||||||
mapbrush_t mapbrushes[MAX_MAP_BRUSHES];
|
mapbrush_t mapbrushes[MAX_MAP_BRUSHES];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue