Commit graph

13 commits

Author SHA1 Message Date
Kp 9a451a9168 Pass cvar_registervariable cvar by & 2015-06-07 16:20:47 +00:00
Kp 4c778ed26b Add const to cmd prototype 2015-06-07 16:20:47 +00:00
Kp 2be3ce1f01 Use std::string for cvar string 2015-06-07 16:20:46 +00:00
Kp 1115114e3d Remove unnecessary old-style const stripping cast
This cast was necessary only because cvar_set_cvar was not properly
const.
2015-06-07 16:20:46 +00:00
Kp 204b7d7cb7 Remove dangerous const-removing constructor
Fortunately, this constructor was unnecessary.  If it had ever been
used, later code could d_free() read-only storage.
2015-06-07 16:20:46 +00:00
Kp 3718678576 Reduce cvar.h includes 2015-06-07 16:20:46 +00:00
Bradley Bell 1c2746ae45 Make constructor and overloads for cvar_t 2015-02-23 23:31:41 -08:00
Bradley Bell 44dace6a49 Make cvar names const 2015-02-23 23:31:40 -08:00
Bradley Bell eaf11884e2 simplify struct declaration 2015-02-23 23:31:40 -08:00
Bradley Bell 45d31b6d57 Replace cvar.archive with flags.
Add cheat flag.
2015-02-23 20:44:20 -08:00
Bradley Bell a838e08431 use hash for cvar list 2015-02-22 13:29:07 -08:00
Bradley Bell 0191bf451f miscellaneous fixes 2015-02-17 02:27:15 -08:00
Bradley Bell bbb32d0175 added cmd and cvar modules from d2x 2015-02-10 23:35:44 -08:00