MCPcopy Create free account
hub / github.com/assaultcube/AC / fovchanged

Function fovchanged

source/src/rendergl.cpp:473–479  ·  view source on GitHub ↗

use spectfov or remote player's fov when spectating

Source from the content-addressed store, hash-verified

471VARP(spectfov, 5, 110, 120);
472VARP(spectfovremote, 0, 0, 1); // use spectfov or remote player's fov when spectating
473void fovchanged()
474{
475 extern float autoscopesensscale;
476 autoscopesensscale = tan(((float)scopefov)*0.5f*RAD)/tan(fov*0.5f*RAD);
477 player1->ffov = (int)fov;
478 player1->scopefov = scopefov;
479}
480
481float dynfov()
482{

Callers 1

rendergl.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected