sezero
04eb8ef74d
added strlcat.c and strlcpy.c: will use them later.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@558 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 11:03:39 +00:00
sezero
f797c71f8b
changed many sprintf() calls into q_snprintf().
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@557 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 10:50:42 +00:00
sezero
02c18a64e3
Makefiles update: Passing the libraries to the linker before passing the
...
object list is a bad idea.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@556 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 10:10:51 +00:00
sezero
3760bbf494
reverted revision 536 which made coop and deathmatch not to be set at
...
the same time
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@555 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 08:27:52 +00:00
sezero
6a940110c0
better buffer size safety with COM_StripExtension, COM_FileBase and COM_DefaultExtension
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@554 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 08:04:02 +00:00
kristianduske
d74a39bf28
Changed version strings.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@553 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-26 22:42:21 +00:00
kristianduske
8be8eb975e
Cleaned up some build settings and fixed a minor glitch in OS X launcher UI.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@552 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-26 22:27:18 +00:00
kristianduske
adbfa640ee
Added building instructions for Mac OS X.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@551 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-26 18:36:10 +00:00
kristianduske
b4e6d07c7a
Updated schemes for cross compilation from XCode 4.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@550 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-26 18:08:21 +00:00
sezero
8fe6e6efb4
bumped version to 0.85.6 in the development tree. documentation tidy-up.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@549 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-25 09:28:30 +00:00
sezero
5b180894a2
reverted parts of rev. 544 where an unintended Xcode update was performed
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@547 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 14:11:08 +00:00
sezero
c129bd7941
deleted unnecessary Xcode user files.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@546 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 14:05:16 +00:00
sezero
8f7ced1cf2
changed cvar callback functions to accept a cvar_t pointer arg. I may
...
have a use for that later.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@545 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 14:04:01 +00:00
stevenaaus
4e1d8b749d
Add cfgfile.[hc] to xcode.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@544 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:42:19 +00:00
sezero
49e4762ac2
minor correction after last cfgfile patch.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@543 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:35:01 +00:00
sezero
282fac9686
changed cfgfile to use FS_functions. From Sander van Dijk.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@542 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:10:15 +00:00
sezero
7becf71d2f
added FS_fgets(). From Sander van Dijk.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@541 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:03:29 +00:00
sezero
60a764f30e
tidy up nul termination for strncpy in CFG_ReadCvarOverrides (from Sander.)
...
update copyright years.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@540 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:02:25 +00:00
sezero
29a37ad9c8
updated CodeBlocks project files for newly added files.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@539 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 12:01:07 +00:00
sezero
37cec8c480
documentation: removed the remark of `unreleased' from 0.85.5. changed
...
the download links for 0.85.5.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@538 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 09:41:41 +00:00
sezero
163505f25d
updated visual studio project file for newly added files
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@537 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 09:10:49 +00:00
sezero
fea02186c7
Made sure that deathmatch and coop are not set at the same time
...
(fix originally from QIP sources of Matthias Buecher, a.k.a. Maddes)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@536 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-23 12:03:49 +00:00
sezero
8dbddbd097
removed support for the -mode argument from gl_vidsdl.c
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@535 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-22 23:10:25 +00:00
sezero
fea1ba3030
gl_vidsdl.c fixes/changes from Sander van Dijk: if (hypothetically) no
...
fullscreen modes are reported at all fixes bad behaviour of several
options in the video menu, and allows the user to use "-force" to force
a fullscreen mode even if none was reported; this was previously only
possible if there was at least one fullscreen mode reported), makes the
treatment of "-current" more similar to "-width/-height/-bpp" (only
forcing it if the user provides "-force"), gets rid of leavecurrentmode
hack (which didn't do much useful, besides making the code less clear).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@534 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-22 21:55:48 +00:00
sezero
3790bb0ea2
main_sdl.c: added SDL version check at runtime requiring at least SDL-1.2.10
...
and rejecting SDL >= 1.3.x.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@533 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-22 21:20:19 +00:00
sezero
37221269d6
sys_sdl_unix.c, sys_sdl_win.c (Sys_Sleep): rely on SDL_Delay() instead
...
of platform specific usleep() or Sleep() calls.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@532 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-21 10:40:18 +00:00
sezero
6a36725e1f
backport from uhexen2: read video variables early so that a vid_restart
...
isn't necessary after init. thanks to Sander van Dijk.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@531 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-20 09:22:19 +00:00
sezero
65d248f750
gl_vidsdl.c: comment out the rest of vid_refreshrate usage which isn't supported.
...
(VID_SetMode): check whether SDL_SetVideoMode() actually succeeded. otherwise we
just segfault. noticed by Sander.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@530 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 16:27:14 +00:00
sezero
5926d9a2e3
* client.h: moved usercmd_t structure to protocol.h
...
* quakedef.h: moved chase declarations to client.h.
moved the entity_state_t structure to protocol.h.
tweaked the order of quake header includes.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@529 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 10:03:53 +00:00
sezero
25fedde47a
net_win.c, net_sdl.c, net_bsd.c, net_defs.h: removed fixed size from net_drivers
...
and net_landrivers. changed net_numdrivers and net_numlandrivers into const int
and assigned their values using array size macros instead of hardcoded numbers.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@528 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 10:00:36 +00:00
sezero
13e482e911
sv_main.c: changed a (cls.state != ca_dedicated) condition into (!isDedicated)
...
so that a server file doesn't use "cls"
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@527 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 09:55:18 +00:00
sezero
416d68a861
net_loop.h: Tiny whitespace tidy up.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@526 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 09:51:28 +00:00
sezero
d076443923
net_dgrm.c: removed the DEBUG build condition around the "Forged packet received"
...
message prints. Tiny whitespace tidy up.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@525 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-18 09:50:49 +00:00
sezero
7a7fe8f4c9
SDL input driver: updated from the uHexen2 project adding native keymap
...
and dead key support to the console, thanks to Sander van Dijk.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@524 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-16 14:11:37 +00:00
sezero
94117294f7
keys.c (History_Init): filter out '\r' and skip over to the first non-EOL
...
character. This allows using a windows-generated history.txt file on unix.
based on a patch from Sander van Dijk.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@523 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 21:41:48 +00:00
sezero
c28e767afb
keys.c (Key_Event): Allow autorepeats in message (chat) mode; based on a
...
patch from Sander van Dijk. Rearrange the autorepeat condition checks a
bit, based on uhexen2.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@522 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 16:33:52 +00:00
sezero
d3e28b441e
menu.c (M_ToggleMenu_f): Set key_dest to key_game only if the client
...
is connected. Set it to key_console, otherwise. Patch from and thanks
to Sander van Dijk.
(M_Main_Key): Likewise.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@521 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 16:21:36 +00:00
sezero
f5c53deb06
sys_sdl_unix.c, sys_sdl_win.c (Sys_ConsoleInput): Moved isDedicated check to...
...
host.c (Host_GetConsoleCommands): ... here, where it should be.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@520 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 15:51:28 +00:00
sezero
702afcf27e
gl_texmgr.c (TexMgr_LoadPalette): properly point to d_8to24table_fbright
...
(noticed this in recent RMQ sources.)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@519 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 06:37:12 +00:00
sezero
5c7fdf0366
host_cmd.c (Host_Loadgame_f): Close the file before signalling an error
...
(noticed this in recent RMQ sources.)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@518 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-15 06:31:51 +00:00
sezero
88c8265faf
gl_model.c (Mod_SetExtraFlags): Fixed r_nolerp_list.string parsing code
...
of fitzquake: the loop was able to go beyond the null terminator of the
cvar. (Besides, it would technically yield a false positive because of
strncmp(), but much less likely..)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@517 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-14 14:21:12 +00:00
sezero
ba74395b56
CL_ParseUpdate: removed unused bitcounts[] array
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@516 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-13 19:00:25 +00:00
sezero
55512f9385
Cmd_Alias_f: don't append a space at the very end.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@515 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-13 18:40:23 +00:00
sezero
e6f6e24cab
Cmd_TokenizeString: simplify duplication by using Z_Strdup()
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@514 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-13 18:35:40 +00:00
sezero
b5e377b01b
can these guys code in ANSI C????
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@513 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-13 09:12:16 +00:00
sezero
338019e9e4
renamed Sys_FloatTime to Sys_DoubleTime (the thing always returned double
...
you know..) and adjusted all callers accordingly. changed Sys_Sleep() to
take a milliseconds argument, added implementations for unix (usleep) and
windows (Sleep).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@512 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 16:01:01 +00:00
sezero
f4a3b2c9a2
Made the cmd argument of CL_SendMove() const.
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@511 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 14:11:17 +00:00
sezero
08546599cf
constified the name arguments of Image_LoadImage() and Image_WriteTGA()
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@510 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 12:56:57 +00:00
sezero
ad4e268d6b
re-diff'ed the quake_retexturing_project.patch so that it applies cleanly
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@509 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 12:44:17 +00:00
sezero
79e1fa29ee
made Sys_ConsoleInput() to return const
...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@508 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-12 12:02:37 +00:00