]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
Cloudwalk [Mon, 3 Aug 2020 19:26:06 +0000 (15:26 -0400)]
(WIP) cmd: Reimplement console buffer system as a linked list
This has several advantages, namely, multiple command interpreters
may share the same console buffer on the same thread, and each
command can be executed in order, eliminating any potential bugs
related to that.
Things left to do:
* Merge deferred commands into the same system and reenable
the defer command.
* Use a cyclic doubly linked list instead of the garbage I
wrote.
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 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: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 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 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
cloudwalk [Wed, 15 Jul 2020 02:44:15 +0000 (02:44 +0000)]
host: Adjust timers at the end of each client or server frame, and other tweaks
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12807
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:15 +0000 (02:44 +0000)]
sys_shared: Remove #ifdef for VERY old and obsolete compiler...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12806
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Wed, 15 Jul 2020 02:44:14 +0000 (02:44 +0000)]
prvm: Fix multiple int opcode issues reported by Spoike
A lot of these are boolean opcodes and should return a bool (int).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12805
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:13 +0000 (16:00 +0000)]
host: Move server perf code to server frame code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12804
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:13 +0000 (16:00 +0000)]
host: Move timer resets to client/server code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12803
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:12 +0000 (16:00 +0000)]
host: Move server/client-specific frametime limiting code outside of common code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12802
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:11 +0000 (16:00 +0000)]
host: Use new global host.sleeptime instead of svs variable outside server code
This, again, moves server code out of common code.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12801
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:11 +0000 (16:00 +0000)]
host, csqc: Remove cl.csqc_paused. Use new global host.paused instead.
This removes some client/server-only code in the client/server frames.
This also cleans up the cl struct a bit by only having one source of
knowing if we should pause for both CSQC and opening the console or menu
These changes will help eventually move the client and server frame code
to their own functions (CL_Frame and SV_Frame respectively).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12800
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:10 +0000 (16:00 +0000)]
csqc: Minor refactor of a few functions
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12799
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:10 +0000 (16:00 +0000)]
host: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)
This is meant to reduce client code in the common Host_Main.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12798
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:09 +0000 (16:00 +0000)]
bsp: Merge Q1/Q2 LoadSubmodels into one func. The differences were negligible
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12797
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 13 Jul 2020 16:00:09 +0000 (16:00 +0000)]
bsp: Rename a few more functions that are used by more than one BSP format
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12796
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 11 Jul 2020 01:51:42 +0000 (01:51 +0000)]
Improve clang support. Add tcc support. Clang builds now perform as good as gcc
tcc builds perform like crap, but it's nice to support a fourth
compiler. There is an issue on Linux with a Pulseaudio library not
linking correctly, however.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12795
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 9 Jul 2020 16:58:43 +0000 (16:58 +0000)]
prvm: Implement integer and pointer opcodes
NOTE: At the time of this commit, gmqcc does not generate these opcodes.
Only fteqcc does. These may be unstable or incomplete. Do not use in
production yet.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12794
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 9 Jul 2020 16:58:42 +0000 (16:58 +0000)]
Refactor the model loading code to use an array of structs for each format
Allows to cleanly and explicitly define a model and what the loader
should look for.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12793
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 9 Jul 2020 16:58:41 +0000 (16:58 +0000)]
Rename model functions to make them more generic and obvious what they're for
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12792
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Thu, 9 Jul 2020 16:58:41 +0000 (16:58 +0000)]
common: Add game "DOOMBRINGER"
Patch submitted by kristus <kristustf@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12791
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 7 Jul 2020 00:10:57 +0000 (00:10 +0000)]
Revert "Fix texture load failure not printing"
This reverts commit
6011b7190e2a711d1a46d0389d8c0c7ff7e5ef22 .
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12790
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Tue, 7 Jul 2020 00:07:53 +0000 (00:07 +0000)]
Ugly hack to fix skybox textures being loaded as MATERIALFLAG_WALL in Q1BSP
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12789
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Mon, 6 Jul 2020 12:45:55 +0000 (12:45 +0000)]
Fix loading of external Q1BSP textures. Does not fix skybox. Causes console spam
These two are separate known issues.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12788
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sun, 5 Jul 2020 12:38:38 +0000 (12:38 +0000)]
Fix nasty typo in a dpsnprintf causing truncated cmds. Memory safety? PFFT (/s)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12787
d7cf8633 -e32d-0410-b094-
e92efae38249
cloudwalk [Sat, 4 Jul 2020 14:09:37 +0000 (14:09 +0000)]
Fix Windows build of sys_unix.c
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12786
d7cf8633 -e32d-0410-b094-
e92efae38249