vrheights
diff src/game_var.h @ 11:537db3079134
- setting a variable from the console now sets the same variable in libgoatvr too
- set_gvar_parse now returns the inferred type
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 03 Oct 2014 23:11:23 +0300 |
parents | 0eca023ed909 |
children | cb97ea43709b |
line diff
1.1 --- a/src/game_var.h Fri Oct 03 21:27:58 2014 +0300 1.2 +++ b/src/game_var.h Fri Oct 03 23:11:23 2014 +0300 1.3 @@ -18,7 +18,7 @@ 1.4 void set_gvar_str(const char *name, const char *val); 1.5 void set_gvar_num(const char *name, float val); 1.6 void set_gvar_bool(const char *name, bool val); 1.7 -void set_gvar_parse(const char *name, const char *val); 1.8 +int set_gvar_parse(const char *name, const char *val); 1.9 1.10 GameVariable &get_gvar(const char *name); 1.11 const char *get_gvar_str(const char *name); 1.12 @@ -29,4 +29,4 @@ 1.13 1.14 std::list<std::string> get_gvar_list(); 1.15 1.16 -#endif // GAME_VAR_H_ 1.17 \ No newline at end of file 1.18 +#endif // GAME_VAR_H_