From: havoc Date: Mon, 9 Aug 2004 21:29:47 +0000 (+0000) Subject: don't show editlights cursor position when not in editlights mode X-Git-Tag: xonotic-v0.1.0preview~5750 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=83e0c8f6a1e5b9125ca6172728b13905b68df2f5;p=xonotic%2Fdarkplaces.git 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 --- 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;