Commit Graph

686 Commits

Author SHA1 Message Date
Ozkan Sezer 53c55f6bd3 further Key_Console() cleanup. made Shift-Ins to paste text like Ctrl-v.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@750 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-30 12:55:09 +00:00
Sander van Dijk f2a2cd3fcf Style
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@749 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-30 08:23:00 +00:00
Ozkan Sezer 408c366096 in_sdl.c (IN_SendKeyEvents): fixed major thinko in SDLK_WORLD_xx
change from yesterday's r746.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@748 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-29 14:50:54 +00:00
Ozkan Sezer a3f4bdbbab include arch_def.h in keys.c
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@747 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-28 22:24:27 +00:00
Ozkan Sezer 285cb42cc3 * keys.c: added K_COMMAND as a new key. added Cmd+V as a Mac special
case for paste request.
* keys.h: added K_COMMAND as a new key (170 for now).
* in_sdl.c (IN_SendKeyEvents): translate SDLK_LMETA/SDLK_RMETA as
  K_COMMAND. ignore unhandled SDLK_WORLD_* international characters.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@746 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-28 21:41:31 +00:00
Ozkan Sezer 642bb168ba text pasting support for macosx. updated macosx error dialog procedure.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@745 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-28 20:10:30 +00:00
Ozkan Sezer ddfc90fd36 moved clipboard pasting code into new PasteToConsole() helper procedure
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@744 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 14:00:12 +00:00
Ozkan Sezer 6254e22a29 keys.c (Key_Console): several cleanups from uhexen2. replaced in-place
strcpy() calls by proper memmove() calls. activated (and fixed) Ctrl-V
text pasting support from OS clipboard (only works on windows for now.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@742 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 13:11:36 +00:00
Ozkan Sezer 7888383087 added PL_GetClipboardData()
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@741 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 12:58:37 +00:00
Ozkan Sezer 5c7187f96d finetuning of r736 & 738
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@740 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 12:55:03 +00:00
Sander van Dijk ba5856c2fb keys.c: don't be case-sensitive about ctrl-c
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@739 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 12:22:51 +00:00
Sander van Dijk 65d2186fb8 Some finetuning of r736.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@738 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 12:19:19 +00:00
Sander van Dijk 99bda4d65f menu.c: style fix
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@737 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 10:58:04 +00:00
Sander van Dijk c745a202af in_sdl.c: Fix control-character handling.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@736 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 10:41:07 +00:00
Ozkan Sezer 2f9fcd69b7 console.c (Con_TabComplete): eliminated string buffer overflow issues.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@735 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-27 09:55:41 +00:00
Sander van Dijk 25d412a5e8 Some history browsing fixes (partly from uhexen2)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@734 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-26 17:08:37 +00:00
Sander van Dijk 38ace228d8 Arrows
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@733 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-26 08:27:07 +00:00
Sander van Dijk 55b63c2f76 Finetuning of previous commit
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@732 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-25 23:30:55 +00:00
Sander van Dijk 2481e8aa28 Make the key menu scrollable (otherwise we draw allmost-offscreen at max scale)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@731 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-25 17:30:11 +00:00
Sander van Dijk 109378cf69 Simplify the linux icon transparency setting.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@730 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-25 03:07:33 +00:00
Sander van Dijk 60ad340d72 Simplify r343 (the "oldval" stuff is already handled by the cvar system itself)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@723 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-14 19:03:31 +00:00
Sander van Dijk 8d4edcc03b Make the "unbindall" in config.cfg configurable (on by default)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@722 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-12 20:14:20 +00:00
Ozkan Sezer 336c80ef02 updated net_sys.h from uhexen2
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@721 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-10 14:33:30 +00:00
Sander van Dijk 73b732f3e6 Linux icon: one pixel tweak.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@720 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-10 12:44:43 +00:00
Sander van Dijk 77807bd80c 48x48 linux icon (allowing a little more detail in the nail).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@719 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-10 12:21:28 +00:00
Sander van Dijk 14997a7f09 Recalc refdef on sbaralpha change.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@717 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-10 06:55:29 +00:00
Ozkan Sezer 59c282abac OSX client, Makefile.darwin: require 10.6 for amd64 builds,
not 10.5 (SDL's requirement). needed adding bundle1.o to linkage
for dyld_stub_binding_helper.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@716 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-09 07:41:43 +00:00
Sander van Dijk 30b7d757ca keys.c:Key_WriteBindings(): Clear old bindings before setting new ones.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@715 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-08 13:46:18 +00:00
Sander van Dijk b85eb79407 Some more scale slider tuning.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@713 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-08 10:48:15 +00:00
Ozkan Sezer 12b0d75c05 minor Makefile correction
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@712 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-05 16:24:57 +00:00
Ozkan Sezer 5b2916b89d makefile update
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@711 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-05 09:03:41 +00:00
Sander van Dijk eab83a0f3d Minor readability tweak
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@710 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-05 06:07:06 +00:00
Sander van Dijk 57deb8c9d7 Minor default sbaralpha tweak.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@709 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-04 18:38:13 +00:00
Sander van Dijk e64b7509cf SCR_ModalMessage: (very) minor correction.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@708 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-04 18:29:01 +00:00
Sander van Dijk a6f48f01a0 Handle some cornercases better in the scale slider.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@707 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-04 18:24:40 +00:00
Ozkan Sezer f00f4655dd removed static versions of osx codec import libs.
renamed osx codec dylib import lib directory to be lib.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@706 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-04 07:39:43 +00:00
Ozkan Sezer 74e8e5f719 changed ToggleFullscreen failure message to be a debug print
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@705 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-04 06:54:59 +00:00
Ozkan Sezer 6ca3fc377b - Makefile.darwin: -mmacosx-version-min also needs to be among
the linker flags for x86_64 builds. adjusted accordingly.
- build_cross_osx.sh, build_cross_win32.sh, build_cross_win64.sh:
  added the cross-compile scripts I have been using.
- Makefiles,other: added LDFLAGS variables for future use.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@704 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-03 21:21:04 +00:00
Sander van Dijk 64b53c510c Rework the scale menu option to be more intuitive.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@703 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-03 19:47:16 +00:00
Sander van Dijk bf62017608 Since it covers (part of) the weapon, make the statusbar somewhat more transparent by default.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@702 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-02 17:18:23 +00:00
Ozkan Sezer c8e8eab69b oslibs, codecs: minor libmad update
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@701 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-09-02 14:00:34 +00:00
Ozkan Sezer 50e014d050 Updated support for building the OSX versions using Makefile.darwin. Do
not rely on sdl-config on OSX Framework builds, define new SDL_FRAMEWORK
and NO_SDL_CONFIG preprocessor macros to indicate that and include SDL.h
with the "SDL" subdirectory name included. Add new libmad and ogg/vorbis
headers and static and dynamic libraries for macosx. Xcode project files
need further updating.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@699 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-08-16 04:51:41 +00:00
Ozkan Sezer 4e3a75744c fixed compilation
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@698 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-19 05:40:16 +00:00
Ozkan Sezer cf7c3e1bdb cl_demo.c (CL_PlayDemo_f): set key_dest to key_game only when the
demo file is successfully opened.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@697 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-18 21:20:07 +00:00
Ozkan Sezer cc935a6d72 * cl_demo.c: for a command like "record demoname map [track]", don't
continue if the map cannot be started. do not continue if the demo
  file cannot be opened for the timedemo command. for playdemo, verify
  that the forcetrack '\n' byte appears among the very first 12 bytes
  of the file.
* r_world.c (R_MarkSurfaces): reset vis_changed to false.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@696 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-18 20:51:35 +00:00
Ozkan Sezer 3c08cf2e3c cl_main.c (CL_Disconnect): set cl.intermission to 0. Fixes a minor
intermission glitch which isn't hit easily. See Baker's notice at:
http://forums.inside3d.com/viewtopic.php?t=4944

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@695 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-16 17:00:24 +00:00
Ozkan Sezer 5f6a2d7820 Fixed increased (more than 32) dynamic lights.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@694 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-10 11:21:17 +00:00
Sander van Dijk f6c994ab47 Rework the linux icon a bit, also store smaller (indexed color)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@693 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-07 20:14:52 +00:00
Ozkan Sezer 6984b15fdb arch_def.h: Added GNU/Hurd defs.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@692 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-07 07:15:23 +00:00
Ozkan Sezer 23ca031b56 GNU/Hurd has BSD-style struct sockaddr too (reported by Svante Signell
in debian bug #657793)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657793

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@691 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-07-07 05:09:55 +00:00
Ozkan Sezer d7d9ab213b zone.c: Use memcpy() instead of strcpy() in Hunk_Strdup() and Z_Strdup().
Removed dead Cache_Compact() function. Made mainzone static to zone.c.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@689 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-25 14:50:17 +00:00
Ozkan Sezer 7b589b31a6 updated snd bits from uhexen2. added signed 8 bit format support
to the mixer.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@688 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-25 12:50:09 +00:00
Ozkan Sezer d6e28185d9 updated arch_def.h and net_sys.h from uhexen2
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@687 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-25 11:51:23 +00:00
Ozkan Sezer 5a2a7d96a7 * keys.h: renamed KP_* key macros to K_KP_*.
* key.c (Key_ClearStates): Instead of clearing all key's down state
  and repeat count, run KeyEvent(k,false) keys in down state, which
  will already clear those states for them. This also helps getting
  rid of several actions bound to keypad keys. Minor cleanups.
* gl_vidsdl.c (ClearAllStates): Removed code triggering every key
  with a release event, because we just changed Key_ClearStates() to
  do that for the necessary keys.
* in_sdl.c: Minor cleanups. Made K_KP_5 to send '5' when not in game
  mode, regardless of the numlock status. Moved prev_gamekey to top
  level and call SDL_EnableUNICODE() correctly.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@686 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-25 11:20:38 +00:00
Sander van Dijk ae26d97744 in_sdl.c: Add missing KP_NUMLOCK key event.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@685 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-10 06:09:50 +00:00
Sander van Dijk 5a98449c03 Small update to r683.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@684 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-08 20:06:40 +00:00
Sander van Dijk 13b3ce9f25 Re-introduce KP_* syms, but only "in-game".
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@683 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-06-08 19:27:12 +00:00
Sander van Dijk 476bdea0c1 pl_linux.c: Set icon only if mask creation is successful.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@682 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 18:31:41 +00:00
Sander van Dijk efda62fd3a Makefile, Makefile.darwin: Remove the not-so-useful "install" target.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@681 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 17:29:34 +00:00
Ozkan Sezer 7985762713 added missing cast in PL_CreateIconMask() to fix compilation using g++
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@680 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 10:55:35 +00:00
Ozkan Sezer fd2bafc1b1 Makefiles: defined new variable LINKER. for linkage we no longer use $(CC),
but $(LINKER)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@679 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 09:47:45 +00:00
Ozkan Sezer c06d6fa200 fix linkage for solaris: needs -lsocket -lnsl -lresolv for network
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@678 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 09:28:34 +00:00
Ozkan Sezer 5c87f99ad5 removed the SNDDMA_GetSamples() call from snd_dma.c:GetSoundtime() for solaris
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@677 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 09:00:12 +00:00
Ozkan Sezer dbdd675552 renamed model_t to qmodel_t in order to avoid conflicts on solaris.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@676 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-30 08:56:06 +00:00
Sander van Dijk 614270110e gl_warp.c: revert part of r653, not really needed.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@675 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-27 09:01:55 +00:00
Ozkan Sezer 8b45bbd612 minor gl_vidsdl.c cleanups: tidied up VID_SetMode(). Removed the defunct
_windowed_mouse cvar. Simplified va()+Cvar_Set() calls into Cvar_SetValue().

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@673 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-21 12:32:20 +00:00
Sander van Dijk 09919c6aaf Minor linux icon tweak.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@672 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-17 06:02:50 +00:00
Ozkan Sezer 803697d8ed don't print both of the two possible warning messages in PF_VarString()
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@671 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-15 16:10:13 +00:00
Sander van Dijk a4d74c1a93 pr_cmds.c: Make PF_VarString's buffer a bit larger (fixes UQC's menu).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@670 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-15 14:41:29 +00:00
Sander van Dijk 44ea14d2ab Use new transparent icon for linux (32x32 for now).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@665 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-05-10 20:21:20 +00:00
Sander van Dijk f76bf8765a keys.[ch]: comment out KP_* keys, since we map them to their K_* counterparts
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@663 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-23 18:01:47 +00:00
Ozkan Sezer 6651858aff snd_mp3.c, snd_vorbis.c, snd_wave.c: Make _sure_ that the number
of channels in the music file is supported, i.e. either stereo or
mono. Minor tidy up of the error return paths.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@661 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-22 11:02:08 +00:00
Ozkan Sezer c66cadc05a removed the envmap command which drew to front buffer. adjusted the
timerefresh command not to draw to the front buffer. also made sure
that there is an active connection when timerefresh is called.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@660 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-22 07:55:56 +00:00
Sander van Dijk f35069fd1e in_sdl.c: invert the behaviour of numlock (numbers when on, not when off)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@659 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-20 20:23:55 +00:00
Ozkan Sezer d8f3f2a1d3 common.c: until COM_CheckRegistered() is called keep the value of the
registered cvar as 1, set it right in COM_CheckRegistered().  fixes the
problem of registered game installed from later versions of cdroms not
being properly recognized by versions 0.85.6 and 0.85.7.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@658 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-20 19:47:22 +00:00
Ozkan Sezer d9711fdfa2 Limited the struct qsocket_s details only to net_*.c sources :
For menu serverlist handling, added new procedures NET_SlistSort,
NET_SlistPrintServer and NET_SlistPrintServerName. Added new
procedure NET_QSocketGetTime for status and spawn commands' print
functionality in host_cmd.c. Added new NET_QSocketGetAddressString
procedure for status and connect commands' print functionality in
host_cmd.c and sv_main.c.  Patch ported over from uhexen2.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@657 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-18 20:33:12 +00:00
Ozkan Sezer 91ad650967 * net_dgrm.c: Fixed the types of testSocket and test2Socket from int
to sys_socket_t.
* updated version date stamp to 2012-04-01.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@656 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-04-01 18:03:25 +00:00
Ozkan Sezer 574fd31e84 cmd.c, gl_texmgr.c, gl_texmgr.h: killed the rest of the -Wsign-compare warnings.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@655 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-31 18:30:09 +00:00
Ozkan Sezer 2e78f9c684 Added file count and header crc macros for id1/pak0.pak v1.00 and v1.01
so that the corresponding shareware versions actually work properly and
not error out.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@654 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-28 17:50:47 +00:00
Sander van Dijk f6eb41b50c gl_warp: save some cvars to config.cfg.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@653 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-25 19:08:31 +00:00
Ozkan Sezer 8d997767e7 * mathlib.h (IS_NAN): Fixed strict aliasing violation by providing
an inline function using a float/int union instead of the original
  macro.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@650 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-24 06:24:56 +00:00
Ozkan Sezer bf1972a221 bumped version to 0.85.8 in the development tree
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@648 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-14 07:02:41 +00:00
Ozkan Sezer e324a7ffc5 Moved the stufftext_frame global to client_static_t structure and
adjusted CL_GetDemoMessage and CL_ParseServerMessage accordingly.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@644 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-12 08:24:16 +00:00
Ozkan Sezer cf406e06d0 minor Makefile tidying
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@642 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-09 10:11:09 +00:00
Ozkan Sezer 88a4c92ef5 changed the rowbytes, width, height, conwidth and conheight members of
viddef_t from unsigned to signed int. fixed the -Wsign-compare warnings
for NUM_GLMODES. fixed compilation using g++, by adding a missing type
cast.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@641 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-08 10:14:58 +00:00
Steven b42522932a 'make install' directory needs trailing slash in order to fail (desired) if directory doesn't exist.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@640 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-08 07:17:49 +00:00
Ozkan Sezer 2f85cc13df cmd.c (Cbuf_InsertText): Unconditionally add a newline after the inserted
text. Fixes executed files without a newline at the end of them eating up
followup commands.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@639 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-03-03 21:55:53 +00:00
Ozkan Sezer 4f9ac636cc apply anisotropic level setting only to mipmap textures
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@638 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-18 22:04:38 +00:00
Ozkan Sezer b1afe294f2 at least use the api sensibly and don't screw the whitespace
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@637 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-12 11:33:07 +00:00
Steven ae7c52985b common.c
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@636 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-12 02:59:21 +00:00
Ozkan Sezer 923e9280cd common.c (COM_FindFile): reverted ultra-hacky revs. 627-629. made it to
report files which aren't found only if developer.value >= 2, i.e. used
Con_DPrintf2 of fitz for the first time since its creation.. would have
been better if I'd implement and use Sys_DPrintf() there.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@634 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-11 15:55:09 +00:00
Ozkan Sezer 92f7731114 gl_texmgr.c (TexMgr_ReloadImage): reduced the hunk memory usage during
reloading of images from the bsp by not loading the whole file but by
opening the file, fseek()ing and allocating only the necessary amount.
This way, I can load and reload a save of ne_ruins with just the default
64 Mb of memory on x86 and with only 68.5 Mb of memory (-heapsize 70000)
on x86_64.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@633 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-11 14:30:19 +00:00
Ozkan Sezer ee56c76abd removed the defunct block_drawing global (btw, it was checked incorrectly
in GL_EndRendering()... )

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@632 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-10 22:37:07 +00:00
Ozkan Sezer f99af3f724 in_sdl.c: fixed backspace key on Mac OS X
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@631 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-10 22:04:43 +00:00
Sander van Dijk 8f4e287407 make missing texture no-spam hack safer
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@629 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-08 18:22:55 +00:00
Steven 33c1ea94c4 Refine missing texture no-spam hack.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@628 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-08 00:53:29 +00:00
Steven 9f11380a74 Don't spam developers about missing external textures.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@627 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-02-07 20:38:34 +00:00
Ozkan Sezer 69bd7690d3 net_sys.h: Add __FreeBSD_kernel__ to the HAVE_SA_LEN list. Debian
bug entry: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657793

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@625 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-30 10:40:41 +00:00
Ozkan Sezer bd81e60d0e snd_mp3.c (mp3_madseek): clang, -Wtautological-compare: fixed the
"comparison of unsigned expression >= 0 is always true" warning for
to_skip_samples.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@624 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-29 19:15:20 +00:00
Ozkan Sezer 7cddd6cb2b gl_vidsdl.c (VID_Init): fixed a -Wparentheses-equality warning from clang
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@623 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-29 18:04:28 +00:00
Sander van Dijk fe8d368a37 gl_texmgr.c: less ambiguous naming.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@622 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-24 21:24:14 +00:00
Sander van Dijk 0602ff7869 gl_texmgr.c: some small improvements and cleanup.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@621 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-23 18:51:12 +00:00
Sander van Dijk 4a39cc0f63 gl_texmgr.c: make sure "gl_texturemode" starts in sync with "mode".
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@619 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-21 09:51:38 +00:00
Sander van Dijk ced1af03af gl_texmgr.c: small optimization
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@618 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-20 19:31:18 +00:00
Sander van Dijk cbd6732189 gl_texmgr.c: Make "gl_texturemode" a cvar with callback.
This has the benefit that it is stored in "config.cfg",
and is reset by "resetall" and "resetcfg". Other than
that though, it behaves exactly the same as before.
(The same console input will lead to the same result
as before when it was a command.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@617 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-20 18:59:20 +00:00
Ozkan Sezer abb004f5d4 minor cleanup
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@616 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-20 17:11:24 +00:00
Ozkan Sezer 0912ffd8a6 make sure gl_max_anisotropy is initialized. also added a uberparanoid check
for gl_max_anisotropy.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@615 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-19 20:55:27 +00:00
Ozkan Sezer 02bb0549fa some form of a workaround for recursive calling of TexMgr_Anisotropy_f()
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@614 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-19 20:22:29 +00:00
Sander van Dijk a4ac23f19f gl_screen.c:SCR_ModalMessage(): make sure we don't ignore the next keypress (after a timeout).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@613 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-19 19:09:23 +00:00
Sander van Dijk 272919a523 When modetesting, redraw the screen before asking for confirmation. Otherwise the screen is just a black rectangle, which may be confusing for the user.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@612 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-18 12:48:09 +00:00
Sander van Dijk fa43564cf8 Make the "Reset config" message more informative.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@611 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-18 12:00:35 +00:00
Sander van Dijk b714fbb601 gl_screen.c:SCR_ModalMessage(): sleep a little while busy-waiting.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@610 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-17 08:34:54 +00:00
Sander van Dijk 7926cc5bf3 - Rename the "Reset defaults" menu option to "Reset config".
- Make it reset only those cvar's that are saved to config.cfg.
- Make it as the user for confirmation.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@609 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-17 08:25:07 +00:00
Ozkan Sezer b51d0c0878 SCR_CenterPrint() has been counting the lines in the wrong place: count
the copied string NOT the original.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@607 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-13 19:10:52 +00:00
Ozkan Sezer 1918db04bf fixed demo playback covering multiple maps (from Pa3PyX's hexen2 source)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@604 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-09 08:10:35 +00:00
Sander van Dijk 296dc11b52 console.c:Con_DrawInput(): some changes for correctness and simplicity
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@603 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-07 13:21:42 +00:00
Ozkan Sezer 6960e71279 tidy up osx mouse acceleration hack a bit more.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@602 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-07 09:22:43 +00:00
Ozkan Sezer 96be2c7faa tidied up whitespace in osx mouse acceleration hack code. fixed declaration
of the new cvar to use the new cvar flags.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@601 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-07 08:50:11 +00:00
Kristian Duske 1ed3e46b7a Applied patch to disable mouse acceleration in Mac OS X.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@599 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-07 08:26:32 +00:00
Sander van Dijk dc9166c3b8 console.c: some long input line fixes (keep cursor on screen, don't clip line early, buffer size fix)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@598 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-06 21:25:42 +00:00
Sander van Dijk f704084539 Console word wrap fix: only check and wrap at word boundaries, not in the middle of a word.
(Enter "r_nolerp_list" in the console for an example.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@595 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-03 18:03:51 +00:00
Ozkan Sezer 84e33a8db2 bumped version to 0.85.7 in the development tree
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@592 af15c1b1-3010-417e-b628-4374ebc0bcbd
2012-01-01 12:00:16 +00:00
Ozkan Sezer 17a4f90bb2 gl_texmgr.c, gl_vidsdl.c: made a lot of functions and variables static.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@584 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-30 14:00:28 +00:00
Ozkan Sezer e9c1920bfc removed some OS-specific drivers. they weren't used and was here only for
reference.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@583 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-30 13:59:14 +00:00
Ozkan Sezer ba8f8801c1 gl_vidsdl.c (GL_Init): set VID_Changed_f() callback to vid_vsync only if
GL_CheckExtensions() set gl_swap_control as true.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@582 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-30 12:15:19 +00:00
Ozkan Sezer 72efc8e384 gl_vidsdl.c (VID_SyncCvars): set vid_vsync to 1 only if the received value
is positive, not "not zero".

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@579 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-30 00:10:16 +00:00
Ozkan Sezer 6c341b9ed0 minor typo fixes for vsync related messages.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@578 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 23:05:12 +00:00
Ozkan Sezer f6d96cf7e9 gl_vidsdl.c (VID_Toggle): if SDL_WM_ToggleFullScreen() succeeded, ignore
the vid_fullscreen callback function setting vid_changed to true.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@577 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 21:44:36 +00:00
Ozkan Sezer eb09523d00 changed some of the Cvar_Set[Value] calls to their *Quick variants in the
source files where the vars are defined.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@576 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 21:21:11 +00:00
Ozkan Sezer 19953bd399 silenced -Wsign-compare warnings.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@575 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 19:06:08 +00:00
Ozkan Sezer 8202704726 cleanup of Cvar_Set[Value] calls in menu.c
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@574 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 16:50:45 +00:00
Ozkan Sezer c96c275334 some common.c cleanup: Made COM_InitFilesystem() public through common.h,
moved its calling from COM_Init() to Host_Init() just after COM_Init().
Moved registration of registered and cmdline cvars and COM_Path_f command
and the calling of COM_CheckRegistered() to COM_InitFilesystem(). Removed
unused memsearch(). Fixed the stupidity in leading space elimination from
com_cmdline.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@573 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 15:10:18 +00:00
Ozkan Sezer b09ee296a7 more cvar cleanups: Added Cvar_LockVar, Cvar_UnlockVar, Cvar_UnlockAll and
Cvar_FindVarAfter. Don't expose cvar_vars directly and use Cvar_FindVarAfter
instead.  several typo fixes, etc.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@570 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 12:28:21 +00:00
Ozkan Sezer 5938fe8c3e some more cvar work: made Cvar_RegisterVariable() to only link the variable in
and set some basic flags, but then let functions to set it. Added Cvar_SetQuick
and Cvar_SetValueQuick which accept a cvar pointer instead of a var name, but
identical to the non-Quick versions otherwise. Made Cvar_SetValue to print the
value as an integer if the float value is the same when cast to an int; if not,
made it to strip the trailing zeroes in the string.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@569 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-29 09:37:28 +00:00
Ozkan Sezer 338da9a4c8 dropped CVAR_SERVERINFO flag from the cmdline cvar: sending cmdline upon
CCREQ_RULE_INFO is evil...
while I was there, did some whitespace clean-up in common.c.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@568 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-28 23:40:27 +00:00
Ozkan Sezer e2a17c9bcf * gl_screen.c: removed oldscreensize, oldfov, oldsbarscale, oldsbaralpha.
use the callbacks for scr_fov, scr_viewsize, scr_conwidth & scr_conscale
changes by simply setting vid.recalc_refdef to 1: now that Cvar_Set()
doesn't do anything when there is no change, this has the same effect.
* snd_dma.c: removed oldvol, set a callback to sfxvol in order to call
SND_InitScaletable() upon every volume change.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@567 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-28 22:40:15 +00:00
Ozkan Sezer 1928f2e1b8 * first shot at cvar flag system and cvar layer clean-ups :
- removed the archive and server members of cvar_t structure
  which are now represented by the CVAR_ARCHIVE, CVAR_NOTIFY
  and CVAR_SERVERINFO flags.
- added new Cvar_SetROM and Cvar_SetValueROM functions to 
  set vars marked as CVAR_ROM (read-only vars) programaticaly
- added Cvar_SetCallback() as a new function to assign (or
  remove) a callback function to a cvar.
- changed Cvar_RegisterVariable() to only accept a var pointer
  as in original quake
- moved notification handling from Cvar_Set() to callbacks.
- changed Cvar_Set() so that it doesn't reallocate the var's
  string buffer if nothing is changed, nor does it run the
  var's callback.
- changed the 'registered' and 'cmdline' cvars to be read-only
  so that the users can't change it using the console.  (and
  with 'registered' flagged as CVAR_ROM, the 'static_registered'
  thing is no longer required)
- added comment that sending cmdline upon CCREQ_RULE_INFO is
  evil...
- more to follow later.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@566 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-28 22:01:33 +00:00
Ozkan Sezer 5f0d6b07d1 finally nailed the SubdividePolygon() segfault when running as a dedicated
server: R_Init() isn't called for dedicated server therefore gl_subdivide_size
was used without being registered hence divisions by zero when using its value
member. Geez.. Moved its registration to Mod_Init() and we are good.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@565 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-28 17:37:30 +00:00
Ozkan Sezer 456e77d036 cfgfile.c (CFG_ReadCvars): Also check for ferror(). Use FS_rewind()
instead of FS_fseek(). From Sander van Dijk.
cfgfile.c, cfgfile.h: synced with uhexen2 versions.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@564 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 19:40:14 +00:00
Ozkan Sezer d0093d0b80 common.c (q_vsnprintf): Don't attempt to nul terminate the buffer
if zero size was passed. From Sander van Dijk.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@563 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 19:32:17 +00:00
Ozkan Sezer ef0062741c added COM_ExtractExtension() helper.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@561 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 14:00:33 +00:00
Ozkan Sezer fb2f45126e changed many strcpy and strncpy into q_strlcpy
and strcat and strncat into q_strlcat

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@560 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 13:15:31 +00:00
Ozkan Sezer 1ff7413631 added strlcat.c and strlcpy.c to build.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@559 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 11:11:24 +00:00
Ozkan Sezer 5e6212ad02 added strlcat.c and strlcpy.c: will use them later.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@558 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 11:03:39 +00:00
Ozkan Sezer 983af887bf changed many sprintf() calls into q_snprintf().
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@557 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 10:50:42 +00:00
Ozkan Sezer b9d2d0aea1 Makefiles update: Passing the libraries to the linker before passing the
object list is a bad idea.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@556 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 10:10:51 +00:00
Ozkan Sezer ca4124194f reverted revision 536 which made coop and deathmatch not to be set at
the same time

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@555 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 08:27:52 +00:00
Ozkan Sezer 07b572b642 better buffer size safety with COM_StripExtension, COM_FileBase and COM_DefaultExtension
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@554 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-27 08:04:02 +00:00
Ozkan Sezer ac0c5871ec bumped version to 0.85.6 in the development tree. documentation tidy-up.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@549 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-25 09:28:30 +00:00
Ozkan Sezer 42e55b3377 changed cvar callback functions to accept a cvar_t pointer arg. I may
have a use for that later.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@545 af15c1b1-3010-417e-b628-4374ebc0bcbd
2011-12-24 14:04:01 +00:00