]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_modules.c
attempting to make darkplaces able to compile as 32bit on 64bit host systems (by...
[xonotic/darkplaces.git] / r_modules.c
index f9ce9508d018376c41d89b0c4a1d741e7252dcfc..fc0186a3e852e50fe4b71a8992fa9bb5785dc30e 100644 (file)
@@ -17,10 +17,7 @@ rendermodule_t rendermodule[MAXRENDERMODULES];
 
 void R_Modules_Init(void)
 {
-       int i;
        Cmd_AddCommand("r_restart", R_Modules_Restart);
-       for (i = 0;i < MAXRENDERMODULES;i++)
-               rendermodule[i].name = NULL;
 }
 
 void R_RegisterModule(char *name, void(*start)(void), void(*shutdown)(void), void(*newmap)(void))
@@ -73,7 +70,7 @@ void R_Modules_Shutdown(void)
 
 void R_Modules_Restart(void)
 {
-       Con_Printf("restarting renderer\n");
+       Con_Print("restarting renderer\n");
        R_Modules_Shutdown();
        R_Modules_Start();
 }
@@ -90,3 +87,4 @@ void R_Modules_NewMap(void)
                rendermodule[i].newmap();
        }
 }
+