]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
14 years agodefault r_lerpsprites to 0 because it causes flickering
havoc [Wed, 30 Dec 2009 20:03:51 +0000 (20:03 +0000)]
default r_lerpsprites to 0 because it causes flickering

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

14 years agoremove an unused variable
havoc [Wed, 30 Dec 2009 19:40:42 +0000 (19:40 +0000)]
remove an unused variable

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

14 years agochange WIN64RELEASE options
havoc [Wed, 30 Dec 2009 19:37:33 +0000 (19:37 +0000)]
change WIN64RELEASE options

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

14 years agobuffer up to 32 recent frame numbers for clc_ack to prevent entity
havoc [Wed, 30 Dec 2009 19:27:03 +0000 (19:27 +0000)]
buffer up to 32 recent frame numbers for clc_ack to prevent entity
resyncs on the server when the client framerate is much lower than the
server framerate, repeat frame numbers of previous input packet
(cl_netrepeatinput cvar, just like clc_move repeats)

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

14 years agofix water rendering bugs where the clipping plane was not being used
havoc [Wed, 30 Dec 2009 16:42:21 +0000 (16:42 +0000)]
fix water rendering bugs where the clipping plane was not being used

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

14 years agofix engine version display
divverent [Wed, 30 Dec 2009 13:37:17 +0000 (13:37 +0000)]
fix engine version display

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

14 years agoadded WIN64RELEASE flags
havoc [Wed, 30 Dec 2009 12:19:31 +0000 (12:19 +0000)]
added WIN64RELEASE flags

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

14 years agofix water rendering
havoc [Wed, 30 Dec 2009 12:19:15 +0000 (12:19 +0000)]
fix water rendering

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

14 years agoremove some unwanted debug prints
divverent [Wed, 30 Dec 2009 11:27:53 +0000 (11:27 +0000)]
remove some unwanted debug prints

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

14 years agodon't spatialize twice :P
divverent [Wed, 30 Dec 2009 11:24:51 +0000 (11:24 +0000)]
don't spatialize twice :P

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

14 years agohopefully fix a race condition in S_StartSound
divverent [Wed, 30 Dec 2009 11:24:10 +0000 (11:24 +0000)]
hopefully fix a race condition in S_StartSound

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

14 years agoget rid of a warning
blub [Wed, 30 Dec 2009 11:09:00 +0000 (11:09 +0000)]
get rid of a warning

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

14 years agoadd back -fno-strict-aliasing to hush warnings
havoc [Wed, 30 Dec 2009 11:05:08 +0000 (11:05 +0000)]
add back -fno-strict-aliasing to hush warnings

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

14 years agomore redundant suffix elimination
divverent [Wed, 30 Dec 2009 09:26:56 +0000 (09:26 +0000)]
more redundant suffix elimination

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

14 years agoremove redundant _Size suffix from textwidth functions, as now all of them would...
divverent [Wed, 30 Dec 2009 09:14:48 +0000 (09:14 +0000)]
remove redundant _Size suffix from textwidth functions, as now all of them would have it

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

14 years agofix alignment of fps counter with ft2 fonts, and other alignment issues
divverent [Wed, 30 Dec 2009 09:10:19 +0000 (09:10 +0000)]
fix alignment of fps counter with ft2 fonts, and other alignment issues

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

14 years agoadd the intoverflow lib
divverent [Wed, 30 Dec 2009 07:54:24 +0000 (07:54 +0000)]
add the intoverflow lib

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

14 years agohandle integer overflow when DDS loading
divverent [Wed, 30 Dec 2009 07:54:06 +0000 (07:54 +0000)]
handle integer overflow when DDS loading

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

14 years agofix the overflow checks :(
divverent [Wed, 30 Dec 2009 07:40:48 +0000 (07:40 +0000)]
fix the overflow checks :(

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

14 years agoDDS: handle file size errors
divverent [Wed, 30 Dec 2009 07:38:47 +0000 (07:38 +0000)]
DDS: handle file size errors

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

14 years agoimplemented support for caching compressed textures (.dds files),
havoc [Wed, 30 Dec 2009 02:21:16 +0000 (02:21 +0000)]
implemented support for caching compressed textures (.dds files),
disabled by default

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

14 years agousing tables for u8_analyze to speed it up
blub [Tue, 29 Dec 2009 14:04:29 +0000 (14:04 +0000)]
using tables for u8_analyze to speed it up

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

14 years agofix declaration of buildstring
divverent [Tue, 29 Dec 2009 12:11:00 +0000 (12:11 +0000)]
fix declaration of buildstring

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

14 years agomake the utf8 casting strict aliasing-safe
divverent [Tue, 29 Dec 2009 11:33:58 +0000 (11:33 +0000)]
make the utf8 casting strict aliasing-safe

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

14 years agoimprove the just added macros to not cause anything unexpected if passed a wrong...
divverent [Tue, 29 Dec 2009 07:09:06 +0000 (07:09 +0000)]
improve the just added macros to not cause anything unexpected if passed a wrong pointer type

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

14 years agofactor out the non-utf8 part of u8_get*char into macros
divverent [Tue, 29 Dec 2009 07:06:37 +0000 (07:06 +0000)]
factor out the non-utf8 part of u8_get*char into macros

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

14 years agodon't explicitly enable GL_ARB_shadow extension in GLSL code (shouldn't be necessary...
eihrul [Mon, 28 Dec 2009 21:16:27 +0000 (21:16 +0000)]
don't explicitly enable GL_ARB_shadow extension in GLSL code (shouldn't be necessary according to spec)

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

14 years agofix a NULL free attempt
havoc [Mon, 28 Dec 2009 19:54:16 +0000 (19:54 +0000)]
fix a NULL free attempt

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

14 years agofix stray semicolon
eihrul [Mon, 28 Dec 2009 19:53:04 +0000 (19:53 +0000)]
fix stray semicolon

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

14 years agoadded developer_font, set > 100 to also dump the generated images
blub [Mon, 28 Dec 2009 17:16:44 +0000 (17:16 +0000)]
added developer_font, set > 100 to also dump the generated images

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

14 years agoremoved TEXF_MANUALFLUSHUPDATES flag, now bufferpixels flushing occurs
havoc [Mon, 28 Dec 2009 14:29:05 +0000 (14:29 +0000)]
removed TEXF_MANUALFLUSHUPDATES flag, now bufferpixels flushing occurs
automatically when R_Mesh_TexBind uses the texture
changed default value of gl_nopartialtextureupdates from 0 to 1

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

14 years agomoved almost all R_GetTexture calls into R_Mesh_TexBind
havoc [Mon, 28 Dec 2009 14:04:06 +0000 (14:04 +0000)]
moved almost all R_GetTexture calls into R_Mesh_TexBind
removed R_Mesh_TexBindAll
R_Mesh_TexBind now only takes one texture parameter, an rtexture_t *

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

14 years agoexposed two more fields in rtexture_t, now texnum is always non-zero but
havoc [Mon, 28 Dec 2009 14:03:46 +0000 (14:03 +0000)]
exposed two more fields in rtexture_t, now texnum is always non-zero but
there is a dirty flag, and there is a gltexturetypeenum for use by
binding code
eliminated internal flags GLTEXF_UPLOAD and GLTEXF_DESTROYED

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

14 years agofix font glyph loading coordinates - now unhinted works
divverent [Mon, 28 Dec 2009 14:02:15 +0000 (14:02 +0000)]
fix font glyph loading coordinates - now unhinted works

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

14 years agoreduced the options in LDFLAGS_WINCOMMON and added them to their
havoc [Mon, 28 Dec 2009 13:21:36 +0000 (13:21 +0000)]
reduced the options in LDFLAGS_WINCOMMON and added them to their
respective builds instead, so that LDFLAGS_WINCOMMON can easily be set
to nothing on the commandline for mingw64 builds
(where --large-address-aware produces a compile error)

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

14 years agomore cvars: r_font_antialias (0, 1)
divverent [Mon, 28 Dec 2009 13:21:19 +0000 (13:21 +0000)]
more cvars: r_font_antialias (0, 1)

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

14 years agotry using imagefont from fallbacks as well (.tga and .width)
blub [Mon, 28 Dec 2009 12:08:54 +0000 (12:08 +0000)]
try using imagefont from fallbacks as well (.tga and .width)

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

14 years agoremove a no longer applying fixme comment
divverent [Mon, 28 Dec 2009 12:05:09 +0000 (12:05 +0000)]
remove a no longer applying fixme comment

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

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