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:
Rafael Barreto
2010-08-11 21:07:48 +00:00
parent f031b44653
commit b01dc4eddc
8 changed files with 264 additions and 210 deletions
+8 -3
View File
@@ -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)