Commit graph

12891 commits

Author SHA1 Message Date
Christoph Oelckers
a210aaea3e - fixed: All melee functions calling TraceBleed after DamageMobj must first copy the target member to a local variable.
DamageMobj can destroy the damaged actor if the death state sequence has zero duration. But Actor.target is a garbage collected member variable, i.e. it will be null, once the actor it points to gets destroyed.
This was originally done correctly in the C++ code but during the scriptification all those 'AActor *target = self->target' lines were removed because they looked redundant, but were not.
2017-06-06 09:12:58 +02:00
svdijk
c698f10257 Fix setting of the gl_legacy_mode cvar. 2017-06-05 14:45:24 +02:00
Christoph Oelckers
3b818171d5 - do not let P_AdjustFloorCeil use the return from P_CheckPosition if floorz is greater than ceilingz.
This can only happen if some thing gets placed somewhere it doesn't physically fit in and as a result of the floor move would be pushed into an even more invalid place.

See https://forum.zdoom.org/viewtopic.php?f=2&t=56764
2017-06-05 12:20:59 +02:00
alexey.lysiuk
c7b895c8ff Fixed applying of clip rect to screen dimming
https://forum.zdoom.org/viewtopic.php?t=56719
2017-06-05 09:48:09 +03:00
Christoph Oelckers
1ed415014e - fixed: 'self' may never be null for native VM functions so it must always abort if null gets passed. 2017-06-05 08:43:12 +02:00
Rachael Alexanderson
757957bfac - prevent SetShaded action function from messing up the RGB-to-PAL conversion with a possible overflow
- add RGB-to-PAL support for UDMF fillcolor property
2017-06-04 14:46:03 -04:00
Christoph Oelckers
91680a1e8d - fixed incorrect number of returns in SetRandomSeed. 2017-06-04 18:56:03 +02:00
Rachael Alexanderson
5185ebbc28 - fixed: Add light diminishing to true-color stencil drawers
- fixed: Non-SSE AddClampShadedBgra (stencil) drawer did not handle overflows
2017-06-04 12:46:39 -04:00
Rachael Alexanderson
62374cf3bc - fixed: add light diminishing support to rgb666 palette stencil drawers 2017-06-04 12:26:04 -04:00
Christoph Oelckers
211783c110 - added the UDMF sector scroll fields from Eternity.
These are currently untested and need review, especially regarding the scroll factor that gets applied to the numbers.
2017-06-04 18:03:43 +02:00
Rachael Alexanderson
564e24be28 - Added truecolor support to truecolor stencil drawers 2017-06-04 12:00:15 -04:00
alexey.lysiuk
a797db74da Silenced scripting warning from main .pk3
Script warning, "gzdoom.pk3:zscript/menu/playercontrols.txt" line 526:
Truncation of floating point value
2017-06-04 16:21:10 +03:00
Christoph Oelckers
1cb3514b05 - use 0 as the default for r_vanillatrans.
As nice as the automatic is, this will trigger far too many cases where it will disable translucency for mods that only change some texts. Dehacked is very often only used for non-actor related modifications.
If the automatic is supposed to be the default it needs to do a lot more thorough checks to avoid bug reports due to misunderstanding the feature.
2017-06-04 12:39:39 +02:00
Rachael Alexanderson
c18134dbd3 - r_vanillatrans: Cache the cache! Transform the function into a global variable and recheck at the start of D_Display 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
5eaf085d58 - fixed minor menudef mistake 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
4686ba78a0 - Add licenses to r_vanillatrans files 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
68b6f922f7 - Added auto-detection scheme for r_vanillatrans
It now works the following way:
(0) - Force off (ZDoom defaults)
(1) - Force on (Doom defaults)
(2) - Auto off (Prefer ZDoom defaults - if DEHACKED is detected with no ZSCRIPT it will turn on) (default)
(3) - Auto on (Prefer Doom defaults - if DECORATE is detected with no ZSCRIPT it will turn off)
2017-06-04 12:30:35 +02:00
Rachael Alexanderson
11741846c6 - fixed: missed the teleport fog 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
e1bb44a9ed - added menu option for r_vanillatrans 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
10a9d087f1 - fixed: missed the golden wand puff for the +ZDOOMTRANS flag 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
2997f31f9f - removed ZDOOMADD and updated actors in question with ZDOOMTRANS 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
a937f709aa - Added +ZDOOMADD to all Heretic, Hexen, and Strife actors that needed it (that I know of...)
- this developer's insanity level increased another 21%
2017-06-04 12:30:35 +02:00
Rachael Alexanderson
89b372cb01 - Changed MF7_SPRITEFLIP, MF8_ZDOOMTRANS to RenderFlags
- Added RF_ZDOOMADD
- renamed r_canontrans to r_vanillatrans
- this developer's insanity level has increased by 231%.
2017-06-04 12:30:35 +02:00
Rachael Alexanderson
c252b5d753 - fixed: forgot to assign +ZDOOMTRANS to rockets 2017-06-04 12:30:35 +02:00
Rachael Alexanderson
01f88cfb16 - Added 'canonical transparency' cvar r_canontrans - this simply turns off transparency for Doom objects that were marked as transparent sometime in ZDoom's development cycle 2017-06-04 12:30:35 +02:00
Magnus Norddahl
7acb492852 - Add gl_shadowmap_quality cvar that controls the resolution of the 1D shadow map texture 2017-06-04 00:44:49 +02:00
Magnus Norddahl
265df4b797 - Change shadowmap resolution from 1024 to 128 2017-06-03 21:19:34 +02:00
Christoph Oelckers
1df7dc81e6 - fixed: The statusbar's MustDrawLog method was called with an incorrect number of parameters. 2017-06-03 19:44:22 +02:00
Magnus Norddahl
797cb94b4f - Add stat shadowmap to get performance for the upload part of the shadow maps 2017-06-03 19:24:54 +02:00
Magnus Norddahl
7edb75d299 - The mandatory include compile error fix for unix 2017-06-03 18:28:12 +02:00
Magnus Norddahl
d38dae5de8 - Add gpu stat that displays how much time the GPU spent on named GL groups 2017-06-03 18:14:24 +02:00
jplebreton
2c7a0c87c8 add FloatBobStrength Actor property, a multiplier on Z offset created by FloatBob behavior. default of 1.0 is current behavior, set higher/lower for more/less extreme bobbing. 2017-06-03 18:02:27 +02:00
Magnus Norddahl
f593e2aa3c - Fix stat output to use the console scale 2017-06-03 16:58:09 +02:00
Rachael Alexanderson
cdc0bf1cd5 - condense all of unloved/2.pk3's compatibility entries together since they are all the same 2017-06-02 16:58:22 -04:00
Kirill Gavrilov
2a8ebc6c27 Fixed broken Interleaved 3D output when GL Sampler objects are used 2017-06-02 09:10:38 +02:00
Rachael Alexanderson
5502421901 - fixed: Using pure software drawers (vid_hw2d==false) drawing stencils on the screen resulted in black stencils
- this fixes crosshairs being drawn black
2017-06-01 16:21:15 -04:00
Magnus Norddahl
c30010370e - Fix voxels not being rendered when the replaced sprite texture doesn't exist 2017-06-01 00:26:25 +02:00
Rachael Alexanderson
9e2d44e9c8 - Added a number of missing textures for all 4 episodes of Ultimate Doom 2017-05-31 21:29:25 +02:00
Rachael Alexanderson
f753a8bfbc - Two more compat fixes for Doom2 - this at least covers all the HOM errors mentioned in the Doom Wiki. 2017-05-31 11:28:27 -04:00
Rachael Alexanderson
907d1e0056 - Several compatibility fixes for Doom2's first map cluster. Fixes missing textures as well as incorrect sector tagging causing glitches when opening doors or triggering an ambush. 2017-05-31 08:46:29 -04:00
Christoph Oelckers
1bd3098dec - Now we are at 3.2pre. 2017-05-31 12:52:38 +02:00
Christoph Oelckers
d8d4723ae1 - removed PCD_GetActorZ double check. 2017-05-31 11:52:51 +02:00
Christoph Oelckers
1465102ba0 - added SetRandomSeed function for ZScript. This uses the same RNG syntax as the other random functions. 2017-05-31 11:33:57 +02:00
Christoph Oelckers
afa2888acb - fixed size clamping of sector lights to use 1024 as maximum, not 255 as inherited from ZDoomGL. 2017-05-31 10:41:43 +02:00
Christoph Oelckers
977d5988c5 - fixed weapon sprite light calculation for low light levels. 2017-05-31 09:27:50 +02:00
Christoph Oelckers
b50123ec6b - avoid function call in VM code.
- return after calling ThrowAbortException because this avoids storing some register variables on the stack.
2017-05-30 17:50:56 +02:00
alexey.lysiuk
62bac1d612 Added check for nullptr to CLSS and META instructions of scripting VM
https://forum.zdoom.org/viewtopic.php?t=56667
2017-05-30 18:09:51 +03:00
alexey.lysiuk
0c90253a5d Fixed potentially broken portal rendering after OpenGL context change
https://forum.zdoom.org/viewtopic.php?t=56393
2017-05-30 13:01:51 +03:00
alexey.lysiuk
7e7e1ff12e Added VS2017 Release targets to AppVeyor configuration
Removed VS2015 Win32 Debug target to speedup build process
2017-05-29 14:50:39 +03:00
alexey.lysiuk
3b61be3145 Removed dependency on dxguid library
It's impossible to use VS2017 with XP compatible toolset otherwise
2017-05-29 14:46:56 +03:00