]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
Cloudwalk [Wed, 12 Aug 2020 16:51:47 +0000 (12:51 -0400)]
pr_comp: Use unsigned int for dprograms_t elements, matching FTEQW
Cloudwalk [Wed, 12 Aug 2020 16:21:24 +0000 (12:21 -0400)]
Merge branch 'master' into Cloudwalk/32bitprogs
cloudwalk [Wed, 12 Aug 2020 14:54:10 +0000 (14:54 +0000)]
sv_ccmds: Remove some more client-specific forward-to-server code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12900
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 12 Aug 2020 14:54:10 +0000 (14:54 +0000)]
host: Implement a hook struct in host_t. Use a hook to connect to local server
This eliminates some client-specific code in the server.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12899
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 12 Aug 2020 14:54:09 +0000 (14:54 +0000)]
host: Fix function name in print string.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12898
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 12 Aug 2020 14:54:09 +0000 (14:54 +0000)]
Make V_CalcRoll a common function. Add sv_rollangle and sv_rollspeed cvars.
This allows V_Init to move to client code.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12897
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 12 Aug 2020 14:54:08 +0000 (14:54 +0000)]
sys: Initialize the memory subsystem in main()
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12896
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:44 +0000 (11:46 +0000)]
sv_main: Use modelname when warning of no such map
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12895
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:43 +0000 (11:46 +0000)]
sv_ccmds: Remove redundant forwarding code from pause command
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12894
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:42 +0000 (11:46 +0000)]
utf8lib: Remove MSVC exception for stdint.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12893
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:42 +0000 (11:46 +0000)]
server: Consistency fix
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12892
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:41 +0000 (11:46 +0000)]
matrixlib: Define pi only once. Other definition is in mathlib.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12891
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 10 Aug 2020 11:46:41 +0000 (11:46 +0000)]
cap_ogg: Remove MSVC ifdefs for stdint.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12890
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 9 Aug 2020 18:38:05 +0000 (18:38 +0000)]
model_brush: Demote a Host_Error to Con_Printf warn for irregular lightmap sizes
This is probably not the proper solution, but certain maps that ioquake3
can load just fine, will at least load in DP now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12889
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 9 Aug 2020 18:38:05 +0000 (18:38 +0000)]
sbar: Implement cl_showspeed_factor, a multiplier of cm for cl_showspeed.
Also removed game-specific multipliers. These can be specified manually
as the player or mod author sees fit. In Xonotic, the scale varies per
map, and the scale of the player model can be adjusted with a cvar.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12888
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 9 Aug 2020 18:38:04 +0000 (18:38 +0000)]
sv_ccmds: Perform actual name change from a single function. Announce in chat.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12887
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 9 Aug 2020 18:38:03 +0000 (18:38 +0000)]
cmd: Reimplement console buffer system as a cyclic doubly linked list
This implements cbuf_t, cbuf_cmd_t, and an assorted array of helper
functions for handling the linked list(s). This also ports the defer
command to use the new system.
Each list node allocated will not be freed, except deferred commands,
mainly to avoid a Z_Malloc and Z_Free every time a player uses the
controls. Nodes are recycled in a separate linked list. This should be
okay as the memory usage is quite negligible
This new system has several advantages, namely, multiple command
interpreters may share the same console buffer on the same thread, and
each command will be executed in order, eliminating any potential bugs
related to execution order (which have already happened).
I haven't noticed any performance decrease and the new system works
exactly as the old one did.
Enjoy!
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12886
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 6 Aug 2020 12:18:41 +0000 (12:18 +0000)]
cmd: Delete stray function prototype that never actually got a definition
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12885
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 3 Aug 2020 19:25:45 +0000 (19:25 +0000)]
sv_ents: Move shared function to com_ents
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12884
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 3 Aug 2020 19:25:44 +0000 (19:25 +0000)]
com_game: Add missing copyright header
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12883
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 27 Jul 2020 14:52:03 +0000 (14:52 +0000)]
common: Split off the gameinfo stuff to com_game.c
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12882
d7cf8633 -e32d-0410-b094-
e92efae38249
Cloudwalk [Sun, 26 Jul 2020 17:11:53 +0000 (13:11 -0400)]
Merge branch 'master' into Cloudwalk/32bitprogs
cloudwalk [Sun, 26 Jul 2020 16:01:31 +0000 (16:01 +0000)]
cl_screen: Fix compile warning
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12881
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 26 Jul 2020 16:00:13 +0000 (16:00 +0000)]
Implement "ent_remove" command. Removes entity where you're aiming or by edict
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12880
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 26 Jul 2020 16:00:12 +0000 (16:00 +0000)]
sv_ccmds: Partially rewrite ent_create command to be entirely serverside
It will now use serverside functionality to generate the view matrix
used to trace a line. Client involvement is no longer necessary.
Also removed CL_TraceLine_FromViewOrigin
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12879
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 26 Jul 2020 16:00:11 +0000 (16:00 +0000)]
cl_screen: Fix logic error preventing unpause if jumping to local MP from SP
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12878
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 25 Jul 2020 15:09:56 +0000 (15:09 +0000)]
Implement "ent_remove_all" command. Removes all entities of classname in map
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12877
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:13:08 +0000 (16:13 +0000)]
ent_create: Fix potential memory leaks. Misc improvements
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12876
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:54 +0000 (16:00 +0000)]
Implement "ent_create" command. Creates an entity where you're aiming.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12875
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:54 +0000 (16:00 +0000)]
prvm_edict: Refactor PRVM_ED_LoadFromFile. Split up spawn code into functions
Also use PRVM_ED_FindGlobalEval
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12874
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:53 +0000 (16:00 +0000)]
prvm_edict: Implement PRVM_ED_FindGlobalEval
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12873
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:53 +0000 (16:00 +0000)]
cl_collision: Implement CL_TraceLine_FromViewOrigin
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12872
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:52 +0000 (16:00 +0000)]
cmd: Improve automatic assignment of command functions
See the new comment in cmd.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12871
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 24 Jul 2020 16:00:52 +0000 (16:00 +0000)]
image_png: Fix library load order. Fixes broken external textures in some games
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12870
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 23 Jul 2020 04:17:11 +0000 (04:17 +0000)]
sv_main: Minor formatting and commenting improvement/refactor of SV_Frame
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12869
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 23 Jul 2020 03:20:15 +0000 (03:20 +0000)]
sv_main: Receive packets even if we're gonna sleep, matching old behavior
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12868
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 23 Jul 2020 03:20:14 +0000 (03:20 +0000)]
host: Maintain sleep delta by making variable static, matching old behavior
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12867
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 18:36:01 +0000 (18:36 +0000)]
sv_main: Do perf calculations even if we're gonna sleep. Restores old behavior
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12866
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 18:36:00 +0000 (18:36 +0000)]
gl_rmain: Nerf bloom intensity. It won't burn your retinas as badly now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12865
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 18:35:59 +0000 (18:35 +0000)]
Misc console print improvements. Increase verbosity
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12864
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 13:59:58 +0000 (13:59 +0000)]
cl_cmd: Make _cl_color not read-only. That was annoying.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12863
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 13:58:22 +0000 (13:58 +0000)]
Fix OpenSolaris build. Add platform ID for a few other platforms
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12862
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 22 Jul 2020 13:58:22 +0000 (13:58 +0000)]
Experimental restoration of GLES2 support. It *might* compile.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12861
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 21 Jul 2020 19:19:23 +0000 (19:19 +0000)]
gl_draw: Silence a spammy print
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12860
d7cf8633 -e32d-0410-b094-
e92efae38249
Cloudwalk [Tue, 21 Jul 2020 19:12:48 +0000 (15:12 -0400)]
Merge branch 'master' into Cloudwalk/32bitprogs
cloudwalk [Tue, 21 Jul 2020 19:11:44 +0000 (19:11 +0000)]
Increase console verbosity so it feels like the engine is actually doing things
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12859
d7cf8633 -e32d-0410-b094-
e92efae38249
Cloudwalk [Tue, 21 Jul 2020 19:07:24 +0000 (15:07 -0400)]
prvm_edict: Add missing typecasts to fix alignment problem
Cloudwalk [Tue, 21 Jul 2020 16:45:52 +0000 (12:45 -0400)]
Merge branch 'master' into Cloudwalk/32bitprogs
cloudwalk [Tue, 21 Jul 2020 16:39:14 +0000 (16:39 +0000)]
cl_screen: Rename shownetgraph to net_graph. Keep shownetgraph as nickname
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12858
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 21 Jul 2020 16:39:13 +0000 (16:39 +0000)]
gl_rmain: Get the notexture texture from a single source
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12857
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 21 Jul 2020 16:39:13 +0000 (16:39 +0000)]
prvm_execprogram.h: Tuck a loose DISPATCH_OPCODE() under its opcode
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12856
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 21 Jul 2020 16:39:12 +0000 (16:39 +0000)]
host: Stray whitespace
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12855
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:03 +0000 (17:35 +0000)]
host: Minor comment improvements
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12854
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)]
vid_sdl: Set host.state = host_shutdown to exit by breaking the main loop
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12853
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:02 +0000 (17:35 +0000)]
host: Return to main() if the loop breaks and Sys_Quit from there
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12852
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
host: Check !host.restless instead of !cls.demoplayback for rand() call
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12851
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
host: Implement callback for host_framerate instead of checking it every frame
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12850
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 17:35:01 +0000 (17:35 +0000)]
cl_main: Get new input events even if we're supposed to sleep
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12849
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:56:37 +0000 (14:56 +0000)]
makefile: Add -Wwrite-strings. This is also a -Wall warning under g++
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12848
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:56:37 +0000 (14:56 +0000)]
Revert "makefile: Add -Wc++11-compat-reserved-user-defined-literal"
This reverts commit
8cca05ca8d1e9b28c00afd25ec7d80b0ffe4f68f .
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12847
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:39:55 +0000 (14:39 +0000)]
makefile: Add -Wc++11-compat-reserved-user-defined-literal
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12846
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:38:18 +0000 (14:38 +0000)]
Fix compile warnings from gcc and g++
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12845
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:27:33 +0000 (14:27 +0000)]
host: Major refactor
* Split up Host_Main. Implemented Host_Frame (which is now most of what
Host_Main was), and moved timekeeping and sleep code to the new
Host_Main.
* Moved all server frame code to the new SV_Frame.
* Fixed sleep behavior. A dedicated server should sleep again.
* General cleanup. New functions to split things up and keep things
readable.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12844
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:27:33 +0000 (14:27 +0000)]
host: Remove sv_fixedframeratesingleplayer
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12843
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 20 Jul 2020 14:27:32 +0000 (14:27 +0000)]
sv_main: Rename sv_ratelimitlocalplayer to host_limitlocal. Old name still works
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12842
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 19 Jul 2020 12:26:40 +0000 (12:26 +0000)]
sv_ccmds: In status cmd, re-add Con_Printf code so dedicated can see it again
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12841
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 18 Jul 2020 19:45:09 +0000 (19:45 +0000)]
prvm_edict: Minor edit to string
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12840
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 18 Jul 2020 19:45:09 +0000 (19:45 +0000)]
cmd: Use reentrant mutex for cbufs. Fixes deadlock when expanding aliases in some situations
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12839
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 18 Jul 2020 19:45:08 +0000 (19:45 +0000)]
Add .ccls-cache to .gitignore
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12838
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 18 Jul 2020 19:45:08 +0000 (19:45 +0000)]
client: Implement CL_Frame. Move client cvars out of host to cl_main
The client now performs its frame in its own side of the engine. This
will make client/server separation easier later on.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12837
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 23:38:51 +0000 (23:38 +0000)]
menu: Don't abort the frame if the menu crashes during init, so video can start
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12836
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 13:59:34 +0000 (13:59 +0000)]
gl_rmain: Disable water (and warpzones) when r_lockvisibility or r_lockpvs are 1
Fixes an issue where it would render the reflection of water, or the
opposite side of the warpzone, instead of where the actual frustum is.
There's probably a better solution but this should be fine for now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12835
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 13:59:34 +0000 (13:59 +0000)]
gl_rmain: Don't set frustum when r_lockvisibility or r_lockpvs are 1
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12834
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 05:50:50 +0000 (05:50 +0000)]
gl_rsurf: Check r_lockvisibility only once
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12833
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 05:25:23 +0000 (05:25 +0000)]
gl_rsurf: Don't cull geometry that leaves the view frustum with r_lockvisibility
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12832
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Fri, 17 Jul 2020 04:44:58 +0000 (04:44 +0000)]
gl_rsurf: Set default of r_useportalculling to 1
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12831
d7cf8633 -e32d-0410-b094-
e92efae38249
Cloudwalk [Thu, 16 Jul 2020 18:03:18 +0000 (14:03 -0400)]
prvm: Initial experimental implementation of support for 32-bit progs addressing
This implementation is largely incomplete and also includes some fixes
to some opcodes. It's yet to be thoroughly reviewed.
Thanks to Spoike for the patch. He also left a few comments on some
compatibility issues DP ought to fix, which can be found by
grepping "spike FIXME".
cloudwalk [Thu, 16 Jul 2020 14:45:10 +0000 (14:45 +0000)]
Fix search_packfile_begin builtin number in the menu VM, also fix checkextension not working in the menu
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12830
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 16 Jul 2020 14:45:08 +0000 (14:45 +0000)]
Fix some duplicate and missing builtin entries in csprogsdefs.qc
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12829
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 16 Jul 2020 10:48:23 +0000 (10:48 +0000)]
dpdefs: Don't declare __fullspawndata. Avoids allocation if a mod doesn't use it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12828
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 16 Jul 2020 10:48:22 +0000 (10:48 +0000)]
prvm_edict: For __fullspawndata, set the "start" pointer before '{' is parsed
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12827
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:11 +0000 (14:59 +0000)]
progs: Implement new extension DP_QC_FS_SEARCH_PACKFILE
Adds an optional parameter to the search_begin builtin function that
allows specifying a package file to look in, skipping any results that
aren't inside the package. Useful for mods aiming to provide
compatibility with Quake 3's .arena files, as they don't match the .bsp
filename.
Patch from Mario: https://gitlab.com/xonotic/darkplaces/-/merge_requests/100
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12826
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:10 +0000 (14:59 +0000)]
Don't save scr_loadingscreen_picture to config (matches other loading screen cvars), as per wrath-darkplaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12825
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Some minor tweaks to CACHEPICFLAG_LINEAR and the nasty -game name rejection message to ease the processes of backporting and modernization
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12824
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Don't show beam list overflow spam warnings normally
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12823
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:09 +0000 (14:59 +0000)]
Fix a potential memory leak with wavefront sounds
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12822
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:08 +0000 (14:59 +0000)]
Implement pausesound command, ported from wrath-darkplaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12821
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:08 +0000 (14:59 +0000)]
Increase MAX_CACHED_PICS to 2048, as per wrath-darkplaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12820
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)]
Save cl_maxfps_alwayssleep changes to config
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12819
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)]
Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing -game name
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12818
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 14:59:06 +0000 (14:59 +0000)]
Add support for CACHEPICFLAG_LINEAR (currently unused), ported from wrath-darkplaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12817
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 13:55:21 +0000 (13:55 +0000)]
libxmp: Misc improvements (nico)
* Don't use global CFLAGS for libxmp in makefile
* Add S_GetSoundWidth() function, currently not used (yet)
* Clamp samplerate to engine min/max
* Lower the excessive stereo separation
https://gitlab.com/xonotic/darkplaces/-/merge_requests/94
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12816
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 13:55:20 +0000 (13:55 +0000)]
zone: Fix backed file alloc for BSD. Check for -1 in addition to NULL on mmap data (David CARLIER)
https://gitlab.com/xonotic/darkplaces/-/merge_requests/55
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12815
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 13:55:19 +0000 (13:55 +0000)]
progs: Correct drawline and sound builtin parameters (terencehill)
https://gitlab.com/xonotic/darkplaces/-/merge_requests/99
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12814
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:19 +0000 (02:44 +0000)]
prvm_edict: Implement __fullspawndata. Testing only; don't use in production yet
http://icculus.org/finger/marco?date=2019-01-25&time=05-38-02
The idea of exposing these key/value pairs to QC is great but perhaps a
a better, cleaner method could be used down the road. But this has to be
kept for FTE compatibility.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12813
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:18 +0000 (02:44 +0000)]
host: Shutdown client-only subsystems in CL_Shutdown.
This fixes an issue where darkplaces_history.txt was being generated on
dedicated servers but wasn't actually being used.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12812
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:18 +0000 (02:44 +0000)]
sv_ccmds: In status cmd, print IPs to loopback client
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12811
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:17 +0000 (02:44 +0000)]
host: Remove redundant check
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12810
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)]
host: Sleep at the end of the frame. Receive packets during server frame.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12809
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:16 +0000 (02:44 +0000)]
host: Remove redundant check. Only the bigger of these are going to be picked
cl_timer shouldn't move at all under a dedicated server and sv_timer
shouldn't move if not hosting a server.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12808
d7cf8633 -e32d-0410-b094-
e92efae38249