summaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/tr_bsp.c4
-rw-r--r--src/renderer/tr_scene.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/renderer/tr_bsp.c b/src/renderer/tr_bsp.c
index 563bb36..059f9b9 100644
--- a/src/renderer/tr_bsp.c
+++ b/src/renderer/tr_bsp.c
@@ -264,6 +264,8 @@ static void R_LoadVisibility( lump_t *l ) {
//===============================================================================
+#define LL(x) x=LittleLong(x)
+
/*
===============
ShaderForShaderNum
@@ -273,7 +275,7 @@ static shader_t *ShaderForShaderNum( int shaderNum, int lightmapNum ) {
shader_t *shader;
dshader_t *dsh;
- shaderNum = LittleLong( shaderNum );
+ LL( shaderNum );
if ( shaderNum < 0 || shaderNum >= s_worldData.numShaders ) {
ri.Error( ERR_DROP, "ShaderForShaderNum: bad num %i", shaderNum );
}
diff --git a/src/renderer/tr_scene.c b/src/renderer/tr_scene.c
index 232cb68..973d4ac 100644
--- a/src/renderer/tr_scene.c
+++ b/src/renderer/tr_scene.c
@@ -220,7 +220,7 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) {
}
return;
}
- if ( ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) {
+ if ( (int)ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) {
ri.Error( ERR_DROP, "RE_AddRefEntityToScene: bad reType %i", ent->reType );
}