Commit Graph

16 Commits

Author SHA1 Message Date
Zephaniah E. Hull f6b12b12e3 More fixes for the loc code. 2001-01-23 14:48:05 +00:00
Zephaniah E. Hull 33b135f3dd locs and teamplay: Minor cleanup. (locisgz!? Gone!)
gl_dyn_part.c: Minor cleanup.
2001-01-23 14:36:53 +00:00
Chris Ison 6bea8babbe tidied up locs code and changed loc commands to loc <args> 2001-01-22 23:23:28 +00:00
Bill Currie ccba39666b #include audit 2000-12-30 02:16:36 +00:00
Jeff Teunissen c6a22c8a88 whitespace 2000-12-28 07:44:45 +00:00
Bill Currie 8d579b7a0b fix warnings when zlib is not available 2000-12-20 21:31:09 +00:00
Bill Currie 0e268f9ca7 This is what I have done with this patch
Added editloc to change the description of the closest location
Added delloc to remove closest location
Added dumploc to place locs in memory into a .loc file (required for
editloc and delloc)
Added zdumploc to place locs in memory into a .loc.gz file (requred for
markloc, editloc and delloc)
Added loc.gz saving support to markloc, editloc and delloc (via
zdumploc)

Altered locs_load to use _Com_FOpenFile instead of Com_FOpenFile
Fixed potentual bug in locs_markloc
Fixed bug in Team_ParseSay that cause wierd behaviour if $ or % was last
charactor in line.

patch created from a development tree via diff -ur ../newtree ./
newtree and development tree were up-to-date at time of creating the
patch


Please let me know what you change so I may learn from it

Chris Ison (WildCode)
2000-12-19 19:47:15 +00:00
Jeff Teunissen 54e2a4d9d3 Okay, the big whitespace reformat. There is some silliness (case
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Zephaniah E. Hull 66e0e31b57 strcat -> strncat
sprintf -> snprintf

AKA, really big buffer overflow security fixes.

More to come, geez we have holes everywhere.
2000-12-05 11:08:30 +00:00
Zephaniah E. Hull 1b4ed8cc3f When loading a .loc file check each line to see if it has '#' as the
first char, if so the line is a comment.
2000-11-08 22:55:39 +00:00
Zephaniah E. Hull b9c0c95729 Misc cleanups. 2000-10-24 17:03:09 +00:00
Bill Currie f837616025 locs.c:
handle dos line endings. COM_FOpenFile /always/ opens files in binary
	mode in Windows (and *nix is effectively binary only anyway) and the
	\r characters being left in the location description strings was
	causing %l to print a blank line. Makes for unhappy users :/
teamplay.c:
	handle %%. this seams to have been missed.
2000-10-18 17:06:44 +00:00
Dabb 8b573f8d7e Added HAVE_CONFIG_H and pals. Compiles under win32 now. 2000-10-07 10:24:46 +00:00
Bill Currie ccd1f6f025 fix the misterious crass caused by loading a .loc file a second time. This one
was very sneeky :)
2000-10-07 07:53:21 +00:00
Zephaniah E. Hull dbda53e93b More tweaking of stuff, fixed a minor bug in the loc stuff, may still
have the crash causer though.
2000-10-07 04:06:08 +00:00
Zephaniah E. Hull 70657119f3 Would help if I added locs.h and locs.c. 2000-10-06 16:31:53 +00:00