]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't show editlights cursor position when not in editlights mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Aug 2004 21:29:47 +0000 (21:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Aug 2004 21:29:47 +0000 (21:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4326 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 8d2e49f33748342cb2fbfa48c5f3c26c4ae8f5fb..a209709ec1cacc82f7cdbc268dedf1c4d6d0b3a4 100644 (file)
@@ -3230,6 +3230,8 @@ void R_Shadow_EditLights_DrawSelectedLightProperties(void)
 {
        float x, y;
        char temp[256];
+       if (!r_editlights.integer)
+               return;
        x = 0;
        y = con_vislines;
        sprintf(temp, "Cursor  %f %f %f", r_editlights_cursorlocation[0], r_editlights_cursorlocation[1], r_editlights_cursorlocation[2]);DrawQ_String(x, y, temp, 0, 8, 8, 1, 1, 1, 1, 0);y += 8;