X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=gl_rsurf.c;h=d3b941aa04d2d98246487e4b5371bdb3fc166686;hb=d896dc4570e9eea6e50367f9a1c13a8d2a16b865;hp=554fb0fa2cbeccba0ee61346bf42ff791b7d30ad;hpb=10a42a2a078ecd51b32d35a5cc873ed8176f5a07;p=xonotic%2Fdarkplaces.git diff --git a/gl_rsurf.c b/gl_rsurf.c index 554fb0fa..d3b941aa 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -739,7 +739,7 @@ static void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t if (SVBSP_AddPolygon(&r_svbsp, portal->numpoints, points[0], false, NULL, NULL, 0) & 2) break; } - if (portal == NULL) + if (leaf->portals && portal == NULL) return; // no portals of this leaf visible } if (info->svbsp_insertoccluder) @@ -1309,8 +1309,7 @@ void R_ReplaceWorldTexture (void) skinframe_t *skinframe; if (!r_refdef.scene.worldmodel) { - if (gamemode != GAME_BLOODOMNICIDE) - Con_Printf("There is no worldmodel\n"); + Con_Printf("There is no worldmodel\n"); return; } m = r_refdef.scene.worldmodel; @@ -1323,8 +1322,7 @@ void R_ReplaceWorldTexture (void) } if(!cl.islocalgame || !cl.worldmodel) { - if (gamemode != GAME_BLOODOMNICIDE) - Con_Print("This command works only in singleplayer\n"); + Con_Print("This command works only in singleplayer\n"); return; } r = Cmd_Argv(1); @@ -1340,13 +1338,11 @@ void R_ReplaceWorldTexture (void) // t->skinframes[0] = skinframe; t->currentskinframe = skinframe; t->currentskinframe = skinframe; - if (gamemode != GAME_BLOODOMNICIDE) - Con_Printf("%s replaced with %s\n", r, newt); + Con_Printf("%s replaced with %s\n", r, newt); } else { - if (gamemode != GAME_BLOODOMNICIDE) - Con_Printf("%s was not found\n", newt); + Con_Printf("%s was not found\n", newt); return; } }