divverent/darkplaces.git
16 years agoTomaz patch to fopen builtin which now tries to read files outside data/ (but won...
havoc [Mon, 17 May 2004 19:27:00 +0000 (19:27 +0000)]
Tomaz patch to fopen builtin which now tries to read files outside data/ (but won't try to write or append outside data/), for better compatibility with other engines that don't use data/ in their FRIK_FILE implementation

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

16 years agoTomaz's con_backscroll patch, backscroll is no longer reset by new prints, and remain...
havoc [Mon, 17 May 2004 19:18:31 +0000 (19:18 +0000)]
Tomaz's con_backscroll patch, backscroll is no longer reset by new prints, and remains locked on the same position in the history

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

16 years agochanged Com_HexDumpToConsole to print space separated 4 byte groups, added some comme...
havoc [Mon, 17 May 2004 19:08:44 +0000 (19:08 +0000)]
changed Com_HexDumpToConsole to print space separated 4 byte groups, added some comments, and cleaned up the readability of it
thanks to Tomaz for the beginnings of this patch

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

16 years agofix r_fullbright being accidentally reset on level change
havoc [Mon, 17 May 2004 18:22:31 +0000 (18:22 +0000)]
fix r_fullbright being accidentally reset on level change

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

16 years agoTomaz optimized Matrix4x4_CreateFromQuakeEntity
havoc [Sun, 16 May 2004 00:21:11 +0000 (00:21 +0000)]
Tomaz optimized Matrix4x4_CreateFromQuakeEntity

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

16 years agoTomaz optimized AngleVectorsFLU for the roll == 0 case
havoc [Sun, 16 May 2004 00:19:10 +0000 (00:19 +0000)]
Tomaz optimized AngleVectorsFLU for the roll == 0 case

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

16 years agoTomaz made envmap also save px/nx/py/ny/pz/nz files (GL cubemap)
havoc [Sat, 15 May 2004 23:35:18 +0000 (23:35 +0000)]
Tomaz made envmap also save px/nx/py/ny/pz/nz files (GL cubemap)

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

16 years agoTomaz optimized AngleVectors for the roll == 0 case
havoc [Sat, 15 May 2004 23:24:11 +0000 (23:24 +0000)]
Tomaz optimized AngleVectors for the roll == 0 case

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

16 years agoTomaz enabled some numpad keys in the console and the insert key, and also fixed...
havoc [Sat, 15 May 2004 21:49:10 +0000 (21:49 +0000)]
Tomaz enabled some numpad keys in the console and the insert key, and also fixed up the console edit line rendering so you can move left/right on the editing line

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

16 years agoTomaz renamed all R_Model_Brush functions to R_Q1BSP
havoc [Sat, 15 May 2004 20:43:17 +0000 (20:43 +0000)]
Tomaz renamed all R_Model_Brush functions to R_Q1BSP

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

16 years agoadded comments to cubemap loader, to explain its confusing logic
havoc [Sat, 15 May 2004 20:40:07 +0000 (20:40 +0000)]
added comments to cubemap loader, to explain its confusing logic

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

16 years agoTomaz fixed the envmap command; it was saving black images, and now saves images...
havoc [Sat, 15 May 2004 20:24:19 +0000 (20:24 +0000)]
Tomaz fixed the envmap command; it was saving black images, and now saves images in the correct order with appropriate flipping, to comply with skybox arrangements

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

16 years agorenamed most Image_CopyMux parameters to begin with input to clarify their purpose...
havoc [Sat, 15 May 2004 19:35:15 +0000 (19:35 +0000)]
renamed most Image_CopyMux parameters to begin with input to clarify their purpose, inputwidth for example, because these are input properties, not output properties
cleaned up Image_CopyMux, and fixed its handling of inputflipdiagonal to properly work with unequal inputwidth/inputheight
swapped Image_CopyMux numinputcomponents/numoutputcomponents parameters to be more consistent with the 'output, input' order of its other parameters

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

16 years ago*** empty log message ***
havoc [Sat, 15 May 2004 18:34:46 +0000 (18:34 +0000)]
*** empty log message ***

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

16 years agofix skybox loading in q3 shaders, needed to append a _ to the end of the skybox name
havoc [Sat, 15 May 2004 05:52:06 +0000 (05:52 +0000)]
fix skybox loading in q3 shaders, needed to append a _ to the end of the skybox name

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

16 years agoTomaz fixed cubemap loading of skyboxes
havoc [Fri, 14 May 2004 15:53:58 +0000 (15:53 +0000)]
Tomaz fixed cubemap loading of skyboxes

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

16 years agoTomaz fixed the skybox arrangement to match glquake/quake2/quake3/3dstudio
havoc [Fri, 14 May 2004 00:17:43 +0000 (00:17 +0000)]
Tomaz fixed the skybox arrangement to match glquake/quake2/quake3/3dstudio

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

16 years agoTomaz fixed the stencil support (I had accidentally broken it in my over-zealous...
havoc [Fri, 14 May 2004 00:16:34 +0000 (00:16 +0000)]
Tomaz fixed the stencil support (I had accidentally broken it in my over-zealous resetting of gl related variables)

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

16 years ago*** empty log message ***
havoc [Thu, 13 May 2004 22:39:18 +0000 (22:39 +0000)]
*** empty log message ***

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

16 years agoTomaz's gl_polyblend patch to control intensity of view blends
havoc [Thu, 13 May 2004 22:02:33 +0000 (22:02 +0000)]
Tomaz's gl_polyblend patch to control intensity of view blends

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

16 years agoTomaz's patch to add fov to options menu
havoc [Thu, 13 May 2004 19:10:44 +0000 (19:10 +0000)]
Tomaz's patch to add fov to options menu

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

16 years ago*** empty log message ***
havoc [Thu, 13 May 2004 18:41:18 +0000 (18:41 +0000)]
*** empty log message ***

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

16 years agoTomaz's nametime patch (prevent frequent name changes on the server)
havoc [Thu, 13 May 2004 18:40:01 +0000 (18:40 +0000)]
Tomaz's nametime patch (prevent frequent name changes on the server)

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

16 years agoTomaz's patch to name screenshots based on gamemode or -game if specified
havoc [Thu, 13 May 2004 17:23:09 +0000 (17:23 +0000)]
Tomaz's patch to name screenshots based on gamemode or -game if specified

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

16 years agoTomaz's patch to ask the driver for a gl_texture_anisotropy limit, and apply that...
havoc [Wed, 12 May 2004 22:08:29 +0000 (22:08 +0000)]
Tomaz's patch to ask the driver for a gl_texture_anisotropy limit, and apply that limit
also fixed a bunch of extension variables that were not being reset on resolution changes

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

16 years ago*** empty log message ***
havoc [Wed, 12 May 2004 18:03:11 +0000 (18:03 +0000)]
*** empty log message ***

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

16 years agonow ignores darkplaces-sdl and darkplaces-dedicated executables, removed darkplaces...
havoc [Wed, 12 May 2004 16:57:48 +0000 (16:57 +0000)]
now ignores darkplaces-sdl and darkplaces-dedicated executables, removed darkplaces-3dfx executable (as it has been abandoned for a long time)

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

16 years agoTomaz's patch for r_waterwarp with controllable intensity
havoc [Wed, 12 May 2004 16:55:42 +0000 (16:55 +0000)]
Tomaz's patch for r_waterwarp with controllable intensity

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

16 years agoTomaz's patch for optimized vectorlength calls in the vertex lighting code, as Vic...
havoc [Wed, 12 May 2004 16:52:39 +0000 (16:52 +0000)]
Tomaz's patch for optimized vectorlength calls in the vertex lighting code, as Vic suggested

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

16 years agoFixed a few warnings regarding casts of lvalues (deprecated in GCC 3.3, unsupported...
molivier [Tue, 4 May 2004 10:10:10 +0000 (10:10 +0000)]
Fixed a few warnings regarding casts of lvalues (deprecated in GCC 3.3, unsupported in GCC 3.4)

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

16 years agoRemoved the printings at the end of ALSA driver initialization. Fixed the soundinfo...
molivier [Tue, 4 May 2004 08:45:14 +0000 (08:45 +0000)]
Removed the printings at the end of ALSA driver initialization. Fixed the soundinfo format string for the DMA pointer

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

16 years agocredited Elric for some of his great contributions, and removed the warnings about...
havoc [Mon, 3 May 2004 10:11:16 +0000 (10:11 +0000)]
credited Elric for some of his great contributions, and removed the warnings about music files often using 50mb or so of memory, as Elric made them stream

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

16 years agoclean up vector parsing in ED_ParseEpair, now stores 0 into any vector components...
havoc [Sun, 2 May 2004 03:54:31 +0000 (03:54 +0000)]
clean up vector parsing in ED_ParseEpair, now stores 0 into any vector components that can not be read due to end of string

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

16 years agoThe log file is now started and stopped at run-time whenever the value of the "log_fi...
molivier [Thu, 29 Apr 2004 07:54:05 +0000 (07:54 +0000)]
The log file is now started and stopped at run-time whenever the value of the "log_file" cvar changes. Added timestamps at the beginning and at the end of the log files. Increased the log queue size from 256 to 512.
DP now appends the new logs instead of overwritting the files (except when using "-condebug", it overwrites "qconsole.log").

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

16 years agoUpdated ALSA driver (API version 1.0). The vast majority of the code comes from Quake...
molivier [Thu, 29 Apr 2004 07:51:11 +0000 (07:51 +0000)]
Updated ALSA driver (API version 1.0). The vast majority of the code comes from QuakeForge, like the previous versions

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

16 years agoFixed a bug in the Ogg Vorbis streaming code that can cause sound files to be unplaya...
molivier [Thu, 29 Apr 2004 07:48:32 +0000 (07:48 +0000)]
Fixed a bug in the Ogg Vorbis streaming code that can cause sound files to be unplayable if the sound device is set to a lower speed

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

16 years agomerged R_DrawSurfaceChain into R_DrawSurfaces loop
havoc [Sun, 18 Apr 2004 01:47:46 +0000 (01:47 +0000)]
merged R_DrawSurfaceChain into R_DrawSurfaces loop

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

16 years agomore consistent and helpful model loading error messages
havoc [Sun, 18 Apr 2004 01:24:54 +0000 (01:24 +0000)]
more consistent and helpful model loading error messages

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

16 years agofixed the huge networking problems regarding invalid reference frames
havoc [Fri, 16 Apr 2004 08:06:36 +0000 (08:06 +0000)]
fixed the huge networking problems regarding invalid reference frames

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

16 years agomade the player setup menu actually change the rate cvar (like it was supposed to)
havoc [Fri, 16 Apr 2004 06:36:32 +0000 (06:36 +0000)]
made the player setup menu actually change the rate cvar (like it was supposed to)

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

16 years agoFine-grained CD volume for NetBSD. Made the CD error message "Bad track number" a...
molivier [Fri, 16 Apr 2004 06:28:12 +0000 (06:28 +0000)]
Fine-grained CD volume for NetBSD. Made the CD error message "Bad track number" a normal (non-developer) message. Zeroed the 3rd and 4th channel volumes in the Linux CD module too. The initial CD volume is now printed at startup (developer message).

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

16 years agorenamed r_shadow_worldshadows to r_shadow_realtime_world_shadows
havoc [Fri, 16 Apr 2004 06:08:18 +0000 (06:08 +0000)]
renamed r_shadow_worldshadows to r_shadow_realtime_world_shadows
renamed r_shadow_dlightshadows to r_shadow_realtime_dlight_shadows, and added r_shadow_realtime_world_dlightshadows to control dlight shadows in realtime world mode

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

16 years agomake WinMain commandline parser handle quoted strings
havoc [Fri, 16 Apr 2004 06:06:24 +0000 (06:06 +0000)]
make WinMain commandline parser handle quoted strings

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

16 years agoFine-grained CD volume support for Linux. Note that it uses the CD player internal...
molivier [Thu, 15 Apr 2004 14:24:03 +0000 (14:24 +0000)]
Fine-grained CD volume support for Linux. Note that it uses the CD player internal volume, not the system audio mixer. The BSD version should follow very soon; if someone knows how to do that on Win32, I would be glad to hear from him.

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

16 years agoFixed streaming of sounds with a sample rate different from the engine output rate...
molivier [Thu, 15 Apr 2004 06:04:09 +0000 (06:04 +0000)]
Fixed streaming of sounds with a sample rate different from the engine output rate. Streamed sounds are now processed by 1 sec steps, to avoid lossing samples in ResampleSfx among other things (it could occur when resampling from 48KHz to 44KHz for instance).

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

16 years agor_ambient no longer alters the lightmap in q1bsp, instead it adds another render...
havoc [Wed, 14 Apr 2004 08:47:14 +0000 (08:47 +0000)]
r_ambient no longer alters the lightmap in q1bsp, instead it adds another render pass (this makes sense for performance as it's a cheat anyway, no optimization needed)

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

16 years agorenamed q3mface_t to q3msurface_t
havoc [Wed, 14 Apr 2004 07:53:38 +0000 (07:53 +0000)]
renamed q3mface_t to q3msurface_t

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

16 years agorenamed model->numsurfaces to model->nummodelsurfaces
havoc [Wed, 14 Apr 2004 07:34:44 +0000 (07:34 +0000)]
renamed model->numsurfaces to model->nummodelsurfaces
renamed model->brushq1.firstmodelsurface and model->brushq1.nummodelsurfaces to model->firstmodelsurface and model->nummodelsurfaces

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

16 years agomerged R_DrawWorld into DrawSky/Draw so that rmain can just call DrawSky and Draw...
havoc [Wed, 14 Apr 2004 06:17:43 +0000 (06:17 +0000)]
merged R_DrawWorld into DrawSky/Draw so that rmain can just call DrawSky and Draw on the world entity like any other

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

16 years agoThe Linux CD module now uses O_NONBLOCK when opening the CDROM device to avoid failur...
molivier [Wed, 14 Apr 2004 06:02:02 +0000 (06:02 +0000)]
The Linux CD module now uses O_NONBLOCK when opening the CDROM device to avoid failure if there's no CD in the player

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

16 years agocleaned up submodel loading, and wrote a big description of how quake worked (since...
havoc [Wed, 14 Apr 2004 05:13:50 +0000 (05:13 +0000)]
cleaned up submodel loading, and wrote a big description of how quake worked (since it was so confusing), as well as how it now works

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

16 years ago*** empty log message ***
havoc [Wed, 14 Apr 2004 04:59:06 +0000 (04:59 +0000)]
*** empty log message ***

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

16 years agoadded a number of tips and a sound features section
havoc [Wed, 14 Apr 2004 04:58:31 +0000 (04:58 +0000)]
added a number of tips and a sound features section

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

16 years agofix sprite pitch; apparently quake did not negate their pitch after all...
havoc [Wed, 14 Apr 2004 04:47:31 +0000 (04:47 +0000)]
fix sprite pitch; apparently quake did not negate their pitch after all...

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

16 years agoanother change for transfusion (remove the little frag counts display from the sbar)
havoc [Mon, 12 Apr 2004 07:58:04 +0000 (07:58 +0000)]
another change for transfusion (remove the little frag counts display from the sbar)

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

16 years agopatch from transfusion team to change transfusion hud layout a bit (moves minideathma...
havoc [Mon, 12 Apr 2004 07:34:02 +0000 (07:34 +0000)]
patch from transfusion team to change transfusion hud layout a bit (moves minideathmatch overlay to be across the top of the screen, and centers the sbar even in deathmatch)

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

16 years agopatch from transfusion team to add taunts to transfusion bind menu
havoc [Mon, 12 Apr 2004 07:30:47 +0000 (07:30 +0000)]
patch from transfusion team to add taunts to transfusion bind menu

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

16 years agoThe first step towards a real CD volume setting (only the fake CD tracks volume are...
molivier [Sun, 11 Apr 2004 17:41:17 +0000 (17:41 +0000)]
The first step towards a real CD volume setting (only the fake CD tracks volume are correctly supported for the moment). Removed a couple of useless definitions in "sound.h".

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

16 years agoAdded an error message when the sound mixer requests more samples from a stream than...
molivier [Sun, 11 Apr 2004 17:34:51 +0000 (17:34 +0000)]
Added an error message when the sound mixer requests more samples from a stream than its buffer can contain

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

16 years agoreverse pitch direction on PFLAGS_FULLDYNAMIC light entities to match tenebrae
havoc [Sat, 10 Apr 2004 02:20:09 +0000 (02:20 +0000)]
reverse pitch direction on PFLAGS_FULLDYNAMIC light entities to match tenebrae

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

16 years agoThe base size of the log queue is 256 bytes, not 4 (it was a test for the queue autom...
molivier [Fri, 9 Apr 2004 19:37:18 +0000 (19:37 +0000)]
The base size of the log queue is 256 bytes, not 4 (it was a test for the queue automatic resizing that was commited by mistake)

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

16 years agoAdded a "log_file" cvar to control the log file name (default: "" which means no...
molivier [Thu, 8 Apr 2004 13:11:51 +0000 (13:11 +0000)]
Added a "log_file" cvar to control the log file name (default: "" which means no log, "-condebug" sets it to "qconsole.log"). Added a "log_sync" cvar to control whether or not the log output is flushed at each write (default: 0, "-condebug" sets it to 1).
Note that we now need to wait until the cvars are initialized to start logging the console, so the logging system puts every message printed before that in a logging queue that is proceed when the log file is actually opened.
Renamed "Con_LogPrint" and "Con_LogPrintf" to "Log_Print" and "Log_Printf" respectively. Added "FS_VPrintf"

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

16 years ago"soundlist" now tells you if a sound is streamed and whether it is mono or stereo
molivier [Thu, 8 Apr 2004 12:59:34 +0000 (12:59 +0000)]
"soundlist" now tells you if a sound is streamed and whether it is mono or stereo

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

16 years agofixed entities disappearing when partially submerged in water (it was a very stupid...
havoc [Wed, 7 Apr 2004 04:36:11 +0000 (04:36 +0000)]
fixed entities disappearing when partially submerged in water (it was a very stupid bounding box bug)

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

16 years agoRemoved an unused cvar (logfile)
molivier [Tue, 6 Apr 2004 13:08:07 +0000 (13:08 +0000)]
Removed an unused cvar (logfile)

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

16 years agoFixed cl_nodelta 1
molivier [Tue, 6 Apr 2004 05:58:07 +0000 (05:58 +0000)]
Fixed cl_nodelta 1

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

16 years agoFake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead...
molivier [Mon, 5 Apr 2004 07:00:19 +0000 (07:00 +0000)]
Fake CD tracks support; DP now tries to play "sound/cdtracks/trackXX.wav" instead of CD track XX. If it fails, it tries "trackXX.ogg", and then the real CD track if any. CD console commands should work as expected.
"cd_shared.c" is now part of the common files so it allows people to compile DP without real CD support, but with fake CD tracks support. "cd_null.c" is now a null driver, at the same level as "cd_linux.c" or "cd_win.c".
Fixed the broken return value of S_StartSound and a potential memory leak in S_StopAllSounds in the process.

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

16 years agoFixed the "-path" option. A couple of FS variables were never initialized explicitly
molivier [Mon, 5 Apr 2004 06:51:41 +0000 (06:51 +0000)]
Fixed the "-path" option. A couple of FS variables were never initialized explicitly

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

16 years agoinlined Host_EndGame in CL_ParseServerMessage's svc_disconnect case and greatly reduc...
havoc [Mon, 5 Apr 2004 06:49:31 +0000 (06:49 +0000)]
inlined Host_EndGame in CL_ParseServerMessage's svc_disconnect case and greatly reduced its code (removing the server shutdown, etc), this fixed an infinite recursion shutdown crash introduced by the Host_ShutdownServer changes

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

16 years agoFixed Win32 dedicated server input
molivier [Mon, 5 Apr 2004 06:45:47 +0000 (06:45 +0000)]
Fixed Win32 dedicated server input

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

16 years agofixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client...
havoc [Mon, 5 Apr 2004 06:20:23 +0000 (06:20 +0000)]
fixed very annoying '5 second timeout' bug in Host_ShutdownServer (the local client was timing out on the NetConn_SendToAll because the server was ignoring the client's reply packets, by setting sv.active = false too early)
added Host_ShutdownServer call near every CL_Disconnect call, for consistency
CL_Disconnect and Host_ShutdownServer now report their calls as dprints (previously they were entirely silent)

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

16 years agomake shrak work (lots of SOLID_BSP/MOVETYPE_PUSH entities with no models)
havoc [Sat, 3 Apr 2004 23:20:30 +0000 (23:20 +0000)]
make shrak work (lots of SOLID_BSP/MOVETYPE_PUSH entities with no models)

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

16 years agofixed missing newline after map name in join message
havoc [Sat, 3 Apr 2004 01:34:56 +0000 (01:34 +0000)]
fixed missing newline after map name in join message

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

16 years agoAdded a CHANNELFLAG_LOCALSOUND flag for channels playing a client-side sound, such...
molivier [Fri, 2 Apr 2004 13:23:20 +0000 (13:23 +0000)]
Added a CHANNELFLAG_LOCALSOUND flag for channels playing a client-side sound, such as menu sounds for instance. Added the ability to pause/resume channels. When the game is paused, all non-local sounds are now automatically paused (previously, no new sound was started during the pause, but those already created were played normally).

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

16 years agoOops... It seems this malloc/free was actually intended (part of a piece of code...
molivier [Fri, 2 Apr 2004 07:27:05 +0000 (07:27 +0000)]
Oops... It seems this malloc/free was actually intended (part of a piece of code protected by a WORKINGLQUAKE define)

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

16 years agostrncpy -> {strlcpy,memcpy}. Replaced the "forceloop" boolean in "channel_t" by a...
molivier [Fri, 2 Apr 2004 07:12:10 +0000 (07:12 +0000)]
strncpy -> {strlcpy,memcpy}. Replaced the "forceloop" boolean in "channel_t" by a flags field.

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

16 years agoReplaced a direct call to "malloc" and "free", and removed several misuses of "Z_Mall...
molivier [Fri, 2 Apr 2004 07:08:54 +0000 (07:08 +0000)]
Replaced a direct call to "malloc" and "free", and removed several misuses of "Z_Malloc" where using the temp mempool was sufficient.

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

16 years agofixed animated textures in realtime lighting mode (now calls R_UpdateTextureInfo)
havoc [Thu, 1 Apr 2004 22:42:40 +0000 (22:42 +0000)]
fixed animated textures in realtime lighting mode (now calls R_UpdateTextureInfo)

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

16 years agofix the namelen parameter in the getsockname call
havoc [Thu, 1 Apr 2004 22:10:17 +0000 (22:10 +0000)]
fix the namelen parameter in the getsockname call

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

16 years agonow uses getsockname to find out what address/port a newly opened socket is at, so...
havoc [Thu, 1 Apr 2004 22:07:23 +0000 (22:07 +0000)]
now uses getsockname to find out what address/port a newly opened socket is at, so it won't say 0.0.0.0:0 anymore

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

16 years agoFixed a warning (unused variable)
molivier [Thu, 1 Apr 2004 09:46:46 +0000 (09:46 +0000)]
Fixed a warning (unused variable)

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

16 years agodefault to r_shadow_realtime_dlight 1 mode
havoc [Thu, 1 Apr 2004 02:06:20 +0000 (02:06 +0000)]
default to r_shadow_realtime_dlight 1 mode

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

16 years agodisabled triangle normal validation because the validator was broken and just spewing...
havoc [Wed, 31 Mar 2004 16:14:54 +0000 (16:14 +0000)]
disabled triangle normal validation because the validator was broken and just spewing warnings

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

16 years agoOpenBSD doesn't define _PATH_SOUND
molivier [Wed, 31 Mar 2004 13:41:22 +0000 (13:41 +0000)]
OpenBSD doesn't define _PATH_SOUND

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

16 years agodisabled the invalid model check in Mod_CheckLoaded as it was preventing the game...
havoc [Wed, 31 Mar 2004 01:33:56 +0000 (01:33 +0000)]
disabled the invalid model check in Mod_CheckLoaded as it was preventing the game from working with missing models

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

16 years agofix NODRAW flag check (don't draw NODRAW shaders)
havoc [Wed, 31 Mar 2004 01:33:16 +0000 (01:33 +0000)]
fix NODRAW flag check (don't draw NODRAW shaders)

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

16 years agonow supports missing models
havoc [Wed, 31 Mar 2004 01:08:50 +0000 (01:08 +0000)]
now supports missing models
trying to load a non-existent map no longer kills the server

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

16 years ago*** empty log message ***
havoc [Sun, 28 Mar 2004 16:19:36 +0000 (16:19 +0000)]
*** empty log message ***

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

16 years agoThe portable_samplepair_t structure has no need to be public
molivier [Fri, 26 Mar 2004 14:22:26 +0000 (14:22 +0000)]
The portable_samplepair_t structure has no need to be public

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

16 years agoRemoved a couple of useless inclusions
molivier [Fri, 26 Mar 2004 14:20:39 +0000 (14:20 +0000)]
Removed a couple of useless inclusions

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

16 years agoinclude <> above ""
havoc [Thu, 25 Mar 2004 14:36:17 +0000 (14:36 +0000)]
include <> above ""

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

16 years agoMoved the WAV loading code out of "snd_mem.c". Removed a couple of useless definition...
molivier [Thu, 25 Mar 2004 09:47:01 +0000 (09:47 +0000)]
Moved the WAV loading code out of "snd_mem.c". Removed a couple of useless definitions in "sound.h".

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

16 years agoFactorized some code in the shared library loaders
molivier [Wed, 24 Mar 2004 13:40:43 +0000 (13:40 +0000)]
Factorized some code in the shared library loaders

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

16 years agoFixed the sounds not being advanced in time while not being listened. This is a long...
molivier [Wed, 24 Mar 2004 08:06:56 +0000 (08:06 +0000)]
Fixed the sounds not being advanced in time while not being listened. This is a long standing bug I think, it looks like the original Quake source code has it too, though I haven't tested. Each channel now remembers the last time it was painted, and so it can resume the play at the appropriate position if it missed some painting rounds.
Also, added a check to avoid looped sounds being overridden when picking a channel.

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

16 years agortlights shouldn't do anything with sky and water (this fixes shadowing problems...
havoc [Tue, 23 Mar 2004 19:32:38 +0000 (19:32 +0000)]
rtlights shouldn't do anything with sky and water (this fixes shadowing problems mainly)

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

16 years agoFixed the WAV file loading code (loopstart was always 0 if the sound was looped)
molivier [Tue, 23 Mar 2004 15:59:10 +0000 (15:59 +0000)]
Fixed the WAV file loading code (loopstart was always 0 if the sound was looped)

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

16 years agoOgg vorbis streaming support; the code decides whether it will cache or stream the...
molivier [Tue, 23 Mar 2004 08:28:28 +0000 (08:28 +0000)]
Ogg vorbis streaming support; the code decides whether it will cache or stream the sound depending on the file and uncompressed sound sizes. It should be stable enough for a regular use now; you lose a few FPS once every second or so of course, it's not free, but you can expect the Vorbis stream to use between 5 and 12 times less memory than before, depending on the sound quality and the number of SFX sources using it. This patch also contains a couple of fixes (a pretty annoying typo in the OSS and BSD driver - 22051Hz instead of 22050Hz, and a potential memory leak in WAV loader)

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

16 years agoAdded a mempool parameter to FS_LoadFile
molivier [Tue, 23 Mar 2004 07:59:09 +0000 (07:59 +0000)]
Added a mempool parameter to FS_LoadFile

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

16 years agofixed a memory leak if an image file loaded but failed to decode
havoc [Tue, 23 Mar 2004 07:44:34 +0000 (07:44 +0000)]
fixed a memory leak if an image file loaded but failed to decode

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

16 years agocommented out mini scoreboard in nexuiz hud
havoc [Mon, 22 Mar 2004 18:43:32 +0000 (18:43 +0000)]
commented out mini scoreboard in nexuiz hud

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