Bug 3431 - USERINFO cvars created in cg_main not getting sent
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2007-11-16 15:52 EST by Tim Angus
Modified: 2007-11-22 19:33:32 EST
0 users

See Also:



Description Tim Angus 2007-11-16 15:52:34 EST
<arq> k
 <arq> if you create a userinfo var in cg_main, which is, let's face it, where 99% of them SHOULD be getting created, it doesn't work
 <arq> because userinfo's already been sent, and it isn't a change to an EXISTING userinfo cvar
 <arq> cvar_t* Cvar_Get( const char *var_name, const char *var_value, int flags )
 <arq> needs
 <arq>  cvar_modifiedFlags |= flags; // needed so USERINFO cvars created by cgame actually get sent
 <arq> after  var->flags = flags;
 <arq> at the end
 <Timbo> ok
 <arq> it's always baffled me why there's SO much id-cgame-specific shit hacked into the engine
 <arq> that's why  :)
Comment 1 Tim Angus 2007-11-22 19:33:32 EST
Fixed in r1216.