Kevin Shanahan
f569b16c0e
draw: add argument completion for gl_texturemode command
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:20:36 +10:30
Kevin Shanahan
d4bf311515
build: add -Wwrite-strings warning to default build
...
Should now build cleanly enough that this becomes useful to monitor
for incorrect interface usage or definitions.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:08:48 +10:30
Kevin Shanahan
6d016f3a72
server: constify ucmd_t strings and fix whitespace
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:07:51 +10:30
Kevin Shanahan
48727e0b4e
server: constify format string for OutOfBandPrint
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:07:12 +10:30
Kevin Shanahan
605f3dd5d4
server: trivial const correctness fix
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:06:51 +10:30
Kevin Shanahan
91fcb9f48f
server: constify SV_CheckModel and make static
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 15:06:24 +10:30
Kevin Shanahan
f696acfe6c
draw: gl_draw const correctness fixes
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:58:50 +10:30
Kevin Shanahan
a8c87cd2e0
server: constify qwsv string interfaces
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:58:19 +10:30
Kevin Shanahan
725e244599
sbar: constify Sbar_DrawString and make static
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:57:18 +10:30
Kevin Shanahan
5cfc68ee97
progs: constify pr_opnames
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:45:34 +10:30
Kevin Shanahan
2383fae7ac
common: constify basedir parm and remove cachedir
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:45:16 +10:30
Kevin Shanahan
81de4e67fc
net: char * const correction
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:44:19 +10:30
Kevin Shanahan
83bf26b81c
menu: char * const corrections
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:39:26 +10:30
Kevin Shanahan
0d36840690
menu: remove unused declaration of M_CachePic
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:35:18 +10:30
Kevin Shanahan
48272947c5
net: constify StrAddr debugging function
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:33:04 +10:30
Kevin Shanahan
676bfedd0c
draw: constify Draw_ConbackString
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:32:12 +10:30
Kevin Shanahan
782e6a7745
cvar: constify cvar_null_string
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:31:43 +10:30
Kevin Shanahan
cb5e04de37
client: constify CL_EstablishConnection
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:31:16 +10:30
Kevin Shanahan
144dcb7ff8
net: constify NET_Connect interface
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:30:26 +10:30
Kevin Shanahan
11cdcce576
client: constify svc_strings (and make static)
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:19:18 +10:30
Kevin Shanahan
19fa56e63e
cvar: constify cvar name and string values
...
They should not be modified in-place once assigned.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:14:19 +10:30
Kevin Shanahan
5027aef015
server: tidy up SV_Status_f
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 07:41:55 +10:30
Kevin Shanahan
83a33111a6
net: constify returned string on NET_AdrToString
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 07:27:17 +10:30
Kevin Shanahan
2a2ff45c26
progs: check buffer size in PF_infokey
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 07:23:26 +10:30
Kevin Shanahan
119f1dcfa5
progs: move pr_cmds.c to the common directory
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 07:10:16 +10:30
Kevin Shanahan
67a2b5bed2
progs: merge differences between pr_cmds.c files
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 07:09:19 +10:30
Kevin Shanahan
eabed8ea13
progs: constify PF_VarString
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:44:12 +10:30
Kevin Shanahan
2ef3dbb7d1
progs: copy NQ buffer checks to QW PF_VarString
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:42:04 +10:30
Kevin Shanahan
73fca333a3
progs: constify PF_{Get,Set}String
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:39:01 +10:30
Kevin Shanahan
41eec1ad99
server: constify model/sound precache and lightstyles on QW server_t
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:27:38 +10:30
Kevin Shanahan
1bb4df0827
server: constify ClientReliableWrite_String
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 19:25:37 +10:30
Kevin Shanahan
168351707b
progs: constify string arguments to various pr_edict.c functions
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 18:55:43 +10:30
Kevin Shanahan
5392549d65
server: constify lightstyles in server_t
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 18:48:51 +10:30
Kevin Shanahan
abda855dc1
server: constify SV_ModelIndex arg
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 17:18:49 +10:30
Kevin Shanahan
54e3e5d733
server: constify model/sound precache strings in server_t
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 17:14:27 +10:30
Kevin Shanahan
10e07cc08b
cvar: constify Cvar_{Set,Variable}Value
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 17:07:35 +10:30
Kevin Shanahan
ff86701895
zone: constify Z_Realloc
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:59:25 +10:30
Kevin Shanahan
674da3b6c1
server: constify SV_StartSound sample argument
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:53:02 +10:30
Kevin Shanahan
33d933d806
progs: trivial sprintf -> snprintf conversions
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:24:50 +10:30
Kevin Shanahan
35c41da3be
mesh: trivial sprintf -> snprintf conversion
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:23:08 +10:30
Kevin Shanahan
aa89ef294f
cvar: trivial sprintf -> snprintf conversion
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-21 16:22:52 +10:30
Kevin Shanahan
1e822c0205
trivial: whitespace
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 16:03:23 +10:30
Kevin Shanahan
92a4a672a5
zone: use sizeof(hunk_t) in Hunk_Check
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 16:03:10 +10:30
Kevin Shanahan
a5391971d2
zone: improve hunk print output
...
A few improvements to the output of the hunk print command:
* Proper alignment for 32/64 bit pointers
* Collapse width down if not printing pointers
* Use the full HUNK_NAMELEN for strings (it was the intention before,
but I was still null terminating them in Hunk_AllocName)
* Align hunk size to 10 digits (would be surprised if someone
allocated 1GB, but >99MB is definitely not unreasonable with some
maps/mods being produced right now.
(NOTE: possible "heisenbug" hidden in here as I did get a crash that
seemed to co-incide with issuing "hunk printall", but was not able to
reproduce with debugging enabled nor under gdb. The code seems
sound...)
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 15:48:02 +10:30
Kevin Shanahan
ce26399a6c
zone: align hunk print output for different pointer sizes
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:42:21 +10:30
Kevin Shanahan
5d07ad55b3
model: align mcache output for different pointer sizes
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:41:13 +10:30
Kevin Shanahan
83331acd73
zone: make a bit more space for cache object names
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:33:35 +10:30
Kevin Shanahan
a22a350287
zone: add cache command to print or flush the cache
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:33:10 +10:30
Kevin Shanahan
967e95897b
trivial: remove debugging printf in Hunk_Print
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:32:25 +10:30
Kevin Shanahan
83af3728d7
common: use block CRC for NQ pak check as well
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-20 14:30:52 +10:30