From 83e0c8f6a1e5b9125ca6172728b13905b68df2f5 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Aug 2004 21:29:47 +0000 Subject: [PATCH] don't show editlights cursor position when not in editlights mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4326 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r_shadow.c b/r_shadow.c index 8d2e49f3..a209709e 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -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; -- 2.39.2