diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-04-04 20:45:13 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-04-04 20:45:13 +0000 |
commit | 22fd6efeeb7ee918e0d1ffb75f6292077ce27816 (patch) | |
tree | 7b355fc4aa8a7c63aac93af54fb229f678ef552c /source/sv_ents.c | |
parent | 7ec50f12252b4dfb97f3249ccf05a771b98785c1 (diff) |
Added support for drawing colored text via `draw' client command.
Cvar_Get now resets user defined cvar values for read-only cvars.
Sever and game DLL features are now advertised via cvars instead of exports.
Diffstat (limited to 'source/sv_ents.c')
-rw-r--r-- | source/sv_ents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/sv_ents.c b/source/sv_ents.c index 327dae2..a01ac40 100644 --- a/source/sv_ents.c +++ b/source/sv_ents.c @@ -375,7 +375,7 @@ void SV_BuildClientFrame( client_t *client ) { frame->ps = *ps; // grab the current clientNum - if( gameFeatures & GAME_FEATURE_CLIENTNUM ) { + if( g_features->integer & GMF_CLIENTNUM ) { frame->clientNum = clent->client->clientNum; } else { frame->clientNum = client->number; @@ -392,7 +392,7 @@ void SV_BuildClientFrame( client_t *client ) { ent = EDICT_POOL( client, e ); // ignore entities not in use - if( ( gameFeatures & GAME_FEATURE_PROPERINUSE ) && !ent->inuse ) { + if( ( g_features->integer & GMF_PROPERINUSE ) && !ent->inuse ) { continue; } @@ -467,7 +467,7 @@ void SV_BuildClientFrame( client_t *client ) { // XXX: hide this enitity from renderer if( ( client->protocol != PROTOCOL_VERSION_Q2PRO || client->settings[CLS_RECORDING] ) && - ( gameFeatures & GAME_FEATURE_CLIENTNUM ) && + ( g_features->integer & GMF_CLIENTNUM ) && e == frame->clientNum + 1 && ent != clent ) { state->modelindex = 0; |