]> icculus.org git repositories - divverent/darkplaces.git/log
divverent/darkplaces.git
14 years agoadded masking to Con_DrawConsole, and removed it from the height and draw functions...
divverent [Mon, 28 Dec 2009 11:47:55 +0000 (11:47 +0000)]
added masking to Con_DrawConsole, and removed it from the height and draw functions; switched back to the old backscroll code as it was faster with long consoles (less wordwrap invocations)

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

14 years agor_font_hinting cvar makes more sense: 0 no hinting, 1 force autohinting, 2 fullhintin...
blub [Mon, 28 Dec 2009 11:40:41 +0000 (11:40 +0000)]
r_font_hinting cvar makes more sense: 0 no hinting, 1 force autohinting, 2 fullhinting, default: 2

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

14 years agocvar: r_font_autohinting added
blub [Mon, 28 Dec 2009 11:34:09 +0000 (11:34 +0000)]
cvar: r_font_autohinting added

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

14 years agoDrawQ_TextWidth_Font_Size for the engineversion string in the console
blub [Mon, 28 Dec 2009 11:00:24 +0000 (11:00 +0000)]
DrawQ_TextWidth_Font_Size for the engineversion string in the console

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

14 years agofixed an inconsistency in u8_analyze
blub [Mon, 28 Dec 2009 10:24:32 +0000 (10:24 +0000)]
fixed an inconsistency in u8_analyze

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

14 years agowith utf8 disabled, u8_byteofs must still behave correctly, also u8_bytelen w/o utf8...
blub [Sun, 27 Dec 2009 22:17:13 +0000 (22:17 +0000)]
with utf8 disabled, u8_byteofs must still behave correctly, also u8_bytelen w/o utf8 should not behave differently

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

14 years agofix developer_extra and developer_insane cvar declarations
havoc [Sun, 27 Dec 2009 20:13:15 +0000 (20:13 +0000)]
fix developer_extra and developer_insane cvar declarations

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

14 years agofix a bunch of type-punned pointer warnings
havoc [Sun, 27 Dec 2009 13:12:57 +0000 (13:12 +0000)]
fix a bunch of type-punned pointer warnings

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

14 years agoadded StoreBigShort
havoc [Sun, 27 Dec 2009 13:11:08 +0000 (13:11 +0000)]
added StoreBigShort
added StoreLittleLong
added StoreLittleShort

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

14 years agohush a warning
havoc [Sun, 27 Dec 2009 13:05:57 +0000 (13:05 +0000)]
hush a warning

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

14 years agoreworked console rendering, now uses con_backscroll in a much more
havoc [Sun, 27 Dec 2009 13:04:00 +0000 (13:04 +0000)]
reworked console rendering, now uses con_backscroll in a much more
direct way and has no glitches with developer cvar being toggled

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

14 years agouse less options, for compatibility with old gcc
havoc [Sun, 27 Dec 2009 12:14:43 +0000 (12:14 +0000)]
use less options, for compatibility with old gcc

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

14 years agochanged several Con_Printf calls to Con_DPrintf
havoc [Sun, 27 Dec 2009 12:02:58 +0000 (12:02 +0000)]
changed several Con_Printf calls to Con_DPrintf
added q3bsp stats printing (like q1bsp stats) and added mesh info

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

14 years agoadded Con_MaskPrintf, Con_Printf/Con_DPrintf and friends are now just
havoc [Sun, 27 Dec 2009 11:33:49 +0000 (11:33 +0000)]
added Con_MaskPrintf, Con_Printf/Con_DPrintf and friends are now just
wrappers for these
added console text filtering - the developer cvar now shows/hides
developer prints (Con_DPrintf) on the fly, these are still logged to
files and terminal output regardless of the cvar though

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

14 years agochanged a ton of developer cvar checks into developer_extra/insane
havoc [Sun, 27 Dec 2009 10:49:34 +0000 (10:49 +0000)]
changed a ton of developer cvar checks into developer_extra/insane
checks, or simply Con_DPrintf calls
made developer a saved cvar

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

14 years agoreducing error output in font loading (use developer != 0 to re-enable)
blub [Sun, 27 Dec 2009 09:52:49 +0000 (09:52 +0000)]
reducing error output in font loading (use developer != 0 to re-enable)

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

14 years agouse real pixels for r_textshadow instead of virtual ones
blub [Sun, 27 Dec 2009 09:51:49 +0000 (09:51 +0000)]
use real pixels for r_textshadow instead of virtual ones

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

14 years agofreetype: "loadfont" now uses virtual pixels, not real pixels, for font sizes, to...
divverent [Sat, 26 Dec 2009 18:59:15 +0000 (18:59 +0000)]
freetype: "loadfont" now uses virtual pixels, not real pixels, for font sizes, to be screen resolution independent. Requires loadfont commands to come after config.cfg.

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

14 years agothese checks are now superfluous, u8_fromchar doesn't return values <0 anymore
blub [Sat, 26 Dec 2009 13:45:04 +0000 (13:45 +0000)]
these checks are now superfluous, u8_fromchar doesn't return values <0 anymore

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

14 years agoset the unicode value to 0 if no value exists, also changing u8_fromchar to not retur...
blub [Sat, 26 Dec 2009 13:42:27 +0000 (13:42 +0000)]
set the unicode value to 0 if no value exists, also changing u8_fromchar to not return values < 0 but just 0 - it's easier to use that way

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

14 years agofix asign error in a mostly unused physics code part :P
divverent [Sat, 26 Dec 2009 13:27:55 +0000 (13:27 +0000)]
fix  asign error in a mostly unused physics code part :P

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

14 years agoadded missing .h and .c files to the project
motorsep [Sat, 26 Dec 2009 03:16:57 +0000 (03:16 +0000)]
added missing .h and .c files to the project

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

14 years agoget rid of the warning
blub [Fri, 25 Dec 2009 18:49:21 +0000 (18:49 +0000)]
get rid of the warning

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

14 years agostringwidth(): if 3rd arg is not given, always yield the size for 8x8 text, unsnapped...
divverent [Fri, 25 Dec 2009 18:11:18 +0000 (18:11 +0000)]
stringwidth(): if 3rd arg is not given, always yield the size for 8x8 text, unsnapped, divided by 8

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

14 years agounicode character input handling in the GLX client
blub [Fri, 25 Dec 2009 17:50:49 +0000 (17:50 +0000)]
unicode character input handling in the GLX client

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

14 years agomore optimizations to SVBSP code
havoc [Fri, 25 Dec 2009 17:19:22 +0000 (17:19 +0000)]
more optimizations to SVBSP code

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

14 years agou8_get{n,}char should advance the end-ptr even if no valid character was found so...
blub [Fri, 25 Dec 2009 16:50:12 +0000 (16:50 +0000)]
u8_get{n,}char should advance the end-ptr even if no valid character was found so it at least points to the \0 or to after maxlen

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

14 years agoadd a menu/csqc field .drawfontscale to scale the font drawn by drawfont but not...
divverent [Fri, 25 Dec 2009 15:14:09 +0000 (15:14 +0000)]
add a menu/csqc field .drawfontscale to scale the font drawn by drawfont but not change the bitmap - useful for smoothly changing font size if snapping is active

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

14 years agoimproved performance of SVBSP code
havoc [Fri, 25 Dec 2009 13:53:26 +0000 (13:53 +0000)]
improved performance of SVBSP code

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

14 years agoimprove text word wrapping
divverent [Fri, 25 Dec 2009 11:52:59 +0000 (11:52 +0000)]
improve text word wrapping

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

14 years ago'<=' fail: '< 0xC2' means invalid '== 0xC2' does not, I had it right in the comment...
blub [Fri, 25 Dec 2009 09:29:35 +0000 (09:29 +0000)]
'<=' fail: '< 0xC2' means invalid '== 0xC2' does not, I had it right in the comment...

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

14 years agofix u8_COM_StringLengthNoColors the same way other functions handle signedness
blub [Fri, 25 Dec 2009 09:17:45 +0000 (09:17 +0000)]
fix u8_COM_StringLengthNoColors the same way other functions handle signedness

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

14 years agoutf8: add VM_sprintf support
divverent [Fri, 25 Dec 2009 08:49:38 +0000 (08:49 +0000)]
utf8: add VM_sprintf support
now sprintf("%#10s", s) pads to 10 bytes, and sprintf("%10s", s) pads to 10 characters, if utf8 is enabled

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

14 years agoadded back the old method of comparing points to the parent planes,
havoc [Thu, 24 Dec 2009 23:34:41 +0000 (23:34 +0000)]
added back the old method of comparing points to the parent planes,
because it is faster, more research needed for optimizations
fix a few warnings about double to float conversion

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

14 years agofixed plane test typo
eihrul [Thu, 24 Dec 2009 21:49:04 +0000 (21:49 +0000)]
fixed plane test typo

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

14 years agouse svbsp for rtlight compilation instead of portal culling, for
havoc [Thu, 24 Dec 2009 21:44:40 +0000 (21:44 +0000)]
use svbsp for rtlight compilation instead of portal culling, for
quality reasons

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

14 years agochanged svbsp code to use floats instead of doubles
havoc [Thu, 24 Dec 2009 21:42:49 +0000 (21:42 +0000)]
changed svbsp code to use floats instead of doubles
optimized the parent node checks in svbsp occluder insertion

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

14 years agodon't use ssize_t
havoc [Thu, 24 Dec 2009 17:06:38 +0000 (17:06 +0000)]
don't use ssize_t
removed ssize_t from qtypes.h

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

14 years agochange a few WIN64 checks to _WIN64 (which actually works), and remove
havoc [Thu, 24 Dec 2009 16:36:41 +0000 (16:36 +0000)]
change a few WIN64 checks to _WIN64 (which actually works), and remove
the rest (dll names are the same, and ssize_t needs to be declared)

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

14 years agofix some warnings about a variable being used twice in a line, with ++
havoc [Thu, 24 Dec 2009 16:23:40 +0000 (16:23 +0000)]
fix some warnings about a variable being used twice in a line, with ++

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

14 years agofix a printf where a size_t was being printed as a long
havoc [Thu, 24 Dec 2009 16:22:47 +0000 (16:22 +0000)]
fix a printf where a size_t was being printed as a long

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

14 years agofix a warning about possibly uninitialized variables
havoc [Thu, 24 Dec 2009 16:21:59 +0000 (16:21 +0000)]
fix a warning about possibly uninitialized variables

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

14 years agofix some 64bit printf errors
havoc [Thu, 24 Dec 2009 16:21:42 +0000 (16:21 +0000)]
fix some 64bit printf errors

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

14 years agochanged Cg shader support to check DP_CG_LIBDIR instead of trying to
havoc [Thu, 24 Dec 2009 16:21:11 +0000 (16:21 +0000)]
changed Cg shader support to check DP_CG_LIBDIR instead of trying to
detect /usr/lib

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

14 years agodisabled WIN64 error, perhaps we should use the name freetype6_x64.dll
havoc [Thu, 24 Dec 2009 16:20:02 +0000 (16:20 +0000)]
disabled WIN64 error, perhaps we should use the name freetype6_x64.dll

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

14 years agorenamed a parameter, removed some unused cvars
havoc [Thu, 24 Dec 2009 16:00:19 +0000 (16:00 +0000)]
renamed a parameter, removed some unused cvars

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

14 years agoremoved r_shadow_culltriangles - the only useful part of it (shadow
havoc [Thu, 24 Dec 2009 13:09:03 +0000 (13:09 +0000)]
removed r_shadow_culltriangles - the only useful part of it (shadow
caster culling on dlights when using shadow volumes) is preserved, the
nasty part (changes in lighting) are gone

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

14 years agoturn off r_shadow_culltriangles by default, because it was lowering
havoc [Thu, 24 Dec 2009 13:00:30 +0000 (13:00 +0000)]
turn off r_shadow_culltriangles by default, because it was lowering
performance and in the case of shadowmapping or shadowless lights it
looks rather bad on models

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

14 years agoreorganized GLSL shader
havoc [Thu, 24 Dec 2009 12:21:52 +0000 (12:21 +0000)]
reorganized GLSL shader
added Cg shader

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

14 years agoimproved Cg error reporting
havoc [Thu, 24 Dec 2009 12:14:38 +0000 (12:14 +0000)]
improved Cg error reporting

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

14 years agosame fix in DrawQ_String
divverent [Thu, 24 Dec 2009 11:51:31 +0000 (11:51 +0000)]
same fix in DrawQ_String

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

14 years agofix text width function
divverent [Thu, 24 Dec 2009 11:48:32 +0000 (11:48 +0000)]
fix text width function

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

14 years agodon't project shadows so far - this fixes broken shadows with
havoc [Thu, 24 Dec 2009 09:54:27 +0000 (09:54 +0000)]
don't project shadows so far - this fixes broken shadows with
r_useinfinitefarclip 0

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

14 years agotake utf8_enable into account when printing the dots for a multiline chatmessage
blub [Thu, 24 Dec 2009 09:48:37 +0000 (09:48 +0000)]
take utf8_enable into account when printing the dots for a multiline chatmessage

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

14 years agofix detection of timeout-based lost packets.
divverent [Thu, 24 Dec 2009 08:30:07 +0000 (08:30 +0000)]
fix detection of timeout-based lost packets.
Now movementloss detection beats all test cases:
- it is 0 in local games :P
- when temporarily setting 100% packetloss, PL and movementloss are about equal
- when permanently setting 50% packetloss, movementloss is about 25% (due to cl_netrepeatinput 1)

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

14 years agotry to notice uncompensated packet loss due to timeouts
divverent [Thu, 24 Dec 2009 08:15:39 +0000 (08:15 +0000)]
try to notice uncompensated packet loss due to timeouts

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

14 years agofixing sizeof(data) of pointer to particle texture data introduced in r9614
eihrul [Wed, 23 Dec 2009 23:44:41 +0000 (23:44 +0000)]
fixing sizeof(data) of pointer to particle texture data introduced in r9614

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

14 years agoremove unneeded include
divverent [Wed, 23 Dec 2009 21:10:11 +0000 (21:10 +0000)]
remove unneeded include

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

14 years agofix typo in last commit
divverent [Wed, 23 Dec 2009 20:59:57 +0000 (20:59 +0000)]
fix typo in last commit

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

14 years agodo not TOTALLY block translation with csprogs, but restrict it to globals named dotra...
divverent [Wed, 23 Dec 2009 20:58:12 +0000 (20:58 +0000)]
do not TOTALLY block translation with csprogs, but restrict it to globals named dotranslate_*.
In other progs, all names that do not start with notranslate_* can be translated.

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

14 years agoprogs loading: allow translation of strings using a .po-format string table, named...
divverent [Wed, 23 Dec 2009 20:41:36 +0000 (20:41 +0000)]
progs loading: allow translation of strings using a .po-format string table, named menu.dat.de.po for language "de", if prvm_language is set to "de".
A template "menu.dat.dump.po" is written if you set prvm_language "dump".

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

14 years agoadd DLL name for win32
divverent [Wed, 23 Dec 2009 20:38:11 +0000 (20:38 +0000)]
add DLL name for win32

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

14 years agoimprove sprintf a bit to match with documentation
divverent [Wed, 23 Dec 2009 18:40:41 +0000 (18:40 +0000)]
improve sprintf a bit to match with documentation

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

14 years agoDP_QC_SPRINTF :P
divverent [Wed, 23 Dec 2009 18:33:12 +0000 (18:33 +0000)]
DP_QC_SPRINTF :P

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

14 years agoUsing MAX_QPATH for filenames in ft2.
blub [Wed, 23 Dec 2009 17:24:32 +0000 (17:24 +0000)]
Using MAX_QPATH for filenames in ft2.
__uint32 is actually unsigned __int32

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

14 years agoMSVC doesn't support 'inline'
blub [Wed, 23 Dec 2009 17:10:10 +0000 (17:10 +0000)]
MSVC doesn't support 'inline'

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

14 years agooops, a float I meant
divverent [Wed, 23 Dec 2009 15:55:25 +0000 (15:55 +0000)]
oops, a float I meant

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

14 years agoturn font size snapping into a float
divverent [Wed, 23 Dec 2009 15:55:04 +0000 (15:55 +0000)]
turn font size snapping into a float

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

14 years agostdint.h and uint32_t instead of u_int32_t
blub [Wed, 23 Dec 2009 14:45:59 +0000 (14:45 +0000)]
stdint.h and uint32_t instead of u_int32_t

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

14 years agoadditionally include stdint.h on non-MSVC too
divverent [Wed, 23 Dec 2009 12:56:33 +0000 (12:56 +0000)]
additionally include stdint.h on non-MSVC too

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

14 years agomake CgGL render path work
havoc [Wed, 23 Dec 2009 12:48:50 +0000 (12:48 +0000)]
make CgGL render path work

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

14 years agomake utf8 functions safer: give them a size limit in memory, to allow working with...
divverent [Wed, 23 Dec 2009 12:15:47 +0000 (12:15 +0000)]
make utf8 functions safer: give them a size limit in memory, to allow working with non-NUL-terminated strings

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

14 years agoget utf8lib out of common.c by moving the u8_strnlen call into console.c - keeps...
divverent [Wed, 23 Dec 2009 11:54:07 +0000 (11:54 +0000)]
get utf8lib out of common.c by moving the u8_strnlen call into console.c - keeps the word wrap function encoding agnostic

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

14 years agothis should work without strlen as well
blub [Wed, 23 Dec 2009 11:46:09 +0000 (11:46 +0000)]
this should work without strlen as well

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

14 years agodo not use non-standard strnlen function
blub [Wed, 23 Dec 2009 10:51:55 +0000 (10:51 +0000)]
do not use non-standard strnlen function

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

14 years ago... forgot to add the files, I'm too used to git now :P
blub [Wed, 23 Dec 2009 10:48:04 +0000 (10:48 +0000)]
... forgot to add the files, I'm too used to git now :P

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

14 years agoAdding FreeType2 and UTF-8 Support.
blub [Wed, 23 Dec 2009 10:43:52 +0000 (10:43 +0000)]
Adding FreeType2 and UTF-8 Support.
UTF-8 is disabled by default, FreeType is enabled.
new cvars: utf8_enable (0)
           r_font_disable_freetype (1)
   r_font_use_alpha_textures (0, not really finished yet)
   r_font_size_snapping (1 - 0 looks bad when vid_conwidth/height and vid_width/height are too different)

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

14 years agofix SUPPORTCG checks
havoc [Wed, 23 Dec 2009 09:39:34 +0000 (09:39 +0000)]
fix SUPPORTCG checks

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

14 years agofix detection of cg libs
divverent [Wed, 23 Dec 2009 09:35:16 +0000 (09:35 +0000)]
fix detection of cg libs

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

14 years agoDP_SV_PING_PACKETLOSS: expose packet loss to server QC
divverent [Wed, 23 Dec 2009 08:48:36 +0000 (08:48 +0000)]
DP_SV_PING_PACKETLOSS: expose packet loss to server QC

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

14 years agothe beginnings of a cgGL rendering path experiment, does not work yet
havoc [Wed, 23 Dec 2009 08:32:07 +0000 (08:32 +0000)]
the beginnings of a cgGL rendering path experiment, does not work yet
overhauled GL20 rendering path to bind textures during shader setup
copy to texture is now done by calling R_Mesh_CopyToTexture instead of
calling GL functions directly

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

14 years agoload maps/levelname_effectinfo.txt in addition to effectinfo.txt
havoc [Wed, 23 Dec 2009 07:43:05 +0000 (07:43 +0000)]
load maps/levelname_effectinfo.txt in addition to effectinfo.txt

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

14 years agofix a crash on non-deluxemapped q3bsp loading
havoc [Tue, 22 Dec 2009 02:06:10 +0000 (02:06 +0000)]
fix a crash on non-deluxemapped q3bsp loading

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

14 years agoremoved r_precachetextures cvar
havoc [Mon, 21 Dec 2009 14:20:16 +0000 (14:20 +0000)]
removed r_precachetextures cvar
removed TEXF_PRECACHE flag
removed TEXF_ALWAYSPRECACHE flag
all textures are now always uploaded immediately (deferring was made
unnecessary by the selective skinframe uploading, and cachepic unloading)

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

14 years agofix some issues with r_hdr 1 (or r_hdr_scenebrightness) where
havoc [Mon, 21 Dec 2009 14:01:32 +0000 (14:01 +0000)]
fix some issues with r_hdr 1 (or r_hdr_scenebrightness) where
r_refdef.view.colorscale was being misused

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

14 years agoforce R_GetCurrentTexture to regenerate data when
havoc [Mon, 21 Dec 2009 13:37:08 +0000 (13:37 +0000)]
force R_GetCurrentTexture to regenerate data when
r_refdef.view.colorscale is changed by r_hdr 1 rendering

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

14 years agofix movement loss tracking
divverent [Mon, 21 Dec 2009 12:44:14 +0000 (12:44 +0000)]
fix movement loss tracking

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

14 years agomovement packet loss tracking
divverent [Mon, 21 Dec 2009 12:31:10 +0000 (12:31 +0000)]
movement packet loss tracking

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

14 years agofix typo in StoreBigLong calls on NETFLAG_ACK packets
havoc [Mon, 21 Dec 2009 11:52:18 +0000 (11:52 +0000)]
fix typo in StoreBigLong calls on NETFLAG_ACK packets

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

14 years agoprint unknown keys a little differently, to avoid escape characters
havoc [Mon, 21 Dec 2009 09:09:54 +0000 (09:09 +0000)]
print unknown keys a little differently, to avoid escape characters

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

14 years agochange how compression hint check works
havoc [Mon, 21 Dec 2009 09:07:55 +0000 (09:07 +0000)]
change how compression hint check works

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

14 years agoremove some gl functions that are not used
havoc [Mon, 21 Dec 2009 09:02:32 +0000 (09:02 +0000)]
remove some gl functions that are not used

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

14 years agouse floats rather than doubles for view matrix stuff
havoc [Mon, 21 Dec 2009 09:01:24 +0000 (09:01 +0000)]
use floats rather than doubles for view matrix stuff

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

14 years agoadded LINK_TO_ZLIB define checks, to allow direct linking
havoc [Mon, 21 Dec 2009 09:00:00 +0000 (09:00 +0000)]
added LINK_TO_ZLIB define checks, to allow direct linking

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

14 years agoadded K_PRINTSCREEN, not actually used by any platforms though
havoc [Mon, 21 Dec 2009 08:57:25 +0000 (08:57 +0000)]
added K_PRINTSCREEN, not actually used by any platforms though

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

14 years agoadded SUPPORTIPV6 define checks - not defined by default, this should
havoc [Mon, 21 Dec 2009 08:56:36 +0000 (08:56 +0000)]
added SUPPORTIPV6 define checks - not defined by default, this should
help platforms that do not provide ipv6 network headers at all

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

14 years agoincrease NET_MAXMESSAGE in DP_SMALLMEMORY configuration, 16KB was too
havoc [Mon, 21 Dec 2009 08:54:40 +0000 (08:54 +0000)]
increase NET_MAXMESSAGE in DP_SMALLMEMORY configuration, 16KB was too
low for signons in some cases

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

14 years agoadded SUPPORTDLL define and checks, if any platforms lack support for
havoc [Mon, 21 Dec 2009 08:53:48 +0000 (08:53 +0000)]
added SUPPORTDLL define and checks, if any platforms lack support for
dynamic loading they could alter this define

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

14 years agocheck if FNDELAY is defined instead of checking WIN32
havoc [Mon, 21 Dec 2009 08:49:22 +0000 (08:49 +0000)]
check if FNDELAY is defined instead of checking WIN32

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

14 years agoprint memlist if out of memory error occurs
havoc [Mon, 21 Dec 2009 08:47:02 +0000 (08:47 +0000)]
print memlist if out of memory error occurs

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