Raised This Month: $ Target: $400
 0% 

sm_cvar's sourcecode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
J-Factor
Junior Member
Join Date: Jul 2009
Old 07-07-2009 , 07:46   Re: sm_cvar's sourcecode
Reply With Quote #6

Quote:
Originally Posted by Greyscale View Post
Code:
cvarflags |= ~FCVAR_NOTIFY;  // To be honest, I'm not sure if this is right, can someone verify?  I suck with bitwise operations.
It should be:

Code:
cvarflags &= ~FCVAR_NOTIFY;
If you want to turn something on, use an OR mask (|=).

If you want to turn something off, use an AND mask (&=).
J-Factor is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode