Chris Ison
e69ade675e
some fixes for WINAPI
2001-10-21 21:23:45 +00:00
Chris Ison
7af90743f7
touch ups
2001-10-21 21:23:05 +00:00
Chris Ison
70619f195e
added compile switch to cygwin-mingw32 and added win32 defs
2001-10-21 21:20:59 +00:00
Chris Ison
6fd5239e52
added winsock init/cleanup
2001-10-21 21:18:31 +00:00
Adam Olsen
818f5de658
- rename CL_ParsePacketEntities to CL_ParseDeltaPacketEntities
...
- fix various spots in the above that called Host_EndGame but didn't
return
- switched the order of modellist and soundlist in net_svc*, to
conform with the rest of the files
- create a new CL_ParsePacketEntities, that only handles
svc_packetentities (so it's much simpler). it uses net_svc*
2001-10-21 14:21:30 +00:00
Bill Currie
e1fc77dd2b
fix a crasher in win32. I don't know if linux crashed, but it should have.
2001-10-21 03:48:02 +00:00
Bill Currie
bc5a7f9799
it seems to help if GLAPIENTRY is actually getting defined to something
...
usefult. -wgl no longer dies now, though I still get a black screen (palette
init issues:)
2001-10-21 02:41:20 +00:00
Bill Currie
7ccaecc327
ignore some more files at the request of Gb]
2001-10-21 01:38:32 +00:00
Bill Currie
cc89fb23c8
fix for win32 (need to init winsock)
2001-10-21 00:48:38 +00:00
Adam Olsen
d69c8013aa
- convert svc_spawnbaseline and svc_spawnstatic
...
Only notable ones left now are packetentities and deltapackentities :)
2001-10-20 11:59:42 +00:00
Adam Olsen
f779a03254
- hopefully a fix for master's socket errors on windows
...
- start of static server support
2001-10-20 08:20:27 +00:00
Adam Olsen
32fbdba399
- move the MAX_PROJECTILES def from cl_ents.c to bothdefs.h
...
- convert svc_nails
2001-10-20 08:10:25 +00:00
Jeff Teunissen
6af08f0468
Forge: rip some useless stuff out of configure.
2001-10-20 00:48:15 +00:00
Jeff Teunissen
c38e76fce7
Forge: Gorm updates -- figuring out how connections work :)
2001-10-20 00:37:20 +00:00
Jeff Teunissen
73e53986a3
Forge: Preferences updates -- use notifications instead of globals.
2001-10-20 00:33:54 +00:00
Adam Olsen
a4d9507895
- roast the unnecesary MAX_STYLESTRING def from bothdefs.h
...
- rename the message argument of NET_SVC_*_Parse to msg
- rename the other argument to block, for brevity
- convert svc_spawnstaticsound
- convert svc_serverinfo
- convert svc_playerinfo
- fix a exploitable buffer overflow with svc_lightstyle
2001-10-19 21:20:49 +00:00
Bill Currie
2ef8adea09
handle more conditional code and check for unitied vars in the test of if ()
...
etc
2001-10-19 05:16:24 +00:00
Bill Currie
16c334b6b9
uninit var detection seems to work for if and if else
2001-10-19 03:22:04 +00:00
Bill Currie
3572a6be28
change def_list from def_t ** to hashtab_t * and comment out some debug code
2001-10-19 00:45:56 +00:00
Bill Currie
237d238a65
beginnings of "if" uninitialized variable support. doesn't make any
...
difference yet
2001-10-18 23:06:39 +00:00
Bill Currie
5ca785e7e8
uninitialized variable detection. not perfect (lots of false negatives, but
...
fewer than before;) but prozac isn't giving any false positives.
2001-10-18 20:05:26 +00:00
Adam Olsen
c2807a6da1
- and svc_temp_entity too. Probably the last I'll do today.
2001-10-18 18:48:49 +00:00
Bill Currie
96e4e1a232
the beginning of unititialized var detection. first victim: functions.
...
--undefined-function-warning is now --no-undefined-function-warning and
the default is to detect called but undefined functions.
2001-10-18 17:41:22 +00:00
Bill Currie
952f029e6d
rename def_t.initialized to def_t.constant
2001-10-18 17:15:05 +00:00
Bill Currie
78a5b3a381
final missed console.h
2001-10-18 17:08:54 +00:00
Bill Currie
6ea400fb30
d'oh, forgot to compile test :P
2001-10-18 17:03:50 +00:00
Bill Currie
00bfc128a0
more printf elimination
2001-10-18 16:49:40 +00:00
Bill Currie
b3914eeaaa
elimination of bare printf (with some exceptions) from libs: Sys_Printf is
...
used instead
2001-10-18 16:42:14 +00:00
Adam Olsen
9cef5a1edc
- svs_sound too of course
2001-10-18 13:33:12 +00:00
Adam Olsen
eb9c515c2a
- yada svc_damage, svc_serverdata
...
- remove a no longer valid commit from NET_SVC_UpdateUserInfo_Parse,
and make it always set name/data to 0 if they're unused
2001-10-18 08:57:03 +00:00
Adam Olsen
cf8380b528
- change NET_SVC_*_Parse to return qboolean, indicating if they had a
...
bad read
2001-10-18 07:34:38 +00:00
Adam Olsen
d2fe052d59
- convert svc_setinfo, bla bla, you know hte drill
2001-10-18 07:23:33 +00:00
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