Disable AR crosshair increasing during spectating

Because shots in a row are calculated only for local player.
This commit is contained in:
aurhat
2017-09-11 23:49:31 +02:00
parent 803517e2ef
commit a8a7987b8f
+1 -1
View File
@@ -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);