11 years agoredesigned csqc shared entity .Version handling, now internally uses a
havoc [Wed, 20 Aug 2008 18:33:42 +0000 (18:33 +0000)]
redesigned csqc shared entity .Version handling, now internally uses a
flags value instead, while keeping compatibility with .Version (simply
sets flags to 1), each frame the flags value is merged into the
per-client entity flags and cleared, the flags value is exposed to qc as
.float SendFlags, and is a complete alternative to .Version, allowing
multiple updatable properties on an entity to be independently tracked

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

11 years agoimplemented an lhnetaddresstype_t enum instead of using #define's
havoc [Tue, 19 Aug 2008 13:29:33 +0000 (13:29 +0000)]
implemented an lhnetaddresstype_t enum instead of using #define's

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

11 years agoredesigned lhnetaddress_t struct to be a generic container for sockaddr,
havoc [Tue, 19 Aug 2008 13:16:27 +0000 (13:16 +0000)]
redesigned lhnetaddress_t struct to be a generic container for sockaddr,
this fixes runtime errors on FreeBSD where sockaddr_in does not match
the one that lhnet used to use
changed lhnetaddress_t struct to have a native port value rather than
having to poke at the sockaddr variants all the time to access port
values (now only a few places set/get the actual encoded port value)

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

11 years agoallow disabling scoreboard ranking display left of sbar
havoc [Tue, 19 Aug 2008 13:11:59 +0000 (13:11 +0000)]
allow disabling scoreboard ranking display left of sbar
allow disabling game time display left of sbar

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

11 years agoonly apply qw skins to progs/player.mdl
havoc [Tue, 19 Aug 2008 10:46:00 +0000 (10:46 +0000)]
only apply qw skins to progs/player.mdl

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

11 years agoremove two unnecessary externs
havoc [Tue, 19 Aug 2008 08:37:28 +0000 (08:37 +0000)]
remove two unnecessary externs

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

11 years agofix NaN velocity that always occurred when standing still because
havoc [Tue, 19 Aug 2008 08:10:46 +0000 (08:10 +0000)]
fix NaN velocity that always occurred when standing still because
VectorLength was being used in a divide without checking if it was
already 0

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

11 years agofix crashes when recursing portals on maps with some bogus leafs (where
havoc [Mon, 18 Aug 2008 17:50:21 +0000 (17:50 +0000)]
fix crashes when recursing portals on maps with some bogus leafs (where
infinite recursion loops can occur, alternating between two leafs), such
as cmc.bsp for prozactf coop

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

11 years agofix three double semicolon typos
havoc [Mon, 18 Aug 2008 05:34:53 +0000 (05:34 +0000)]
fix three double semicolon typos

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

11 years agoregister disconnect command even on dedicated server
havoc [Fri, 15 Aug 2008 04:40:21 +0000 (04:40 +0000)]
register disconnect command even on dedicated server

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

11 years agoGAME_NEXUIZ: fix world model not getting initialized when it could not be found ...
divverent [Wed, 13 Aug 2008 10:54:03 +0000 (10:54 +0000)]
GAME_NEXUIZ: fix world model not getting initialized when it could not be found (e.g. 404)

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

11 years agoalso send MSG_ALL to people who are past ClientConnect, but not spawned yet (makes...
divverent [Wed, 13 Aug 2008 09:59:36 +0000 (09:59 +0000)]
also send MSG_ALL to people who are past ClientConnect, but not spawned yet (makes the invariant "he can receive MSG_ALL or he's not past ClientConnect yet" work, which CSQC may rely on).

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

11 years agopartially fix ClientConnect handling
divverent [Wed, 13 Aug 2008 09:45:58 +0000 (09:45 +0000)]
partially fix ClientConnect handling
(fixes the slot between SpawnServer and ClientConnect (content download, signon) where a client that drops could have ClientDisconnect getting called without ClientConnect ever happening in that progs)

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

11 years agoOnly send the reliable (broadcast) datagram to SPAWNED clients - should fix client...
divverent [Wed, 13 Aug 2008 08:29:34 +0000 (08:29 +0000)]
Only send the reliable (broadcast) datagram to SPAWNED clients - should fix client disconnects for CSQC temp entities sent to MSG_ALL. Hope this won't break anything else. Running my servers with this soon.

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

11 years agodamn, THIS fix wasn't need - the demo reading fix already did that
divverent [Mon, 11 Aug 2008 18:42:22 +0000 (18:42 +0000)]
damn, THIS fix wasn't need - the demo reading fix already did that

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

11 years agoquick hack to fix missing PK3s when loading demos with curl downloads (works for...
divverent [Mon, 11 Aug 2008 18:23:19 +0000 (18:23 +0000)]
quick hack to fix missing PK3s when loading demos with curl downloads (works for client side recorded demos ONLY)

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

11 years agodemo recording: stuff csprogs.dat files into .dem files so demos can always be played...
divverent [Mon, 11 Aug 2008 18:12:51 +0000 (18:12 +0000)]
demo recording: stuff csprogs.dat files into .dem files so demos can always be played back

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

11 years agoported some features over from darkwar matrixlib.[ch]
havoc [Mon, 11 Aug 2008 01:54:26 +0000 (01:54 +0000)]
ported some features over from darkwar matrixlib.[ch]

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

11 years agofix double free in qcstatus
divverent [Sat, 9 Aug 2008 06:38:22 +0000 (06:38 +0000)]
fix double free in qcstatus

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

11 years agodrawcolorcodedstring takes the flags in arg 4, not 5
divverent [Fri, 8 Aug 2008 17:14:24 +0000 (17:14 +0000)]
drawcolorcodedstring takes the flags in arg 4, not 5

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

11 years agomake menu QC aware of player list; add extension DP_SV_QCSTATUS to allow QC to overri...
divverent [Fri, 8 Aug 2008 08:13:13 +0000 (08:13 +0000)]
make menu QC aware of player list; add extension DP_SV_QCSTATUS to allow QC to override fields in status responses (e.g. to display teams, or more than one score per player, or team scores)

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

11 years agoEven more snd channel cvars. I know this sucks, but having just one control for all...
divverent [Wed, 6 Aug 2008 10:51:45 +0000 (10:51 +0000)]
Even more snd channel cvars. I know this sucks, but having just one control for all auto-allocate channels DOES suck. Need to separate out world's autoallocate and item auto-allocate channels.

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

11 years agoindependent volume control for the 8 entity channels
divverent [Wed, 6 Aug 2008 06:32:58 +0000 (06:32 +0000)]
independent volume control for the 8 entity channels

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

11 years agoadd TEXF_ALPHA when loading a normalmap
divverent [Tue, 5 Aug 2008 06:27:03 +0000 (06:27 +0000)]
add TEXF_ALPHA when loading a normalmap

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

11 years agoleaktest: also exclude csqc networked entities
divverent [Sun, 3 Aug 2008 12:34:03 +0000 (12:34 +0000)]
leaktest: also exclude csqc networked entities

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

11 years agofix ESC in disconnected state. FINALLY!
divverent [Sat, 2 Aug 2008 10:02:19 +0000 (10:02 +0000)]
fix ESC in disconnected state. FINALLY!

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

11 years agoreintroduce the KEY_ESCAPE switch, but this time make sure it actually behaves right
divverent [Sat, 2 Aug 2008 09:44:10 +0000 (09:44 +0000)]
reintroduce the KEY_ESCAPE switch, but this time make sure it actually behaves right

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

11 years agospecial entity culling rules for players: 0.2 delay, 8 traces. Probably can be upped...
divverent [Fri, 1 Aug 2008 09:32:08 +0000 (09:32 +0000)]
special entity culling rules for players: 0.2 delay, 8 traces. Probably can be upped even more.

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

11 years agoremove TEXF_ALPHA flag for any map textures, because Q3 mappers seem to suck and...
divverent [Wed, 30 Jul 2008 14:13:12 +0000 (14:13 +0000)]
remove TEXF_ALPHA flag for any map textures, because Q3 mappers seem to suck and use textures with actual alpha channel as nontransparent ones without even writing a shader that says so

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

11 years agofix font parsing so adding more properties in the future will make them ignored,...
divverent [Tue, 29 Jul 2008 09:48:43 +0000 (09:48 +0000)]
fix font parsing so adding more properties in the future will make them ignored, not do stupid things

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

11 years agoadd a new "scale" property in font files. Specifying, e.g., "scale 1.2" in a font...
divverent [Tue, 29 Jul 2008 09:42:13 +0000 (09:42 +0000)]
add a new "scale" property in font files. Specifying, e.g., "scale 1.2" in a font means that it gets rendered at 1.2 the usual size (by using 10% more space to the top and to the bottom). This may cause overlap between characters of adjacent lines, so use this with care (e.g. to support a font with large over- or underlengths).

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

11 years agocl_readpicture_force: force the low quality jpeg image to be used even if the image...
divverent [Tue, 29 Jul 2008 06:08:43 +0000 (06:08 +0000)]
cl_readpicture_force: force the low quality jpeg image to be used even if the image exists on the file system (for testing)

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

11 years agofix ${* q}
divverent [Thu, 24 Jul 2008 07:01:54 +0000 (07:01 +0000)]
fix ${* q}

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

11 years agodon't warn about CSQC_Ent_Remove on an already-removed entity (it could
havoc [Thu, 24 Jul 2008 01:37:38 +0000 (01:37 +0000)]
don't warn about CSQC_Ent_Remove on an already-removed entity (it could
be a repeated update)

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

11 years agofixed rate limiting of csqc entities (they were overflowing easily)
havoc [Thu, 24 Jul 2008 01:27:30 +0000 (01:27 +0000)]
fixed rate limiting of csqc entities (they were overflowing easily)

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

11 years agooptimize many loops over expandable arrays by not repeatedly calling Mem_ExpandableAr...
divverent [Wed, 23 Jul 2008 11:25:52 +0000 (11:25 +0000)]
optimize many loops over expandable arrays by not repeatedly calling Mem_ExpandableArray_IndexRange (patch by Blub)

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

11 years agoturn rev8420 "enable transparency on tga skins on mdl/md2/md3 when shader is not...
divverent [Wed, 23 Jul 2008 09:39:37 +0000 (09:39 +0000)]
turn rev8420 "enable transparency on tga skins on mdl/md2/md3 when shader is not found" into what it actually WANTED to be (only enable the transparency if the TGA actually is transparent)

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

11 years agoadd apparently not yet working optimization flags to Mem_ExpandableArray function...
divverent [Wed, 23 Jul 2008 07:08:59 +0000 (07:08 +0000)]
add apparently not yet working optimization flags to Mem_ExpandableArray function (can't see what difference it causes in asm output)

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

11 years agofix for Blub\0's strange change to toggleconsole handling which broke
havoc [Wed, 23 Jul 2008 03:53:37 +0000 (03:53 +0000)]
fix for Blub\0's strange change to toggleconsole handling which broke
the con_closeontoggleconsole feature (which is what allows you to close
the console with the same key that opens it, rather than using escape)

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

11 years agoenable transparency on tga skins on mdl/md2/md3 when shader is not found
havoc [Tue, 22 Jul 2008 22:54:15 +0000 (22:54 +0000)]
enable transparency on tga skins on mdl/md2/md3 when shader is not found

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

11 years agosorry, did the last change to the wrong jpeg writing function. Fixed.
divverent [Mon, 21 Jul 2008 16:28:07 +0000 (16:28 +0000)]
sorry, did the last change to the wrong jpeg writing function. Fixed.

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

11 years agofix jpeg upside down
divverent [Mon, 21 Jul 2008 16:07:47 +0000 (16:07 +0000)]
fix jpeg upside down

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

11 years agoadd feature "prvm_errordump" to make a savegame on PRVM_Crash - hopefully this helps...
divverent [Sat, 19 Jul 2008 19:31:03 +0000 (19:31 +0000)]
add feature "prvm_errordump" to make a savegame on PRVM_Crash - hopefully this helps me find the teambubble.owner==NULL crash bug

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

11 years agouse -MMD instead of -MD for making dependencies, this skips system
havoc [Sat, 19 Jul 2008 12:03:15 +0000 (12:03 +0000)]
use -MMD instead of -MD for making dependencies, this skips system

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

11 years agofix "vid_restart forgets to reload jpeg" bug
divverent [Fri, 18 Jul 2008 08:00:21 +0000 (08:00 +0000)]
fix "vid_restart forgets to reload jpeg" bug

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

11 years agofix console escape togglemenu
divverent [Wed, 16 Jul 2008 09:24:37 +0000 (09:24 +0000)]
fix console escape togglemenu

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

11 years agoBlub's keyboard handling fixes (makes UP events go to the same handler as the corresp...
divverent [Tue, 15 Jul 2008 15:23:26 +0000 (15:23 +0000)]
Blub's keyboard handling fixes (makes UP events go to the same handler as the corresponding DOWN event, and fix up the ASCII code in UP events for SDL)

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

11 years agoenable XkbSetDetectableAutoRepeat (TODO check if weird systems like Solaris support...
divverent [Tue, 15 Jul 2008 15:22:51 +0000 (15:22 +0000)]
enable XkbSetDetectableAutoRepeat (TODO check if weird systems like Solaris support this, if not, ifdef it out for these)

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

11 years agocompile fix
divverent [Tue, 15 Jul 2008 13:38:19 +0000 (13:38 +0000)]
compile fix

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

11 years agomove the -1 setting of csqc_* to a better place (argh...)
divverent [Tue, 15 Jul 2008 11:33:05 +0000 (11:33 +0000)]
move the -1 setting of csqc_* to a better place (argh...)

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

11 years agoand move the declaration for CL_VM_Shutdown up
divverent [Tue, 15 Jul 2008 10:48:51 +0000 (10:48 +0000)]
and move the declaration for CL_VM_Shutdown up

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

11 years agocall CSQC_Shutdown between levels too!
divverent [Tue, 15 Jul 2008 10:47:48 +0000 (10:47 +0000)]
call CSQC_Shutdown between levels too!

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

11 years agofix wrong cvar name
divverent [Tue, 15 Jul 2008 09:15:22 +0000 (09:15 +0000)]
fix wrong cvar name

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

11 years agoadd missing var
divverent [Tue, 15 Jul 2008 09:11:08 +0000 (09:11 +0000)]
add missing var

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

11 years agosmall optimization to the leak check, to mark the entities faster
divverent [Tue, 15 Jul 2008 08:19:43 +0000 (08:19 +0000)]
small optimization to the leak check, to mark the entities faster

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

11 years agoprvm_leaktest - leak detector for QC objects (all but Gecko instances at the moment)
divverent [Tue, 15 Jul 2008 07:55:04 +0000 (07:55 +0000)]
prvm_leaktest - leak detector for QC objects (all but Gecko instances at the moment)
For entities, it uses a marking approach

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

11 years agofix out of range indices found by [-z-]
divverent [Mon, 14 Jul 2008 13:17:47 +0000 (13:17 +0000)]
fix out of range indices found by [-z-]

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

11 years agofix return value of FS_WhichPack to NOT include the -basedir
divverent [Mon, 14 Jul 2008 10:48:13 +0000 (10:48 +0000)]
fix return value of FS_WhichPack to NOT include the -basedir

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

11 years agopreserve host_client during rcon (should fix crash for rcon restart)
divverent [Sun, 13 Jul 2008 16:37:14 +0000 (16:37 +0000)]
preserve host_client during rcon (should fix crash for rcon restart)

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

11 years agoload the JPEG dll when needed
divverent [Sat, 12 Jul 2008 14:46:43 +0000 (14:46 +0000)]
load the JPEG dll when needed

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

11 years agoseems like it is better to use smaller sizes there
divverent [Fri, 11 Jul 2008 11:58:11 +0000 (11:58 +0000)]
seems like it is better to use smaller sizes there

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

11 years agoadding two new extensions: DP_QC_WHICHPACK (identify a pk3 containing a file), and...
divverent [Fri, 11 Jul 2008 10:14:59 +0000 (10:14 +0000)]
adding two new extensions: DP_QC_WHICHPACK (identify a pk3 containing a file), and DP_QC_WRITEIMAGE (writes a small low quality JPEG image from svqc to csqc)

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

11 years agotracked down another size check div0 left in
havoc [Thu, 10 Jul 2008 19:33:59 +0000 (19:33 +0000)]
tracked down another size check div0 left in

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

11 years agoremove debugging code that was breaking skeletal model formats other
havoc [Thu, 10 Jul 2008 08:05:45 +0000 (08:05 +0000)]
remove debugging code that was breaking skeletal model formats other
than psk, and was not meant to be committed

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

11 years agoneeded builtins for fonts in CSQC
divverent [Thu, 10 Jul 2008 07:10:34 +0000 (07:10 +0000)]
needed builtins for fonts in CSQC

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

11 years agoCvar sys_usenoclockbutbenchmark for the dedicated server. Replaces the regular clock...
divverent [Wed, 9 Jul 2008 19:27:26 +0000 (19:27 +0000)]
Cvar sys_usenoclockbutbenchmark for the dedicated server. Replaces the regular clock by a simulated one, for server code benchmarking with bots.

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

11 years agochanged the Sys_Error to a Con_Printf. LordHavoc, please check if the equation REALLY...
divverent [Tue, 8 Jul 2008 17:41:08 +0000 (17:41 +0000)]
changed the Sys_Error to a Con_Printf. LordHavoc, please check if the equation REALLY is right - this errors out for e.g. lurk.zym in Nexuiz

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

11 years agomake the weird != error message nonfatal and developer-only if it just hints to super...
divverent [Tue, 8 Jul 2008 16:15:27 +0000 (16:15 +0000)]
make the weird != error message nonfatal and developer-only if it just hints to superfluous data in the model; only abort if it hints to an overrun. Haven't checked the actual equation though. Please report if the problem is fixed.

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

11 years agopatch from KrimZon adding DP_QC_ENTITYDATA extension
havoc [Mon, 7 Jul 2008 09:21:46 +0000 (09:21 +0000)]
patch from KrimZon adding DP_QC_ENTITYDATA extension

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

11 years agoan attempt at optimizing msurface_t dlight_cache checks by moving them
havoc [Sat, 5 Jul 2008 07:31:46 +0000 (07:31 +0000)]
an attempt at optimizing msurface_t dlight_cache checks by moving them
to a separate array
added support for a Q3BSP format variant

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

11 years agochanged default of r_depthfirst to 0, because in general it's a
havoc [Sat, 5 Jul 2008 07:29:11 +0000 (07:29 +0000)]
changed default of r_depthfirst to 0, because in general it's a
performance loss rather than a gain

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

11 years agofix an error and a warning with my last commit
havoc [Sun, 29 Jun 2008 21:27:56 +0000 (21:27 +0000)]
fix an error and a warning with my last commit

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

11 years agosplit out combined alloc for psk model data to make it easier to verify
havoc [Sun, 29 Jun 2008 21:12:29 +0000 (21:12 +0000)]
split out combined alloc for psk model data to make it easier to verify
that the combined alloc size is correct

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

11 years agodeclare local variables properly
havoc [Sun, 29 Jun 2008 20:22:10 +0000 (20:22 +0000)]
declare local variables properly

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

11 years agofix crash in keys.c clipboard handling
divverent [Sat, 28 Jun 2008 15:47:26 +0000 (15:47 +0000)]
fix crash in keys.c clipboard handling

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

11 years agosync console command execution to the server timer or the client timer
havoc [Thu, 26 Jun 2008 02:41:07 +0000 (02:41 +0000)]
sync console command execution to the server timer or the client timer
depending on whether the server is running (previously when playing
online it would execute them on every main loop, which could mess up the
timing of multiple impulses in sequence)

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

11 years agoalways send a packet when an impulse is used, regardless of the
havoc [Thu, 26 Jun 2008 02:38:33 +0000 (02:38 +0000)]
always send a packet when an impulse is used, regardless of the
cl_netimmediatebuttons cvar

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

11 years agofix two warnings
havoc [Thu, 26 Jun 2008 02:35:36 +0000 (02:35 +0000)]
fix two warnings

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

11 years agoAdd a new command "infobar" to temporarily display something in the infobar.
divverent [Wed, 25 Jun 2008 18:03:21 +0000 (18:03 +0000)]
Add a new command "infobar" to temporarily display something in the infobar.
Useful for stuff like subtitles.

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

11 years agoin "bf", make alpha and alphafade optional (if left out, they will default to the...
divverent [Wed, 25 Jun 2008 17:39:15 +0000 (17:39 +0000)]
in "bf", make alpha and alphafade optional (if left out, they will default to the usual "bf" values)

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

11 years ago"bf" now optionally takes arguments: red green blue alpha alphafade
divverent [Wed, 25 Jun 2008 17:35:38 +0000 (17:35 +0000)]
"bf" now optionally takes arguments: red green blue alpha alphafade

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

11 years agopatch from Blub\0 to fix InfoString_SetValue (my dpsnprintf size was
havoc [Mon, 23 Jun 2008 12:48:56 +0000 (12:48 +0000)]
patch from Blub\0 to fix InfoString_SetValue (my dpsnprintf size was

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

11 years agothanks to Willis for contributing a VS2005 x64 build target
havoc [Thu, 19 Jun 2008 09:34:37 +0000 (09:34 +0000)]
thanks to Willis for contributing a VS2005 x64 build target

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

11 years agoSupport file symlinks inside pk3 files. Directory symlinks, as well as symlinks with...
divverent [Thu, 19 Jun 2008 08:02:30 +0000 (08:02 +0000)]
Support file symlinks inside pk3 files. Directory symlinks, as well as symlinks with ../ not at their start, are not supported.

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

11 years agouse %127s in the sscanf
havoc [Tue, 17 Jun 2008 11:13:11 +0000 (11:13 +0000)]
use %127s in the sscanf

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

11 years agofix crash in rtlights loader when compiled with VS2005 (I forgot that
havoc [Tue, 17 Jun 2008 11:09:52 +0000 (11:09 +0000)]
fix crash in rtlights loader when compiled with VS2005 (I forgot that
does use a %s in an sscanf)

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

11 years agochanged build targets to all be in the darkplaces directory
havoc [Tue, 17 Jun 2008 11:07:40 +0000 (11:07 +0000)]
changed build targets to all be in the darkplaces directory

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

11 years agofixed all VS2005 deprecated function warnings
havoc [Tue, 17 Jun 2008 10:46:24 +0000 (10:46 +0000)]
fixed all VS2005 deprecated function warnings
found one actual buffer overrun problem in GetMapList (map name
completion was using sprintf with a 64 character buffer, which is EASILY
added VS2005 projects

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

11 years agochanged a number of sprintf's to dpsnprintf and removed the TODO
havoc [Tue, 17 Jun 2008 10:17:29 +0000 (10:17 +0000)]
changed a number of sprintf's to dpsnprintf and removed the TODO
comments for doing this

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

11 years agohush a warning in Dev-C++
havoc [Tue, 17 Jun 2008 10:17:04 +0000 (10:17 +0000)]
hush a warning in Dev-C++

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

11 years agofixed the .dev file for dedicated server
havoc [Tue, 17 Jun 2008 10:14:19 +0000 (10:14 +0000)]
fixed the .dev file for dedicated server

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

11 years agoadded gl_gecko.[ch] and gl_dyntexture.[ch] dependencies
havoc [Tue, 17 Jun 2008 09:12:44 +0000 (09:12 +0000)]
added gl_gecko.[ch] and gl_dyntexture.[ch] dependencies
also added some lib files and removed the base ones

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

11 years agoalso reject time stepping > 30 minutes (this threshold is < 1 hour to reject daylight...
divverent [Sun, 15 Jun 2008 14:52:22 +0000 (14:52 +0000)]
also reject time stepping > 30 minutes (this threshold is < 1 hour to reject daylight saving time changes, but > any "typical" load time of a map)

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

11 years agonew cvar sys_useclockgettime (default 0) that makes DP use clock_gettime as time...
divverent [Sun, 15 Jun 2008 14:31:11 +0000 (14:31 +0000)]
new cvar sys_useclockgettime (default 0) that makes DP use clock_gettime as time source (should fix bad timing on Solaris, and some Xen oddity). Only supported in the Solaris, Linux and BSD target.

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

11 years agoalso put svn revision (svnversion(1)) and build type into the version string
divverent [Wed, 11 Jun 2008 11:20:33 +0000 (11:20 +0000)]
also put svn revision (svnversion(1)) and build type into the version string

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

11 years agoFixed compile error in MSVC6 (its SDK is missing a key #define)
sajt [Wed, 11 Jun 2008 02:15:05 +0000 (02:15 +0000)]
Fixed compile error in MSVC6 (its SDK is missing a key #define)

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

11 years agocheck if command is "remap" AFTER command is set to something!
havoc [Mon, 9 Jun 2008 07:49:13 +0000 (07:49 +0000)]
check if command is "remap" AFTER command is set to something!

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

11 years agoparticle palette is now derived from the loaded palette (this fixes bugs
havoc [Mon, 9 Jun 2008 07:08:20 +0000 (07:08 +0000)]
particle palette is now derived from the loaded palette (this fixes bugs
with .glow_trail colors not matching .glow_color colors when the palette
is replaced)

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

11 years agodo NOT Host_StartVideo for a simple "cd remap"
divverent [Sat, 7 Jun 2008 13:37:50 +0000 (13:37 +0000)]
do NOT Host_StartVideo for a simple "cd remap"

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

11 years agochanged bbox size for chase camera
motorsep [Thu, 5 Jun 2008 08:02:15 +0000 (08:02 +0000)]
changed bbox size for chase camera

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