Commit graph

3134 commits

Author SHA1 Message Date
Adam Olsen
634c2c6acf - rename CL_UpdateUserinfo to CL_ParseUpdateUserInfo for uniformness
- rework svc_updateuserinfo/CL_ParseUpdateUserInfo like everything
  else
2001-10-18 07:01:40 +00:00
Adam Olsen
5e4ea0b316 - I've had this sitting around for a while now, might as well add it 2001-10-18 06:37:12 +00:00
Adam Olsen
7d26e6e2b9 - move the svc_print handling into a seperate function (CL_ParsePrint)
- add NET_SVC_{Print,Download}_Parse functions and assosiated
  net_svc_{print,download}_t structs.
- make CL_Parse{Print,Download} use the above stuff
2001-10-18 06:35:28 +00:00
Bill Currie
6c0d760102 msg.h:
give mst_t a buffer to hold unterminated message strings
	kill MSG_ReadStaticString and MSG_ReadStringLine
msg.c:
	kill MSG_ReadStaticString and MSG_ReadStringLine
	MSG_ReadString: implement the buffer for unterminated message strings
	and update readcount on badread
cl_main.c:
	go back to MSG_ReadString and fix up the resulting const char * issues
cl_parse.c:
	rewrite the cl_mofake code all because of an uninitialized variable :)
sv_main.c:
	use MSG_ReadString instead of MSG_ReadStringLine because
	Cmd_TokenizeString really doesn't care about a terminating \n
2001-10-18 06:23:26 +00:00
Adam Olsen
18036b63d9 - change MSG_ReadString to return const char * and return a pointer
directly into the packet data.
- change a bunch of char *'s to const char *'s for the above.  Only
  thing that had trouble was the cl_nofake handler, which I changed to
  use a local buffer.
- add MSG_ReadStaticString which acts like the old MSG_ReadString,
  specifically that it uses a static buffer and tollerates
  unterminated strings.
- add a Q_strnlen function, and make strnlen use it if strnlen is
  undefined.
- Add a net_svc.h and net_svc.c which will preparse svc messages into
  structs, for easier handling.  Currently only soundlist and
  modellist are done.
2001-10-18 04:44:58 +00:00
Bill Currie
1b1955551a make all the multi-byte MSG_Read* functions update msg->readcount when the
end of the buffer is hit so subsequent MSG_Read* calls for smaller values
error as well. Also add a check for badread in MSG_ReadFloat
2001-10-18 04:14:18 +00:00
Bill Currie
ece4e5c6ef MSG_ReadChar -> MSG_ReadByte 2001-10-18 03:43:20 +00:00
Bill Currie
3ab66f5e75 remove the non-qw code and the ifdef QUAKEWORLD stuff 2001-10-18 03:19:04 +00:00
Jeff Teunissen
79e4045d09 debian/ updates -- I thought I'd already checked this in. 2001-10-17 21:35:24 +00:00
Bill Currie
f9fcf2f09f freebsd fixes 2001-10-17 18:49:25 +00:00
Bill Currie
85834ab8c3 handle a couple of missed ex_nil cases 2001-10-17 18:36:19 +00:00
Chris Ison
6b53cbf5dc changes to get mingw builds happening under cygwin 2001-10-17 10:41:25 +00:00
Bill Currie
79ac85b54f type checking now works much better and there is now a NIL builtin constant
which can be assigned (/only/) to anything.
2001-10-17 07:45:37 +00:00
Bill Currie
7883280d9a whitespace 2001-10-16 22:55:37 +00:00
Bill Currie
e765321452 wgl funcs are likely GLAPIENTRY type too :) 2001-10-16 22:37:11 +00:00
Bill Currie
2d068c0745 massive windows.h and WIN32 cleanup. 2001-10-16 21:40:45 +00:00
Bill Currie
8557d50235 redundant checks cleanup 2001-10-16 18:38:28 +00:00
Bill Currie
fdf0313f42 remove a redundant check for vga.h 2001-10-16 17:02:40 +00:00
Bill Currie
f18974bd89 fix a missing sys/types.h 2001-10-16 16:25:32 +00:00
Bill Currie
3daab16065 bring back libQFjs 2001-10-16 15:38:50 +00:00
Jeff Teunissen
ce740fb4ec Joystick target fixed. 2001-10-16 05:06:31 +00:00
Bill Currie
8417d23a94 fix a nasty seg on gl startup causes by looped function pointers 2001-10-16 04:11:25 +00:00
Bill Currie
d4396dfa78 rename the server package to servers and merge the master package into the
servers package (master is currently small enough that it doesn't matter)
2001-10-16 03:29:13 +00:00
Bill Currie
c067803f55 nuke no longer installed libs 2001-10-15 23:47:56 +00:00
Bill Currie
41a50d8a9b add some missing headers to include_HEADERS 2001-10-15 23:47:31 +00:00
Bill Currie
376a9105fa oops 2001-10-15 23:16:42 +00:00
Bill Currie
3402dfd51a libasm improvements 2001-10-15 23:09:03 +00:00
Jeff Teunissen
50681b5e80 debian/ updates. More files get the axe! 2001-10-15 22:52:53 +00:00
Bill Currie
4a0194b95c correct the default of cmd_warncmd 2001-10-15 22:41:42 +00:00
Jeff Teunissen
b89ff39bd3 Ooops, forgot to nuke a couple lines from configure. 2001-10-15 22:33:35 +00:00
Jeff Teunissen
2e4d8d1473 Makefile fixes -- video driver libs are gone. 2001-10-15 22:32:28 +00:00
Jeff Teunissen
10424a5015 *** empty log message *** 2001-10-15 22:28:05 +00:00
Jeff Teunissen
47290682fd Coding Style clarifications and some new stuff that has been changed
recently.
2001-10-15 22:00:52 +00:00
Bill Currie
371c11173b make plugindir actually /work/ (ie, it can be overridden at install time) 2001-10-15 20:35:47 +00:00
Bill Currie
460a270a54 fix some init order issues brought up by the new gl_funcs.c code. 2001-10-15 19:06:22 +00:00
Bill Currie
fd25261ab3 hopefully better win32 dynamicly loaded gl support. if nothing else,
gl_funcs.c is easier to read :)
2001-10-15 18:24:30 +00:00
Bill Currie
1ffb050bf9 and a memleak fix from _Muz_ 2001-10-15 17:41:53 +00:00
Bill Currie
7e0f676705 xmms info and session id patch from _Muz_ 2001-10-15 17:37:05 +00:00
Bill Currie
41d01d54f9 put the INITGUID definition in the correct place 2001-10-15 17:32:43 +00:00
Bill Currie
f7b82bcb69 comment out the definition of INITGUID for now as it's causing linking problems 2001-10-15 16:30:15 +00:00
Bill Currie
cb6391e594 fix a typo that causes parallel makes to break on libqfnet 2001-10-15 16:21:51 +00:00
Jeff Teunissen
55332363ae More debian/ updates. 2001-10-14 12:19:16 +00:00
Jeff Teunissen
0ab90e0bf6 debian/ updates. Cleaner, smaller, packages. 2001-10-14 12:17:11 +00:00
Jeff Teunissen
0485fbe09e Makefile fixes. 2001-10-14 07:05:06 +00:00
Jeff Teunissen
3d6d0d15c6 Nuke -3dfx from debian/* 2001-10-14 06:26:57 +00:00
Bill Currie
40489cb166 Config.h.in is generated, so remove from cvs 2001-10-14 06:10:45 +00:00
Jeff Teunissen
69c558d78c Vector class for Forge. Don't know if we need it, but it helped me to
grok vectors.
2001-10-14 05:57:38 +00:00
Jeff Teunissen
f7b0227299 This is all seriously broken, but I'm committing it so that it can be
worked on by other people as well. :)
2001-10-14 05:55:21 +00:00
Bill Currie
2dafd4a496 remove some (int) casts 2001-10-12 23:14:59 +00:00
Bill Currie
e97e06fe44 byte to int + xmms playlist support from _Muz_ 2001-10-12 19:26:56 +00:00