refactor entity key values routines

This commit is contained in:
Garux
2021-01-30 16:23:31 +03:00
parent 8425ce3c3e
commit 99a5ef0416
23 changed files with 264 additions and 359 deletions

View File

@@ -295,7 +295,7 @@ void CalcVis( void ){
/* ydnar: rr2do2's farplane code */
const char *value;
if( ENT_READKV( &value, &entities[ 0 ], "_farplanedist", /* proper '_' prefixed key */
if( entities[ 0 ].read_keyvalue( value, "_farplanedist", /* proper '_' prefixed key */
"fogclip", /* wolf compatibility */
"distancecull" ) ){ /* sof2 compatibility */
farPlaneDist = atof( value );