bug fixes/enhancements: findsens, scripts, "gospectate", clean up and bug fix update 1.1.0.2 (do not revert this)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5600 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -419,10 +419,15 @@ void fixresizedscreen()
|
||||
#endif
|
||||
}
|
||||
|
||||
FVARP(fov, 75, 90, 120);
|
||||
VARP(scopefov, 5, 50, 60);
|
||||
float scopesensfunc = 0.4663077f
|
||||
void scopefunc();
|
||||
FVARFP(fov, 75, 90, 120, scopefunc());
|
||||
VARFP(scopefov, 5, 50, 60, scopefunc());
|
||||
VARP(spectfov, 5, 110, 120);
|
||||
|
||||
void scopefunc()
|
||||
{
|
||||
scopesensfunc = tan(((float)scopefov)*0.5f*RAD)/tan(fov*0.5f*RAD);
|
||||
}
|
||||
|
||||
// map old fov values to new ones
|
||||
void fovcompat(int oldfov)
|
||||
|
||||
Reference in New Issue
Block a user