From a8a7987b8fa6bd9b4b83f4cf8359ffd839085460 Mon Sep 17 00:00:00 2001 From: aurhat Date: Sun, 10 Sep 2017 22:58:59 +0200 Subject: [PATCH] Disable AR crosshair increasing during spectating Because shots in a row are calculated only for local player. --- source/src/renderhud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index 56d48617..dd52aa16 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -233,7 +233,7 @@ void drawcrosshair(playerent *p, int n, color *c, float size) } } float s = size>0 ? size : (float)crosshairsize; - float chsize = s * ((p->weaponsel->type==GUN_ASSAULT && p->weaponsel->shots > 3) && (crosshairfx==1 || crosshairfx==3) ? 1.4f : 1.0f) * (n==CROSSHAIR_TEAMMATE ? 2.0f : 1.0f); + float chsize = s * ((p == player1 && p->weaponsel->type==GUN_ASSAULT && p->weaponsel->shots > 3) && (crosshairfx==1 || crosshairfx==3) ? 1.4f : 1.0f) * (n==CROSSHAIR_TEAMMATE ? 2.0f : 1.0f); glBegin(GL_TRIANGLE_STRIP); glTexCoord2f(0, 0); glVertex2f(VIRTW/2 - chsize, VIRTH/2 - chsize); glTexCoord2f(1, 0); glVertex2f(VIRTW/2 + chsize, VIRTH/2 - chsize);