]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_crosshairs.c
added newmap function to render modules (so explosions and other things are reset...
[xonotic/darkplaces.git] / r_crosshairs.c
index c6a2b81c681ddb172aa4a4fc7de91674d64dacdd..ef7e5c648b200875f319c49551ec7057fc50bd4d 100644 (file)
@@ -121,13 +121,17 @@ void r_crosshairs_shutdown()
 {
 }
 
+void r_crosshairs_newmap()
+{
+}
+
 void R_Crosshairs_Init()
 {
        Cvar_RegisterVariable(&crosshair_brightness);
        Cvar_RegisterVariable(&crosshair_alpha);
        Cvar_RegisterVariable(&crosshair_flashspeed);
        Cvar_RegisterVariable(&crosshair_flashrange);
-       R_RegisterModule("R_Crosshairs", r_crosshairs_start, r_crosshairs_shutdown);
+       R_RegisterModule("R_Crosshairs", r_crosshairs_start, r_crosshairs_shutdown, r_crosshairs_newmap);
 }
 
 void DrawCrosshair(int num)