From: havoc Date: Fri, 6 May 2005 06:09:33 +0000 (+0000) Subject: removed a clear of names in the render modules init code, this allows it to be called... X-Git-Tag: xonotic-v0.1.0preview~4948 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f8b424e28290c817a8602275f738362a1a4cdc1c;p=xonotic%2Fdarkplaces.git removed a clear of names in the render modules init code, this allows it to be called AFTER some modules are registered (for a minor cleanup of the Host_Init code) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5231 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_modules.c b/r_modules.c index 0899b880..fc0186a3 100644 --- a/r_modules.c +++ b/r_modules.c @@ -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))