actually zoom the scope while spectating

to show off the new highres pos angles :)
This commit is contained in:
ac-stef
2017-06-27 15:15:25 +02:00
parent 0b44cf1c9c
commit 9231b9f0aa
+3 -1
View File
@@ -477,7 +477,9 @@ void fovchanged()
float dynfov()
{
if(player1->weaponsel->type == GUN_SNIPER && ((sniperrifle *)player1->weaponsel)->scoped) return (float)scopefov;
bool isscoped = player1->weaponsel->type == GUN_SNIPER && ((sniperrifle *)player1->weaponsel)->scoped;
if(camera1 != player1 && camera1->type < ENT_CAMERA) isscoped = ((playerent *)camera1)->scoping;
if(isscoped) return (float)scopefov;
else if(player1->isspectating()) return (float)spectfov;
else return (float)fov;
}