]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agofix two-layer quake sky in r_glsl 1 mode (was blending the alpha layer wrongly)
havoc [Sat, 1 Mar 2008 04:54:54 +0000 (04:54 +0000)]
fix two-layer quake sky in r_glsl 1 mode (was blending the alpha layer wrongly)

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

16 years agodefault gl_texturecompression_q3bspdeluxemaps to 0
havoc [Fri, 29 Feb 2008 15:17:39 +0000 (15:17 +0000)]
default gl_texturecompression_q3bspdeluxemaps to 0

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

16 years agouse a better cast on a parameter in a ToAscii call, might fix a warning,
havoc [Fri, 29 Feb 2008 10:37:26 +0000 (10:37 +0000)]
use a better cast on a parameter in a ToAscii call, might fix a warning,
probably not

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

16 years agofix warnings on qglGetString calls
havoc [Fri, 29 Feb 2008 10:31:06 +0000 (10:31 +0000)]
fix warnings on qglGetString calls

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

16 years agoa fix from Black for prevseparator, hopefully the only bug
havoc [Fri, 29 Feb 2008 09:58:15 +0000 (09:58 +0000)]
a fix from Black for prevseparator, hopefully the only bug

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

16 years agoRestored FS_Search patch.
black [Fri, 29 Feb 2008 09:23:05 +0000 (09:23 +0000)]
Restored FS_Search patch.

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

16 years agoReverted Black's filematch changes for now, because they were still broken and we...
divverent [Thu, 28 Feb 2008 21:38:08 +0000 (21:38 +0000)]
Reverted Black's filematch changes for now, because they were still broken and we need to release, and I don't see how to fix it. Issue: "ls *.cfg" doesn't show the cfgs from the file system, just from the pk3s (e.g. it missed config.cfg), and on Windows it even showed something even weirder: "*.cfgconfig.cfg".

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

16 years agofix a bug in FS_ChangeGameDirs (it was doing a CL_Disconnect - can't do
havoc [Thu, 28 Feb 2008 10:35:29 +0000 (10:35 +0000)]
fix a bug in FS_ChangeGameDirs (it was doing a CL_Disconnect - can't do
that because when connecting to a QW server it disconnects)

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

16 years agoreworked min/avg/max fps report in timedemo, now works again
havoc [Thu, 28 Feb 2008 10:01:04 +0000 (10:01 +0000)]
reworked min/avg/max fps report in timedemo, now works again

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

16 years agofixed a problem with snd_renderbuffer->endframe being updated in the
havoc [Thu, 28 Feb 2008 03:35:17 +0000 (03:35 +0000)]
fixed a problem with snd_renderbuffer->endframe being updated in the
wrong place, causing windows waveOut audio to fail

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

16 years agoI must have been smoking cannabis when I wrote this (a pity I dont smoke cannabis...
black [Wed, 27 Feb 2008 22:59:43 +0000 (22:59 +0000)]
I must have been smoking cannabis when I wrote this (a pity I dont smoke cannabis). Fix CSQC_Ent_Spawn handling.

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

16 years agoDon't try to render something when height or width are zero.
black [Wed, 27 Feb 2008 22:11:08 +0000 (22:11 +0000)]
Don't try to render something when height or width are zero.

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

16 years agoMake the "no such builtin" message more descriptive
divverent [Wed, 27 Feb 2008 19:04:49 +0000 (19:04 +0000)]
Make the "no such builtin" message more descriptive

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

16 years ago|sort
divverent [Wed, 27 Feb 2008 16:49:00 +0000 (16:49 +0000)]
|sort

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

16 years agoDP_QC_NUM_FOR_EDICT extension implemented by Blub
havoc [Wed, 27 Feb 2008 16:34:09 +0000 (16:34 +0000)]
DP_QC_NUM_FOR_EDICT extension implemented by Blub

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

16 years agoslight change in location of a piece of code, should have no effect
havoc [Wed, 27 Feb 2008 16:05:58 +0000 (16:05 +0000)]
slight change in location of a piece of code, should have no effect
(this makes it closer to the way it was)

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

16 years agofix a typo (but it was harmless)
havoc [Wed, 27 Feb 2008 16:04:46 +0000 (16:04 +0000)]
fix a typo (but it was harmless)

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

16 years agoimplemented threaded audio mixing for SDL client (required some
havoc [Wed, 27 Feb 2008 15:22:17 +0000 (15:22 +0000)]
implemented threaded audio mixing for SDL client (required some
minor clean up of S_PaintAndSubmit and the functions it called, the
buffer painting management makes a lot more sense now)
fixed bug with looping sounds mixing sound to the wrong part of the
buffer after looping (uses a pointer instead of paintbuffer now)

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

16 years agooops... double builtins suck
divverent [Wed, 27 Feb 2008 14:01:55 +0000 (14:01 +0000)]
oops... double builtins suck

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

16 years agooops... use upper case hex, as that matches URI::Escape module (HTTP allows both)
divverent [Wed, 27 Feb 2008 13:54:22 +0000 (13:54 +0000)]
oops... use upper case hex, as that matches URI::Escape module (HTTP allows both)

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

16 years agoDP_QC_URI_ESCAPE
divverent [Wed, 27 Feb 2008 13:51:57 +0000 (13:51 +0000)]
DP_QC_URI_ESCAPE

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

16 years agoone last try to beat the OSX texture scrolling bug (set activetexture
havoc [Wed, 27 Feb 2008 11:52:29 +0000 (11:52 +0000)]
one last try to beat the OSX texture scrolling bug (set activetexture
and clientactivetexture - even though only the former is needed, and do
so before switching the matrixmode to texture)

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

16 years agofix bug in wav loader that messed up loopstart, now looping sounds in
havoc [Wed, 27 Feb 2008 11:35:48 +0000 (11:35 +0000)]
fix bug in wav loader that messed up loopstart, now looping sounds in
quake work properly

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

16 years agofix toggle command's error message for cvars that are not found (thanks
havoc [Wed, 27 Feb 2008 08:43:29 +0000 (08:43 +0000)]
fix toggle command's error message for cvars that are not found (thanks
to metlslime for reporting this)

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

16 years agodisable adaptive mixahead when soundtimehack is non-zero (recording,
havoc [Wed, 27 Feb 2008 05:57:26 +0000 (05:57 +0000)]
disable adaptive mixahead when soundtimehack is non-zero (recording,
etc)

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

16 years agoimplemented adaptive mixahead at low framerates (ones too low for the
havoc [Wed, 27 Feb 2008 05:47:57 +0000 (05:47 +0000)]
implemented adaptive mixahead at low framerates (ones too low for the
current _snd_mixahead value)

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

16 years agoaudited PixelFormat setup code and made it request appropriate bit
havoc [Tue, 26 Feb 2008 12:28:33 +0000 (12:28 +0000)]
audited PixelFormat setup code and made it request appropriate bit
depths

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

16 years agoChange GLX visual acquisition to also try without sample buffers if samples == 1...
res [Tue, 26 Feb 2008 11:27:24 +0000 (11:27 +0000)]
Change GLX visual acquisition to also try without sample buffers if samples == 1 - some Mesa drivers don't provide visuals with any sample buffer

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

16 years agodisabled cull face on lightning beams
havoc [Tue, 26 Feb 2008 09:56:01 +0000 (09:56 +0000)]
disabled cull face on lightning beams

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

16 years agomade r_showbboxes disable cull face
havoc [Tue, 26 Feb 2008 09:55:47 +0000 (09:55 +0000)]
made r_showbboxes disable cull face

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

16 years agooops... too many colors in xpm
divverent [Mon, 25 Feb 2008 17:06:33 +0000 (17:06 +0000)]
oops... too many colors in xpm

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

16 years agoremove misleading print from FS "My Games" code
divverent [Mon, 25 Feb 2008 15:09:03 +0000 (15:09 +0000)]
remove misleading print from FS "My Games" code

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

16 years agoMove rt* states and the ambient value into r_refdef_scene. Menu now uses fullbright...
black [Mon, 25 Feb 2008 13:07:10 +0000 (13:07 +0000)]
Move rt* states and the ambient value into r_refdef_scene. Menu now uses fullbright rendering as default.

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

16 years agofix fields.server reference in surface attribute code
havoc [Mon, 25 Feb 2008 10:29:30 +0000 (10:29 +0000)]
fix fields.server reference in surface attribute code

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

16 years ago475
havoc [Mon, 25 Feb 2008 07:49:34 +0000 (07:49 +0000)]
475

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

16 years agofix bug with r_novis 1 not enabling r_wateralpha support on unvised maps
havoc [Mon, 25 Feb 2008 07:49:10 +0000 (07:49 +0000)]
fix bug with r_novis 1 not enabling r_wateralpha support on unvised maps

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

16 years agofix bug with rtlights not being imported from the map sometimes (caused
havoc [Mon, 25 Feb 2008 07:48:46 +0000 (07:48 +0000)]
fix bug with rtlights not being imported from the map sometimes (caused
by previous level having a lot of lights, exposing a bug in
Mem_ExpandableArray_IndexRange)

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

16 years agopatch from Blub that fixes csqc polygon rendering
havoc [Mon, 25 Feb 2008 00:24:12 +0000 (00:24 +0000)]
patch from Blub that fixes csqc polygon rendering

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

16 years agolibjpeg writing: turn off chroma subsampling. Really improves how strong colors look...
divverent [Sat, 23 Feb 2008 21:44:51 +0000 (21:44 +0000)]
libjpeg writing: turn off chroma subsampling. Really improves how strong colors look on screenshots (like, red healthpack models or text no longer appear blurred)

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

16 years agoRevert revisions 7946 and 7767. R_Upload now doesn't pass NULL data pointers on to...
black [Sat, 23 Feb 2008 10:27:46 +0000 (10:27 +0000)]
Revert revisions 7946 and 7767. R_Upload now doesn't pass NULL data pointers on to GL (specs and drivers don't like it).

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

16 years agodon't link dxguid.lib or dinput.lib anymore, since they're now unused
havoc [Fri, 22 Feb 2008 22:43:06 +0000 (22:43 +0000)]
don't link dxguid.lib or dinput.lib anymore, since they're now unused

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

16 years agoset csqc world.mins and world.maxs (reworked World_SetSize to make this
havoc [Fri, 22 Feb 2008 05:30:33 +0000 (05:30 +0000)]
set csqc world.mins and world.maxs (reworked World_SetSize to make this
easier)
moved the qc SV_Shutdown in Host_ShutdownServer to before clients are
kicked off
added qc SV_Shutdown call in SV_SpawnServer (before the progs reset)
fixed a bug with failed changelevel (which was unloading world)

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

16 years agopatch from Blub that fixes DrawQ_Line with GLSL mode
havoc [Thu, 21 Feb 2008 22:31:34 +0000 (22:31 +0000)]
patch from Blub that fixes DrawQ_Line with GLSL mode

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

16 years agofix severe bug in my previous screensaver-disable patch that caused all
havoc [Thu, 21 Feb 2008 11:50:57 +0000 (11:50 +0000)]
fix severe bug in my previous screensaver-disable patch that caused all
window widgets to be ignored (minimize, close, etc)

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

16 years agoanother todo item for csqc spec changes
havoc [Thu, 21 Feb 2008 11:40:53 +0000 (11:40 +0000)]
another todo item for csqc spec changes

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

16 years agoadded #ifdef SUPPORTDIRECTX checks around all the dinput and dsound code
havoc [Thu, 21 Feb 2008 10:21:41 +0000 (10:21 +0000)]
added #ifdef SUPPORTDIRECTX checks around all the dinput and dsound code
- this means that dinput and dsound is not removed but is disabled,
  making it easier to compile with Dev-C++ and stock MSVS, this may have
bad consequences (some people swear by -dinput, and dsound was used by
default unless -wavonly was specified, so this is a behavior change)

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

16 years agogo back to using main - apparently some platforms don't use SDL_main
havoc [Thu, 21 Feb 2008 09:36:14 +0000 (09:36 +0000)]
go back to using main - apparently some platforms don't use SDL_main

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

16 years agomade missing gamedir errors non-fatal warnings
havoc [Thu, 21 Feb 2008 09:25:11 +0000 (09:25 +0000)]
made missing gamedir errors non-fatal warnings

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

16 years agoadded Dev-C++ project for SDL client
havoc [Thu, 21 Feb 2008 07:49:06 +0000 (07:49 +0000)]
added Dev-C++ project for SDL client

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

16 years agochanged main to SDL_main for simplicity reasons
havoc [Thu, 21 Feb 2008 07:48:46 +0000 (07:48 +0000)]
changed main to SDL_main for simplicity reasons

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

16 years agoadded DP_QC_EDICT_NUM extension to list
havoc [Thu, 21 Feb 2008 06:18:11 +0000 (06:18 +0000)]
added DP_QC_EDICT_NUM extension to list

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

16 years agofix addstat type parameter, swapped 8 and 2
havoc [Thu, 21 Feb 2008 06:03:27 +0000 (06:03 +0000)]
fix addstat type parameter, swapped 8 and 2

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

16 years agofix bug in csqc getplayerkey reported by Blub
havoc [Thu, 21 Feb 2008 04:16:49 +0000 (04:16 +0000)]
fix bug in csqc getplayerkey reported by Blub

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

16 years agofix warning
divverent [Wed, 20 Feb 2008 06:04:12 +0000 (06:04 +0000)]
fix warning

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

16 years agochanged hostname for tchr's master from excalibur.nvg.ntnu.no to
havoc [Tue, 19 Feb 2008 23:01:27 +0000 (23:01 +0000)]
changed hostname for tchr's master from excalibur.nvg.ntnu.no to
dpmaster.tchr.no

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

16 years agoremoved tag override support in .skin files - because Quake3 actually
havoc [Mon, 18 Feb 2008 19:15:33 +0000 (19:15 +0000)]
removed tag override support in .skin files - because Quake3 actually
doesn't do that (it doesn't use the tag names in .skin at all)

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

16 years agoFix a parameter switch typo in the linux code.
black [Fri, 15 Feb 2008 19:31:27 +0000 (19:31 +0000)]
Fix a parameter switch typo in the linux code.

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

16 years agoNew attempt to change listdirectory.
black [Fri, 15 Feb 2008 15:03:06 +0000 (15:03 +0000)]
New attempt to change listdirectory.
FS_Search now also correctly processes wildcards everywhere (models/players/*/*.skin works now).

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

16 years agosplit Mod_GetMesh_Vertices into 3 AnimateVertices functions, chosen by
havoc [Fri, 15 Feb 2008 10:07:37 +0000 (10:07 +0000)]
split Mod_GetMesh_Vertices into 3 AnimateVertices functions, chosen by
model loaders, this should improve compile times a bit in MSVS

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

16 years agofix a typo
havoc [Thu, 14 Feb 2008 23:03:24 +0000 (23:03 +0000)]
fix a typo

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

16 years agoalways call Sleep(0) at the end of each frame on Windows, I hope this
havoc [Thu, 14 Feb 2008 23:03:11 +0000 (23:03 +0000)]
always call Sleep(0) at the end of each frame on Windows, I hope this
fixes problems with Logitech input drivers freezing the game for 50+
milliseconds every 3 seconds or so, and has no harm to framerate in
testing

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

16 years agoremove cl_alwayssleep, it only does what we want on Windows
havoc [Thu, 14 Feb 2008 23:01:28 +0000 (23:01 +0000)]
remove cl_alwayssleep, it only does what we want on Windows

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

16 years agoremove an unnecessary check in Sys_Sleep
havoc [Thu, 14 Feb 2008 23:01:01 +0000 (23:01 +0000)]
remove an unnecessary check in Sys_Sleep

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

16 years agoFix it.. nah I'm just reverting :D
black [Thu, 14 Feb 2008 20:57:01 +0000 (20:57 +0000)]
Fix it.. nah I'm just reverting :D

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

16 years agoFix something Ive broken ofc.
black [Thu, 14 Feb 2008 20:41:07 +0000 (20:41 +0000)]
Fix something Ive broken ofc.

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

16 years agoAppend path in listdirectory automatically.
black [Thu, 14 Feb 2008 20:12:35 +0000 (20:12 +0000)]
Append path in listdirectory automatically.
Remove .. and . from directory listings in the Win32 code, too.

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

16 years agoslight cleanup of Sys_EventFilter
havoc [Thu, 14 Feb 2008 18:21:54 +0000 (18:21 +0000)]
slight cleanup of Sys_EventFilter

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

16 years agoimplemented vid_samples cvar (antialiasing samples per pixel)
havoc [Thu, 14 Feb 2008 17:38:09 +0000 (17:38 +0000)]
implemented vid_samples cvar (antialiasing samples per pixel)
oh and for the record, Windows multisample buffer setup is awful.

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

16 years agodisable screensaver on windows while game window is active
havoc [Thu, 14 Feb 2008 14:51:16 +0000 (14:51 +0000)]
disable screensaver on windows while game window is active

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

16 years agoadded vid_vsync control in SDL
havoc [Thu, 14 Feb 2008 14:29:58 +0000 (14:29 +0000)]
added vid_vsync control in SDL

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

16 years agoadded experimental cl_alwayssleep cvar which calls Sys_Sleep(0) at the
havoc [Thu, 14 Feb 2008 14:10:57 +0000 (14:10 +0000)]
added experimental cl_alwayssleep cvar which calls Sys_Sleep(0) at the
end of each frame
fixed a bug in the main loop that made Sys_Sleep be called with
milliseconds when it takes microseconds

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

16 years agochanged now showfps calculates the fps - hopefully an improvement
havoc [Thu, 14 Feb 2008 14:09:14 +0000 (14:09 +0000)]
changed now showfps calculates the fps - hopefully an improvement

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

16 years agoNexuiz icon updated
divverent [Thu, 14 Feb 2008 11:08:08 +0000 (11:08 +0000)]
Nexuiz icon updated

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

16 years agoremove unnecessary #include of quakedef.h
havoc [Thu, 14 Feb 2008 01:29:14 +0000 (01:29 +0000)]
remove unnecessary #include of quakedef.h

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

16 years agonew Nexuiz icon... still waiting for .ico
divverent [Wed, 13 Feb 2008 21:45:49 +0000 (21:45 +0000)]
new Nexuiz icon... still waiting for .ico

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

16 years agochanged ANGLEMOD to use floor instead of conversion to 16bit fixed-point
havoc [Tue, 12 Feb 2008 01:41:13 +0000 (01:41 +0000)]
changed ANGLEMOD to use floor instead of conversion to 16bit fixed-point

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

16 years agoreworked cl.viewangles bounding of roll angle, and simplified pitch
havoc [Tue, 12 Feb 2008 01:37:56 +0000 (01:37 +0000)]
reworked cl.viewangles bounding of roll angle, and simplified pitch
handling

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

16 years agothanks to blub for locating the texture blending bug
divverent [Sun, 10 Feb 2008 21:37:14 +0000 (21:37 +0000)]
thanks to blub for locating the texture blending bug

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

16 years agorespect the conchars image width/height correctly, and only draw the needed part...
divverent [Fri, 8 Feb 2008 10:16:22 +0000 (10:16 +0000)]
respect the conchars image width/height correctly, and only draw the needed part of the font rect - fixes connector characters in variable width fonts

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

16 years agomake "set con_completion_commandname map" a command complete as if it were the "map...
divverent [Wed, 6 Feb 2008 18:44:53 +0000 (18:44 +0000)]
make "set con_completion_commandname map" a command complete as if it were the "map" command

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

16 years agohopefully fix engine crash with map-less shader stages
divverent [Wed, 6 Feb 2008 16:51:02 +0000 (16:51 +0000)]
hopefully fix engine crash with map-less shader stages

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

16 years agodisable joystick by default, and make joy_enable saved;
divverent [Wed, 6 Feb 2008 07:38:46 +0000 (07:38 +0000)]
disable joystick by default, and make joy_enable saved;
add extension DP_QC_CVAR_TYPE that checks what type a cvar is (like, if the engine created it or the mod, or if it is saved)
will write dpextensions.qc block for it later, a start of its description is in mbuiltin.h in Nexuiz

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

16 years agoComment out a line in setmodel again (needs fixing but wasn't in there before anyway)
black [Tue, 5 Feb 2008 18:15:09 +0000 (18:15 +0000)]
Comment out a line in setmodel again (needs fixing but wasn't in there before anyway)
Always clear the depth buffer in R_RenderView.
Use realtime as scene time when rendering the menu scene.

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

16 years agoFix the VM's clientstate builtin to do a correct mapping between the client state...
black [Tue, 5 Feb 2008 16:20:23 +0000 (16:20 +0000)]
Fix the VM's clientstate builtin to do a correct mapping between the client state and the menu's constants (now that the client state values have changed in DP itself).

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

16 years agoFix a typo. Enjoy.
black [Mon, 4 Feb 2008 21:09:03 +0000 (21:09 +0000)]
Fix a typo. Enjoy.

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

16 years agohuge audit of dprints throughout engine, all notices of successfully
havoc [Mon, 4 Feb 2008 11:47:04 +0000 (11:47 +0000)]
huge audit of dprints throughout engine, all notices of successfully
loading models/sounds/skins/etc are now tied to the cvar
developer_loading
added developer_loadfile cvar (prints every successful FS_LoadFile)
many improvements to consistency of loading notices, and some cleanups
to q3 shader handling
fixed annoying 'Bad dynamic texture name' spam at load

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

16 years agofix bug that caused early console messages to not be put in console
havoc [Mon, 4 Feb 2008 11:33:14 +0000 (11:33 +0000)]
fix bug that caused early console messages to not be put in console
history (because cls.state defaulted to ca_dedicated - now it defaults
to ca_uninitialized)

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

16 years agoreplaced World_Clear with World_SetSize and World_UnlinkAll
havoc [Mon, 4 Feb 2008 11:24:42 +0000 (11:24 +0000)]
replaced World_Clear with World_SetSize and World_UnlinkAll

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

16 years agomodified droptofloor to try a downward trace from the bottom center of
havoc [Mon, 4 Feb 2008 01:28:39 +0000 (01:28 +0000)]
modified droptofloor to try a downward trace from the bottom center of
the object if it is stuck, this manages to 'correctly' place many badly
placed entities in quake maps
additionally modified droptofloor to first try unsticking the entity
before dropping it (sv_gameplayfix_droptofloorstartsolid_nudgetocorrect)

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

16 years agorevert my change and fix the types on Black's changes, which were the
havoc [Sun, 3 Feb 2008 12:42:04 +0000 (12:42 +0000)]
revert my change and fix the types on Black's changes, which were the
real problem (this revert only due to my change being slightly messier)

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

16 years agoadded GAME_BLADEMASTER
havoc [Sun, 3 Feb 2008 11:13:29 +0000 (11:13 +0000)]
added GAME_BLADEMASTER

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

16 years agofix Black's PRVM_EDICT_NUM_ERROR return type change which did not work
havoc [Sun, 3 Feb 2008 11:12:42 +0000 (11:12 +0000)]
fix Black's PRVM_EDICT_NUM_ERROR return type change which did not work
(0 is not the same as NULL, compilers get upset about that)
one other minor correction of the same kind

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

16 years agofix bugs with changing apple_mouse_noaccel and vid_dgamouse while grabbed (that previ...
divverent [Sat, 2 Feb 2008 18:38:38 +0000 (18:38 +0000)]
fix bugs with changing apple_mouse_noaccel and vid_dgamouse while grabbed (that previously could "destroy" mouse support until console gets pulled down and up)

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

16 years agoRewrite CSQC's setmodel a bit.
black [Fri, 1 Feb 2008 16:21:37 +0000 (16:21 +0000)]
Rewrite CSQC's setmodel a bit.
Add support for CSQC_Ent_Spawn to csqc. A function that is called when a entity packet from the server arrives that requires a new entity.
entity( float entnum ) CSQC_Ent_Spawn;
CSQC_Ent_Spawn needs to spawn a new entity and set its .entnum field accordingly or simply return another existing entity or world if it wants to ignore that server entity. Subsequent CSQC_Ent_Update calls are routed to that entity (or CSQC_Ent_Spawn is called again when .Version increases).

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

16 years agofix broken table length, and yet another hardcoded index
divverent [Fri, 1 Feb 2008 09:20:07 +0000 (09:20 +0000)]
fix broken table length, and yet another hardcoded index

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

16 years ago- vid_userefreshrate: when 0, a sane default is tried to be used
divverent [Fri, 1 Feb 2008 08:56:31 +0000 (08:56 +0000)]
- vid_userefreshrate: when 0, a sane default is tried to be used
- win32: list valid modes, and use the closest match
- win32: vid_forcerefreshrate: don't do the listing, but just try to set it anyway

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

16 years agorenamed MATERIALFLAG_WATER to MATERIALFLAG_WATERSCROLL
havoc [Fri, 1 Feb 2008 06:00:59 +0000 (06:00 +0000)]
renamed MATERIALFLAG_WATER to MATERIALFLAG_WATERSCROLL
changed all MATERIALFLAG_WATER materials to use MATERIALFLAG_WALL as
their primary material flag, this simplified some rendering code
did some more tweaks to fix issues with the mirror glass texture in
the tenebrae testmap

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

16 years agoreassigned some GL20TU values to use only 11 texture slots
havoc [Fri, 1 Feb 2008 05:51:21 +0000 (05:51 +0000)]
reassigned some GL20TU values to use only 11 texture slots

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

16 years agothere was only a single way to mess it up, and I managed to find it... 1.0/int, not...
divverent [Thu, 31 Jan 2008 10:53:07 +0000 (10:53 +0000)]
there was only a single way to mess it up, and I managed to find it... 1.0/int, not 1/int

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

16 years agonew uniform "PixelSize" defined as (size_x, size_y) that is (1/texwidth, 1/texheight...
divverent [Thu, 31 Jan 2008 09:21:25 +0000 (09:21 +0000)]
new uniform "PixelSize" defined as (size_x, size_y) that is (1/texwidth, 1/texheight) for the postprocessing shader - user defined stuff may use it

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