View Single Post
Downtown1
Veteran Member
Join Date: Mar 2004
Old 11-16-2004 , 20:13  
Reply With Quote #5

Cool, I must've missed this page.. well since HL2 is still preloading, I have nothing better to do but look at it!

Code:
if ( my_variable.GetInt() == 42 ) DoSomething();
if ( my_variable.GetFloat() == 42.0f ) DoSomething();
if ( strcmp(my_variable.GetString(), "42")==0 ) DoSomething();
Makes you wonder why they didn't just overload the == operator to use with ints, doubles, and chars
Downtown1 is offline