]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
4 years agoFix description of sv_wateraccelerate and sv_waterfriction; also fix trailing space... terencehill/cvar_desc_fix
terencehill [Sun, 29 Nov 2020 11:02:16 +0000 (12:02 +0100)]
Fix description of sv_wateraccelerate and sv_waterfriction; also fix trailing space in clvm_cmds.c code

4 years agoprvm_edict: Spelling
cloudwalk [Sat, 28 Nov 2020 16:08:23 +0000 (16:08 +0000)]
prvm_edict: Spelling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13052 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_execprogram: Polish pass over error messages
cloudwalk [Sat, 28 Nov 2020 16:08:23 +0000 (16:08 +0000)]
prvm_execprogram: Polish pass over error messages

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13051 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_execprogram: Compare against numglobals instead of numglobaldefs. This should...
cloudwalk [Sat, 28 Nov 2020 16:08:22 +0000 (16:08 +0000)]
prvm_execprogram: Compare against numglobals instead of numglobaldefs. This should be correct...

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13050 d7cf8633-e32d-0410-b094-e92efae38249

4 years agopr_comp: Slightly improve commenting. Use explicit stdint types
cloudwalk [Sat, 28 Nov 2020 16:08:21 +0000 (16:08 +0000)]
pr_comp: Slightly improve commenting. Use explicit stdint types

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13049 d7cf8633-e32d-0410-b094-e92efae38249

4 years agopr_comp: Add the rest of FTEQW's opcodes
cloudwalk [Sat, 28 Nov 2020 16:08:21 +0000 (16:08 +0000)]
pr_comp: Add the rest of FTEQW's opcodes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13048 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocsprogs: Pass menu/focus state as a third parameter to CSQC_UpdateView
cloudwalk [Sat, 28 Nov 2020 16:08:20 +0000 (16:08 +0000)]
csprogs: Pass menu/focus state as a third parameter to CSQC_UpdateView

https://gitlab.com/xonotic/darkplaces/-/merge_requests/106

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13047 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_edict: Add warning for attempting to load FTEQW progs while support is incomplete
cloudwalk [Sat, 28 Nov 2020 16:08:19 +0000 (16:08 +0000)]
prvm_edict: Add warning for attempting to load FTEQW progs while support is incomplete

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13046 d7cf8633-e32d-0410-b094-e92efae38249

4 years agopr_comp: Fix typo in comments
cloudwalk [Sat, 28 Nov 2020 16:08:19 +0000 (16:08 +0000)]
pr_comp: Fix typo in comments

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13045 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_draw, model_shared: Refactor vertex adding. Add faster codepath that skips hash...
cloudwalk [Sat, 14 Nov 2020 16:26:31 +0000 (16:26 +0000)]
gl_draw, model_shared: Refactor vertex adding. Add faster codepath that skips hash function for drawing lines. Modest improvement in netgraph performance.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13044 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRevert "cmd: Merge cmd_server and cmd_client into cmd_local again"
cloudwalk [Mon, 9 Nov 2020 20:02:00 +0000 (20:02 +0000)]
Revert "cmd: Merge cmd_server and cmd_client into cmd_local again"

This reverts commit aadd101471d0227217f84d3dc6ed03fec4aacd4c.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13043 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_textures: Optimize the gl_nopartialtextureupdates 0 path to accumulate partial...
cloudwalk [Mon, 9 Nov 2020 20:01:59 +0000 (20:01 +0000)]
gl_textures: Optimize the gl_nopartialtextureupdates 0 path to accumulate partial updates for one big glTexSubImage2D call. Fixes lightmap update performance.

This can probably be optimized further by uploading the lightmaps per
model as soon as they're ready instead of waiting until a specific point
in the frame. For now, this'll do.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13042 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_edict: Link all edicts to the world when loaded from file. Fixes issue with...
cloudwalk [Sun, 8 Nov 2020 06:25:14 +0000 (06:25 +0000)]
prvm_edict: Link all edicts to the world when loaded from file. Fixes issue with some entities being spawned at world origin in Xonotic.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13041 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoimage: Check if file exists first to allow early out and avoid a slower codepath
cloudwalk [Sun, 8 Nov 2020 06:25:13 +0000 (06:25 +0000)]
image: Check if file exists first to allow early out and avoid a slower codepath

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13040 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Duplicate the lightmap update code to avoid the extra check for non-world...
cloudwalk [Sun, 8 Nov 2020 06:25:13 +0000 (06:25 +0000)]
gl_rmain: Duplicate the lightmap update code to avoid the extra check for non-world brush entities, which would previously unconditionally update their lightmaps even if not visible.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13039 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Render anything RENDER_VIEWMODEL when in the void
cloudwalk [Sun, 8 Nov 2020 06:25:12 +0000 (06:25 +0000)]
gl_rmain: Render anything RENDER_VIEWMODEL when in the void

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13038 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocom_list: Implement the rest of the linked list API from the Linux kernel
cloudwalk [Sun, 8 Nov 2020 06:25:12 +0000 (06:25 +0000)]
com_list: Implement the rest of the linked list API from the Linux kernel

Also added DP_GCC_COMPATIBLE define. Used to make checking for
GCC-compatible compilers easier (for checking if we should use typeof or
decltype in this case).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13037 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: When saving init state, simply make a copy of the entire cvar
cloudwalk [Sun, 8 Nov 2020 06:25:11 +0000 (06:25 +0000)]
cvar: When saving init state, simply make a copy of the entire cvar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13036 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocmd: Merge cmd_server and cmd_client into cmd_local again
cloudwalk [Tue, 27 Oct 2020 14:50:20 +0000 (14:50 +0000)]
cmd: Merge cmd_server and cmd_client into cmd_local again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13035 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoMerge the sendcvar command into one. Call the old functions using hooks.
cloudwalk [Tue, 27 Oct 2020 14:50:19 +0000 (14:50 +0000)]
Merge the sendcvar command into one. Call the old functions using hooks.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13034 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_textures: Set gl_max_lightmapsize to 512 by default to eliminate stutter without...
cloudwalk [Sun, 25 Oct 2020 14:32:20 +0000 (14:32 +0000)]
gl_textures: Set gl_max_lightmapsize to 512 by default to eliminate stutter without partial updates

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13033 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rsurf: Actually use the model pointer
cloudwalk [Sun, 25 Oct 2020 14:32:20 +0000 (14:32 +0000)]
gl_rsurf: Actually use the model pointer

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13032 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Small cleanup
cloudwalk [Sun, 25 Oct 2020 14:32:19 +0000 (14:32 +0000)]
gl_rmain: Small cleanup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13031 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_textures: Set gl_nopartialtextureupdates to 1 by default. Massive performance...
cloudwalk [Tue, 20 Oct 2020 10:58:31 +0000 (10:58 +0000)]
gl_textures: Set gl_nopartialtextureupdates to 1 by default. Massive performance improvement with dynamic lightmaps but may be slow for some drivers. Testing needed.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13030 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rsurf: Whitespace
cloudwalk [Tue, 20 Oct 2020 10:58:30 +0000 (10:58 +0000)]
gl_rsurf: Whitespace

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13029 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Don't draw any entities except the world and viewent if floating in the...
cloudwalk [Tue, 20 Oct 2020 10:58:29 +0000 (10:58 +0000)]
gl_rmain: Don't draw any entities except the world and viewent if floating in the void. Massive performance improvement on many large maps when flying in the void.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13028 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Remove some dead code
cloudwalk [Tue, 20 Oct 2020 10:58:29 +0000 (10:58 +0000)]
gl_rmain: Remove some dead code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13027 d7cf8633-e32d-0410-b094-e92efae38249

4 years agogl_rmain: Instead of avoiding a call to R_BuildLightmap if surface is not visible...
cloudwalk [Tue, 20 Oct 2020 10:58:28 +0000 (10:58 +0000)]
gl_rmain: Instead of avoiding a call to R_BuildLightmap if surface is not visible, simply don't set the update flag.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13026 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomathlib: Implement Q_rint and use it
cloudwalk [Tue, 20 Oct 2020 10:58:28 +0000 (10:58 +0000)]
mathlib: Implement Q_rint and use it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13025 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRevert "host: Simplify wait timer calculation, removing client/server code from commo...
cloudwalk [Tue, 20 Oct 2020 10:58:27 +0000 (10:58 +0000)]
Revert "host: Simplify wait timer calculation, removing client/server code from common code"

This reverts commit 1dfb76a50d855048ba125cbea61489d39535e7f4.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13024 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprogs: Implement builtin #245 (mod) for SSQC and CSQC
cloudwalk [Sat, 17 Oct 2020 19:48:49 +0000 (19:48 +0000)]
progs: Implement builtin #245 (mod) for SSQC and CSQC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13023 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRevert "Try to load the uppercase variants of various image files as well"
cloudwalk [Sat, 17 Oct 2020 04:38:29 +0000 (04:38 +0000)]
Revert "Try to load the uppercase variants of various image files as well"

This reverts commit 3992b4bad986288595baac9b9ea48b76f7cc2dbb.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13022 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoFix compatibility with DP's own server with NEHAHRABJP2 and 3 protocols.
cloudwalk [Fri, 16 Oct 2020 22:46:06 +0000 (22:46 +0000)]
Fix compatibility with DP's own server with NEHAHRABJP2 and 3 protocols.

Actually adhere to the protocols with regards to modelindex and
soundindex widths.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13021 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoqdefs: Set NET_MAXMESSAGE back to 65536 since the higher value broke Xonotic demos.
cloudwalk [Fri, 16 Oct 2020 22:46:05 +0000 (22:46 +0000)]
qdefs: Set NET_MAXMESSAGE back to 65536 since the higher value broke Xonotic demos.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13020 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Simplify wait timer calculation, removing client/server code from common code
cloudwalk [Fri, 16 Oct 2020 22:46:04 +0000 (22:46 +0000)]
host: Simplify wait timer calculation, removing client/server code from common code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13019 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_main: Fix crash
cloudwalk [Fri, 16 Oct 2020 22:46:03 +0000 (22:46 +0000)]
sv_main: Fix crash

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13018 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprogsvm.h: Make header compile standalone
cloudwalk [Fri, 16 Oct 2020 22:46:03 +0000 (22:46 +0000)]
progsvm.h: Make header compile standalone

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13017 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Remove unneeded includes
cloudwalk [Fri, 16 Oct 2020 22:46:02 +0000 (22:46 +0000)]
host: Remove unneeded includes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13016 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Move out some client and server code
cloudwalk [Fri, 16 Oct 2020 22:46:01 +0000 (22:46 +0000)]
host: Move out some client and server code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13015 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: Remove the Cvar_Set_NoCallback hack and make it a part of the callbacks where...
cloudwalk [Fri, 16 Oct 2020 22:46:01 +0000 (22:46 +0000)]
cvar: Remove the Cvar_Set_NoCallback hack and make it a part of the callbacks where it was used instead

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13014 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: Use Mem_strdup to copy off cvar defaults when registering
cloudwalk [Fri, 16 Oct 2020 22:46:00 +0000 (22:46 +0000)]
cvar: Use Mem_strdup to copy off cvar defaults when registering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13013 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: Remove redundant check if cvar changed before printing for CF_NOTIFY
cloudwalk [Fri, 16 Oct 2020 22:45:59 +0000 (22:45 +0000)]
cvar: Remove redundant check if cvar changed before printing for CF_NOTIFY

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13012 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: Whitespace and comment fixes
cloudwalk [Fri, 16 Oct 2020 22:45:59 +0000 (22:45 +0000)]
cvar: Whitespace and comment fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13011 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocvar: Refactor cvar linking code to a single function
cloudwalk [Fri, 16 Oct 2020 22:45:58 +0000 (22:45 +0000)]
cvar: Refactor cvar linking code to a single function

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13010 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocmd: Add a "cmdline" field to cmd_state_t and fill it.
cloudwalk [Fri, 16 Oct 2020 22:45:58 +0000 (22:45 +0000)]
cmd: Add a "cmdline" field to cmd_state_t and fill it.

This will be useful for commands that need to read the
entire command-line, as entered in the buffer, for some reason.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13009 d7cf8633-e32d-0410-b094-e92efae38249

4 years agolibav: Initial defs for libavcodec and libavformat. To be continued...(?)
cloudwalk [Fri, 16 Oct 2020 22:45:57 +0000 (22:45 +0000)]
libav: Initial defs for libavcodec and libavformat. To be continued...(?)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13008 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoogg: Use stdint types
cloudwalk [Fri, 16 Oct 2020 22:45:57 +0000 (22:45 +0000)]
ogg: Use stdint types

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13007 d7cf8633-e32d-0410-b094-e92efae38249

4 years agonetconn: Move the timeout checks to new function SV_CheckTimeouts
cloudwalk [Thu, 8 Oct 2020 12:54:27 +0000 (12:54 +0000)]
netconn: Move the timeout checks to new function SV_CheckTimeouts

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13006 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_main: Remove redundant function
cloudwalk [Thu, 8 Oct 2020 12:54:26 +0000 (12:54 +0000)]
sv_main: Remove redundant function

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13005 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocmd: Apply flags to QC commands too. Fixes +showscores in Xonotic.
cloudwalk [Tue, 6 Oct 2020 14:59:38 +0000 (14:59 +0000)]
cmd: Apply flags to QC commands too. Fixes +showscores in Xonotic.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13004 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRevert "Eliminate a few client-only files from the dedicated build"
cloudwalk [Tue, 6 Oct 2020 14:13:19 +0000 (14:13 +0000)]
Revert "Eliminate a few client-only files from the dedicated build"

This reverts commit d79fddea08994064f78b5825a50d578aab756e85.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13003 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosvvm_cmds: Implement built-in #352 (registercommand) for SSQC
cloudwalk [Tue, 6 Oct 2020 14:10:26 +0000 (14:10 +0000)]
svvm_cmds: Implement built-in #352 (registercommand) for SSQC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13002 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_cmds: Remove unused prototype
cloudwalk [Tue, 6 Oct 2020 14:10:25 +0000 (14:10 +0000)]
prvm_cmds: Remove unused prototype

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13001 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoprvm_cmds: Move some builtins to their respective sides of the engine (client, menu)
cloudwalk [Tue, 6 Oct 2020 14:10:24 +0000 (14:10 +0000)]
prvm_cmds: Move some builtins to their respective sides of the engine (client, menu)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13000 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomvm_cmds: Remove duplicate clientcommand builtin invalidly used by the menu
cloudwalk [Tue, 6 Oct 2020 14:10:23 +0000 (14:10 +0000)]
mvm_cmds: Remove duplicate clientcommand builtin invalidly used by the menu

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12999 d7cf8633-e32d-0410-b094-e92efae38249

4 years agopmove: Stub more fields in the header.
cloudwalk [Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)]
pmove: Stub more fields in the header.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12998 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Initialize all hooks to NULL to avoid problems on dedicated servers
cloudwalk [Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)]
host: Initialize all hooks to NULL to avoid problems on dedicated servers

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12997 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Add two hooks for disconnecting and toggling the menu
cloudwalk [Mon, 5 Oct 2020 18:03:45 +0000 (18:03 +0000)]
host: Add two hooks for disconnecting and toggling the menu

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12996 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoEliminate a few client-only files from the dedicated build
cloudwalk [Mon, 5 Oct 2020 18:03:45 +0000 (18:03 +0000)]
Eliminate a few client-only files from the dedicated build

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12995 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosvvm_cmds: Remove dead code
cloudwalk [Mon, 5 Oct 2020 18:03:44 +0000 (18:03 +0000)]
svvm_cmds: Remove dead code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12994 d7cf8633-e32d-0410-b094-e92efae38249

4 years agozone: Print only memstats with the memstats command. Fixes dependence on the renderer...
cloudwalk [Mon, 5 Oct 2020 18:03:43 +0000 (18:03 +0000)]
zone: Print only memstats with the memstats command. Fixes dependence on the renderer to compile zone.c

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12993 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_user: Remove commented out dead code.
cloudwalk [Mon, 5 Oct 2020 18:03:43 +0000 (18:03 +0000)]
sv_user: Remove commented out dead code.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12992 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_user: Rename SV_ClientThink to SV_PlayerPhysics to clarify its purpose
cloudwalk [Mon, 5 Oct 2020 18:03:42 +0000 (18:03 +0000)]
sv_user: Rename SV_ClientThink to SV_PlayerPhysics to clarify its purpose

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12991 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRevert "model_brush: Set mod_bsp_portalize to 0 by default for now. It hurts performa...
cloudwalk [Fri, 2 Oct 2020 04:07:06 +0000 (04:07 +0000)]
Revert "model_brush: Set mod_bsp_portalize to 0 by default for now. It hurts performance even if r_useportalculling is < 2"

This reverts commit 89a8bc7d7b02bcb9778d500c351c886d4fcfe694.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12990 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_main: Fix segfault and logic bugs when saving.
cloudwalk [Fri, 2 Oct 2020 02:26:44 +0000 (02:26 +0000)]
sv_main: Fix segfault and logic bugs when saving.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12989 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocl_particles: Tweak the smoke, blood, and rocket launcher particle parameters to...
cloudwalk [Fri, 2 Oct 2020 01:56:53 +0000 (01:56 +0000)]
cl_particles: Tweak the smoke, blood, and rocket launcher particle parameters to look more like Quake.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12988 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomodel_brush: Set mod_bsp_portalize to 0 by default for now. It hurts performance...
cloudwalk [Fri, 2 Oct 2020 01:56:52 +0000 (01:56 +0000)]
model_brush: Set mod_bsp_portalize to 0 by default for now. It hurts performance even if r_useportalculling is < 2

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12987 d7cf8633-e32d-0410-b094-e92efae38249

4 years agopmove: Initial implementation of pmove.h. Stub some structs. To be continued(?)
cloudwalk [Fri, 2 Oct 2020 01:56:52 +0000 (01:56 +0000)]
pmove: Initial implementation of pmove.h. Stub some structs. To be continued(?)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12986 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move usercmd_t to protocol.h since both client and server use it
cloudwalk [Fri, 2 Oct 2020 01:56:51 +0000 (01:56 +0000)]
client: Move usercmd_t to protocol.h since both client and server use it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12985 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomodel_shared: Rename dp_model_t to model_t, to avoid confusion with the dpm format
cloudwalk [Fri, 2 Oct 2020 01:56:50 +0000 (01:56 +0000)]
model_shared: Rename dp_model_t to model_t, to avoid confusion with the dpm format

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12984 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomodel_shared: Move skinframe struct to r_textures.h
cloudwalk [Fri, 2 Oct 2020 01:56:49 +0000 (01:56 +0000)]
model_shared: Move skinframe struct to r_textures.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12983 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomdfour: Switch to stdint.
cloudwalk [Fri, 2 Oct 2020 01:56:48 +0000 (01:56 +0000)]
mdfour: Switch to stdint.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12982 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoRemove unneeded #includes in some headers. Make some headers standalone.
cloudwalk [Fri, 2 Oct 2020 01:56:48 +0000 (01:56 +0000)]
Remove unneeded #includes in some headers. Make some headers standalone.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12981 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomodel: Split up headers. Introduce headers for each BSP format.
cloudwalk [Fri, 2 Oct 2020 01:56:47 +0000 (01:56 +0000)]
model: Split up headers. Introduce headers for each BSP format.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12980 d7cf8633-e32d-0410-b094-e92efae38249

4 years agofs: Stub a struct that'll be used later.
cloudwalk [Fri, 2 Oct 2020 01:56:46 +0000 (01:56 +0000)]
fs: Stub a struct that'll be used later.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12979 d7cf8633-e32d-0410-b094-e92efae38249

4 years agofs: Use stdint type for fs_offset_t
cloudwalk [Fri, 2 Oct 2020 01:56:46 +0000 (01:56 +0000)]
fs: Use stdint type for fs_offset_t

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12978 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Add r_stats.[ch]. Move render stats code to it.
cloudwalk [Fri, 2 Oct 2020 01:56:45 +0000 (01:56 +0000)]
client: Add r_stats.[ch]. Move render stats code to it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12977 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocmd: Fix integer overflow of cbuf->size when using defer.
cloudwalk [Wed, 30 Sep 2020 12:54:18 +0000 (12:54 +0000)]
cmd: Fix integer overflow of cbuf->size when using defer.

The size variable is used to track the size of the text buffers for
each node for allocation purposes. These never get smaller, and
the cbuf->size variable decrements based on length rather than
size. Eventually this causes an integer overflow.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12976 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomodel_brush: Add a note for a performance deficit. No code changes.
cloudwalk [Tue, 29 Sep 2020 19:19:10 +0000 (19:19 +0000)]
model_brush: Add a note for a performance deficit. No code changes.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12975 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_save: Add new hooks to reduce client code in server savegame code.
cloudwalk [Tue, 29 Sep 2020 19:19:09 +0000 (19:19 +0000)]
sv_save: Add new hooks to reduce client code in server savegame code.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12974 d7cf8633-e32d-0410-b094-e92efae38249

4 years agosv_ccmds: Move what are actually client commands to the client.
cloudwalk [Tue, 29 Sep 2020 19:19:08 +0000 (19:19 +0000)]
sv_ccmds: Move what are actually client commands to the client.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12973 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoquakedef: Add darkplaces.h and include it in as many files as I can. Split up and...
cloudwalk [Tue, 29 Sep 2020 19:19:07 +0000 (19:19 +0000)]
quakedef: Add darkplaces.h and include it in as many files as I can. Split up and clean up quakedef.h

A client and server agnostic master definitions file is nice to have and
this may speed up compile times and make refactoring easier later on.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12972 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Add cl_particles.h and move cl_particles definitions to it.
cloudwalk [Tue, 29 Sep 2020 19:19:06 +0000 (19:19 +0000)]
client: Add cl_particles.h and move cl_particles definitions to it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12971 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Add cl_parse.h and move cl_parse prototypes to it
cloudwalk [Tue, 29 Sep 2020 19:19:05 +0000 (19:19 +0000)]
client: Add cl_parse.h and move cl_parse prototypes to it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12970 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move SCR prototype to screen.h
cloudwalk [Tue, 29 Sep 2020 19:19:05 +0000 (19:19 +0000)]
client: Move SCR prototype to screen.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12969 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move keys prototypes to keys.h
cloudwalk [Tue, 29 Sep 2020 19:19:04 +0000 (19:19 +0000)]
client: Move keys prototypes to keys.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12968 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Add cap.h and move capture struct to it.
cloudwalk [Tue, 29 Sep 2020 19:19:04 +0000 (19:19 +0000)]
client: Add cap.h and move capture struct to it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12967 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Add view.h. Move view prototypes to it.
cloudwalk [Tue, 29 Sep 2020 19:19:03 +0000 (19:19 +0000)]
client: Add view.h. Move view prototypes to it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12966 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move sbar prototypes to sbar.h
cloudwalk [Tue, 29 Sep 2020 19:19:02 +0000 (19:19 +0000)]
client: Move sbar prototypes to sbar.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12965 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move host prototypes to host.h
cloudwalk [Tue, 29 Sep 2020 19:19:02 +0000 (19:19 +0000)]
client: Move host prototypes to host.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12964 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoclient: Move r_refdef structs and renderer prototypes to render.h
cloudwalk [Tue, 29 Sep 2020 19:19:01 +0000 (19:19 +0000)]
client: Move r_refdef structs and renderer prototypes to render.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12963 d7cf8633-e32d-0410-b094-e92efae38249

4 years agomakefile: Delete precompiled headers (.gch) with clean
cloudwalk [Tue, 29 Sep 2020 00:34:51 +0000 (00:34 +0000)]
makefile: Delete precompiled headers (.gch) with clean

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12962 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoAdd qdefs.h and qstats.h to split up quakedef.h. Make a lot of headers standalone...
cloudwalk [Tue, 29 Sep 2020 00:33:16 +0000 (00:33 +0000)]
Add qdefs.h and qstats.h to split up quakedef.h. Make a lot of headers standalone-compilable.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12961 d7cf8633-e32d-0410-b094-e92efae38249

4 years ago.gitignore: Exclude precompiled headers (*.gch)
cloudwalk [Tue, 29 Sep 2020 00:33:15 +0000 (00:33 +0000)]
.gitignore: Exclude precompiled headers (*.gch)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12960 d7cf8633-e32d-0410-b094-e92efae38249

4 years agolist: Add missing include guards.
cloudwalk [Tue, 29 Sep 2020 00:33:14 +0000 (00:33 +0000)]
list: Add missing include guards.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12959 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Introduce host.h and use it, instead of quakedef.h
cloudwalk [Tue, 29 Sep 2020 00:33:14 +0000 (00:33 +0000)]
host: Introduce host.h and use it, instead of quakedef.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12958 d7cf8633-e32d-0410-b094-e92efae38249

4 years agohost: Make Host_Quit_f static. Avoid calling it directly.
cloudwalk [Tue, 29 Sep 2020 00:33:13 +0000 (00:33 +0000)]
host: Make Host_Quit_f static. Avoid calling it directly.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12957 d7cf8633-e32d-0410-b094-e92efae38249

4 years agoserver: Move remaining server functions out of quakedef.h
cloudwalk [Tue, 29 Sep 2020 00:33:13 +0000 (00:33 +0000)]
server: Move remaining server functions out of quakedef.h

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12956 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocl_main: Make reconnect's function static and remove its prototype.
cloudwalk [Tue, 29 Sep 2020 00:33:12 +0000 (00:33 +0000)]
cl_main: Make reconnect's function static and remove its prototype.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12955 d7cf8633-e32d-0410-b094-e92efae38249

4 years agocmd: Update defer command to allocate the same as Cmd_ParseText
cloudwalk [Mon, 28 Sep 2020 14:48:42 +0000 (14:48 +0000)]
cmd: Update defer command to allocate the same as Cmd_ParseText

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12954 d7cf8633-e32d-0410-b094-e92efae38249