]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
r_replacemaptexture: no printings for GAME_BLOODOMNICIDE
authorvortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Nov 2009 00:31:15 +0000 (00:31 +0000)
committervortex <vortex@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 29 Nov 2009 00:31:15 +0000 (00:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9526 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 12c2fd7fb22852d941720d9ca92f4087893fca89..32e657dc9c245f1d0b1617573e2971ddd2a46dd9 100644 (file)
@@ -1285,7 +1285,8 @@ void R_ReplaceWorldTexture (void)
        skinframe_t *skinframe;
        if (!r_refdef.scene.worldmodel)
        {
-               Con_Printf("There is no worldmodel\n");
+               if (gamemode != GAME_BLOODOMNICIDE)
+                       Con_Printf("There is no worldmodel\n");
                return;
        }
        m = r_refdef.scene.worldmodel;
@@ -1298,7 +1299,8 @@ void R_ReplaceWorldTexture (void)
        }
        if(!cl.islocalgame || !cl.worldmodel)
        {
-               Con_Print("This command works only in singleplayer\n");
+               if (gamemode != GAME_BLOODOMNICIDE)
+                       Con_Print("This command works only in singleplayer\n");
                return;
        }
        r = Cmd_Argv(1);
@@ -1314,11 +1316,13 @@ void R_ReplaceWorldTexture (void)
 //                             t->skinframes[0] = skinframe;
                                t->currentskinframe = skinframe;
                                t->currentskinframe = skinframe;
-                               Con_Printf("%s replaced with %s\n", r, newt);
+                               if (gamemode != GAME_BLOODOMNICIDE)
+                                       Con_Printf("%s replaced with %s\n", r, newt);
                        }
                        else
                        {
-                               Con_Printf("%s was not found\n", newt);
+                               if (gamemode != GAME_BLOODOMNICIDE)
+                                       Con_Printf("%s was not found\n", newt);
                                return;
                        }
                }