drfrag666
0964fd7108
Revert "- Changed savegame list order, now they are sorted by reverse slot number instead of alphabetically."
...
This reverts commit dc8d32cb69
.
This is an experimental feature and should not be in the release.
2018-06-14 08:52:54 +02:00
alexey.lysiuk
807695783f
- fixed portal restoration on revisiting level in hub
...
Added function to FLevelLocals to test if map is being reentered
https://forum.zdoom.org/viewtopic.php?t=60455
(cherry picked from commit 29d2e77840
)
2018-06-11 12:25:30 +02:00
Christoph Oelckers
ed5c2b21ac
- ZScript used the wrong variable for compatflags2.
...
ii_* is merely the storage for info from the compatibility.txt lump.
(cherry picked from commit ae1fe041ee
)
2018-06-09 19:44:12 +02:00
alexey.lysiuk
c5b20b91ff
- fixed: flag CVars in ZScript referenced wrong addresses
...
(cherry picked from commit 4a1f36623b
)
2018-06-09 19:44:11 +02:00
drfrag666
8ff20c98a5
- That cmath include was actually not needed (bad merge).
2018-06-09 14:46:34 +02:00
Christoph Oelckers
43c3d63786
- redirect script access to the compatflags CVARs to their internal shadow variables.
...
This is needed so that MAPINFO settings for these flags don't get ignored.
(cherry picked from commit 1fdcacc337
)
# Conflicts:
# src/scripting/backend/codegen.cpp
2018-06-09 14:30:41 +02:00
drfrag666
f24f5e1bf9
- Clarify SSE2 option for software truecolor.
2018-06-07 20:06:48 +02:00
drfrag666
f48c52291c
- Fixed: the new savegame order didn't take into account custom filenames. Try to catch most custom names.
2018-06-07 11:43:13 +02:00
Magnus Norddahl
ee41e9d93a
- fix missing include
...
(cherry picked from commit 2abf700c29
)
2018-06-06 08:49:18 +02:00
Magnus Norddahl
01332a1bde
- add dynamic lights to softpoly and software renderer models
...
(cherry picked from commit 5464d2a577
)
# Conflicts:
# src/gl/scene/gl_spritelight.cpp
2018-06-06 08:49:08 +02:00
Magnus Norddahl
6a1722076a
- fix null pointer crash in softpoly
...
(cherry picked from commit 61f379c88f
)
2018-06-06 01:52:07 +02:00
Christoph Oelckers
a8c0e67b21
- fixed autoaiming for unranged attacks.
...
The abort condition for the extended checks must completely stop any further processing but the check for this was missing.
(cherry picked from commit 60b6dbadb2
)
2018-06-05 21:16:58 +02:00
Magnus Norddahl
f70715e25a
- fix software renderer dynamic lights not working properly in mirrors
...
(cherry picked from commit f5386a706f
)
2018-06-05 21:15:12 +02:00
Magnus Norddahl
d0ff0bcaf2
- draw models in mirrors and portals at the right location in the software renderer
...
(cherry picked from commit b74a9965b8
)
2018-06-05 21:15:12 +02:00
Marisa Kirisame
70c5886987
Adds "OnGiveSecret" virtual function on Actor for customizing behavior of secret finding.
...
(cherry picked from commit 477cf23fd2
)
2018-06-05 20:10:12 +02:00
Magnus Norddahl
28ec13b66c
- avoid using global variables in the inner fuzz drawer loop
...
(cherry picked from commit 674b6ee85c
)
2018-06-05 20:10:11 +02:00
Magnus Norddahl
69c51ae8b7
- fix dynlight color not being applied on sprites
...
(cherry picked from commit 51fd715404
)
2018-06-05 20:10:10 +02:00
Magnus Norddahl
2dff3af8cb
- fix softpoly colored fog bug in the new drawers
...
(cherry picked from commit 9cd751ae7a
)
2018-06-05 20:10:09 +02:00
alexey.lysiuk
3712a2cea5
- fix crash on dying when player class has no death states
...
https://forum.zdoom.org/viewtopic.php?t=60815
(cherry picked from commit 7009755c52
)
2018-06-05 12:26:02 +02:00
Christoph Oelckers
dc43bc5f0e
- fixed FMemArena to always return 16 byte aligned pointers.
...
Unfortunately this turned out harder than expected because of FSharedStringArena making some strong assumptions about the underlying implementation.
(cherry picked from commit 2f6dc46f14
)
2018-06-05 00:04:31 +02:00
Marisa Kirisame
74f4c8a6dd
BLOCKASPLAYER flag: treat non-player actors as blockable by "block players" lines
...
(cherry picked from commit fae514f30d
)
2018-06-05 00:04:22 +02:00
Rachael Alexanderson
4d238beb7b
- fixed - sector sounds were not translated through portal groups properly
...
(cherry picked from commit 780ddd21bd
)
2018-06-05 00:04:04 +02:00
Magnus Norddahl
3e9f8e7679
- use a light array to simplify inner light math
...
(cherry picked from commit e3c78ab838
)
2018-06-04 09:55:35 +02:00
Magnus Norddahl
f218485a57
- use affine dynlights in softpoly
...
(cherry picked from commit 97f4cc1951
)
2018-06-04 09:55:33 +02:00
drfrag666
6d15e0eb89
Revert "- fix memory arena allocation alignment for 32 bit systems."
...
This reverts commit 8f138a42e3
.
This gives an assertion failed error in zstring.h with MinGW.
2018-06-03 20:50:04 +02:00
Christoph Oelckers
fccd77500f
- Fixed: Dehacked must not validate parameters for MBF special functions.
...
These won't match the conditions.
Additionally this adds disassembly output for the synthesized replacement functions for diagnostics purposes.
(cherry picked from commit d18f5eecb4
)
2018-06-03 20:29:59 +02:00
Magnus Norddahl
a166f6a7ae
- replace the old rect drawers with new ones based on render styles
...
(cherry picked from commit d425fb2d4a
)
2018-06-03 20:13:48 +02:00
Magnus Norddahl
b07c4c41c7
- always store 255 in alpha channel for opaque things as the alpha channel is no longer ignored by the framebuffer backend (software drawer)
...
(cherry picked from commit 25784c2e57
)
2018-06-03 20:13:12 +02:00
Magnus Norddahl
90e131b6fd
- always store 255 in alpha channel for opaque things as the alpha channel is no longer ignored by the framebuffer backend (softpoly drawer)
...
(cherry picked from commit 11bb626ab6
)
2018-06-03 20:11:22 +02:00
Christoph Oelckers
8f138a42e3
- fix memory arena allocation alignment for 32 bit systems.
...
(cherry picked from commit 23fce56b5e
)
2018-06-03 20:01:43 +02:00
Christoph Oelckers
f6f25354d7
- fixed: For melee attacks with a short attack range P_AimLineAttack must check for hits from above and below.
...
This is necessary to be in line with P_LineAttack which does check for those.
(cherry picked from commit a851a5d151
)
2018-06-03 20:00:20 +02:00
alexey.lysiuk
53f66a6c4c
- fixed mouse cursor positioning in menu for Cocoa backend
...
With video resolution scaling enabled engine coordinates of mouse cursor were wrong
(cherry picked from commit f8f1148c59
)
2018-06-03 19:59:28 +02:00
alexey.lysiuk
d645da3ccf
- fixed linking with sanitizer(s) enabled
...
no more unresolved references to various functions
(cherry picked from commit b5274534d7
)
2018-06-03 19:56:19 +02:00
Marisa Kirisame
1afcd9b7c7
Mirroring should be flipped on HUD models since the view to world space transform already inverts one axis
...
(cherry picked from commit f74e74ac4b
)
2018-06-03 19:51:45 +02:00
Marisa Kirisame
5a76623993
Swap front face culling for GL model drawer (CCW should be the default).
...
Added mirroring handling to software models.
(cherry picked from commit dea1d0259d
)
2018-06-03 19:49:48 +02:00
Magnus Norddahl
d086c3d4dc
- removed the 8x8 block drawing code from softpoly
...
(cherry picked from commit a186677092
)
2018-06-03 19:46:38 +02:00
Christoph Oelckers
ea752bde90
- fixed: The translucent border draw list must be rendered with depth writing active.
...
This gets exclusively used by portal borders which means that for walls the setting is irrelevant but for flats it is needed to cover the portal surface so that translucent parts of the outer scene do not bleed through.
(cherry picked from commit d0aacd3ba8
)
# Conflicts:
# src/gl/scene/gl_scene.cpp
2018-06-03 01:22:56 +02:00
Magnus Norddahl
06496c7df7
- fix negative rotation speed not working
...
(cherry picked from commit 0dbcdc8a9c
)
2018-06-02 21:35:00 +02:00
Christoph Oelckers
ff5c488a0f
- pass mirroring info to model drawers.
...
Actual evaluation only implemented in OpenGL. Not tested yet because the bug report had no testable example.
(cherry picked from commit 94d1a73ae8
)
2018-06-02 21:31:23 +02:00
Christoph Oelckers
b18d198cf6
- fixed: MF3_DONTSPLASH disabled all terrain effects, not just the splash.
...
Untested for now because the report came without any example to check it with.
(cherry picked from commit 0c5a47ac90
)
2018-06-02 21:30:46 +02:00
Marisa Kirisame
5eebbe0b1a
Transform UE1 vertex coords to GZDoom's when importing, rather than leaving it up to the end user.
...
(cherry picked from commit 58f4af6ded
)
2018-06-02 10:07:31 +02:00
alexey.lysiuk
f58dfe3605
- fixed compilation with Clang and GCC
...
src/gl/scene/gl_flats.cpp:215:3: error: cannot jump from this goto statement to its label
src/r_data/models/models.cpp💯 18: error: no member named 'floor' in namespace 'std'
(cherry picked from commit 81f042f08b
)
# Conflicts:
# src/gl/scene/gl_flats.cpp
2018-06-02 10:04:31 +02:00
Christoph Oelckers
6fe5af7c0c
- fixed: FxFloatCast must transfer the outer expression's value type to the inner expression if it performs a float->float cast.
...
This violated an important rule that a cast may not alter the expression's type and led to failed asserts elsewhere.
(cherry picked from commit 7d515e72c2
)
2018-06-02 10:03:43 +02:00
Magnus Norddahl
1e65eea77f
- fix rotationSpeed being ignored after the model interpolation fix
...
(cherry picked from commit 359b13b783
)
2018-06-01 22:05:13 +02:00
alexey.lysiuk
8d6c4321f2
- limited length of server CVAR name to 63 characters
...
Due to limitation of network protocol server CVARs with longer names cannot propogate changes of their values properly
https://forum.zdoom.org/viewtopic.php?t=60729
(cherry picked from commit bff2c8cf74
)
2018-05-31 11:00:42 +02:00
drfrag666
d6369978b9
- Merged "- fixed Windows XP compatibility for MSVC 2017 targets".
...
Workaround initially implemented for MSVC 2015 is enabled with all Windows XP compatible toolsets regardless of Visual Studio version
(patch by _mental_)
Still it's a VS bug.
2018-05-31 11:00:19 +02:00
Magnus Norddahl
60929f353f
- replace softpoly block drawers with span drawers and make them use blending rules directly from render styles
...
- add dynlights to softpoly pal mode
(cherry picked from commit 4e6226fc2d
)
2018-05-30 11:56:15 +02:00
Magnus Norddahl
1055e45566
- Modify TriBlendMode enum to match the render styles
...
(cherry picked from commit 190b673890
)
2018-05-30 11:55:53 +02:00
Christoph Oelckers
24d0aee2e7
- fixed: When deserializing the object list, the array must be nulled before using it so that a premature abort does not end up working on random data.
...
(cherry picked from commit ad343892f3
)
2018-05-29 23:16:17 +02:00
drfrag666
c656185069
- Extended workaround for the stat not working issue in v140_xp to v141_xp.
2018-05-29 09:51:12 +02:00
alexey.lysiuk
4a0ef2edf1
- restore startup game state on restart
...
At least values of custom server CVARs were not restored because of this
https://forum.zdoom.org/viewtopic.php?t=60711
(cherry picked from commit 36779cf88c
)
2018-05-27 18:43:00 +02:00
alexey.lysiuk
94b68e76f6
- garbage collect static event handlers on restart
...
Remaining object(s) led to a potential crash on the next garbage collection cycle
Assertion failure was triggered during restarting in Debug configuration
(cherry picked from commit e085a8d58a
)
2018-05-27 18:42:59 +02:00
Magnus Norddahl
9f698c4fda
- add SSE2 version of softpoly span drawer
...
(cherry picked from commit 9fb34fd8e6
)
2018-05-26 21:58:24 +02:00
Magnus Norddahl
09ef233c41
- implement render styles for the softpoly span drawers
...
(cherry picked from commit 7f908ce75d
)
2018-05-26 21:58:24 +02:00
alexey.lysiuk
a2f4579943
- fixed minor issues with new line specials
...
(cherry picked from commit 91f440378e
)
2018-05-26 09:55:37 +02:00
Cacodemon345
726f7e4b03
Add missing line specials.
...
(cherry picked from commit b02736c705
)
2018-05-26 09:55:36 +02:00
alexey.lysiuk
15b28aadd9
- fixed typo in error message
...
(cherry picked from commit 1634b78280
)
2018-05-25 13:05:07 +02:00
Raccoon
853b277781
Add SetAutomapFlags and SetAutomapStyle line specials
...
(cherry picked from commit 475d3f0829
)
2018-05-25 13:04:10 +02:00
Magnus Norddahl
f6e64f5018
- add #include support to TEXTURES lump
...
(cherry picked from commit cadc4f2a30
)
# Conflicts:
# src/textures/texturemanager.cpp
2018-05-25 12:59:28 +02:00
alexey.lysiuk
c637d32113
- fixed compilation warning with MSVC 2015
...
src\polyrenderer\scene/poly_portal.cpp(142): warning C4800: 'line_t *': forcing value to bool 'true' or 'false' (performance warning)
(cherry picked from commit 7576068202
)
2018-05-24 11:46:43 +02:00
Magnus Norddahl
77071dedcf
- add two-sided culling support in software and poly
...
(cherry picked from commit 8098657cf4
)
2018-05-24 10:30:12 +02:00
Magnus Norddahl
3b89db85f2
- forgot to remove the remarked comment
...
(cherry picked from commit 771931db9f
)
2018-05-24 10:28:58 +02:00
Magnus Norddahl
f05b937afa
- enable #include support in modeldef files
...
(cherry picked from commit fb9cf33af6
)
2018-05-24 10:28:57 +02:00
alexey.lysiuk
ee86e2e3be
- fixed compilation with GCC/Clang
...
https://forum.zdoom.org/viewtopic.php?f=2&t=60657
(cherry picked from commit 26ebb938c1
)
2018-05-24 10:25:43 +02:00
Magnus Norddahl
3f4e257d73
- move modeldef parsing to its own function (ParseModelDefLump)
...
- rename gl_InitModels to InitModels
- add commented out support for #include in modeldefs (blocked by gene tech having broken #include statements in its modeldef files)
(cherry picked from commit 91aec1689e
)
2018-05-24 10:25:42 +02:00
Magnus Norddahl
8de520e9e1
- avoid reusing the same mVBuf pointer for the different renderers as that causes too many problems when switching between them
...
- remove gl_ prefix for model functions that are no longer GL specific
(cherry picked from commit 31abe3df7e
)
# Conflicts:
# src/gl/models/gl_models.h
# src/gl/scene/gl_scene.cpp
# src/hwrenderer/scene/hw_sprites.cpp
# src/hwrenderer/scene/hw_weapon.cpp
# src/hwrenderer/textures/hw_precache.cpp
2018-05-24 10:25:05 +02:00
Christoph Oelckers
12a2dede7e
- added CVAR to disable WGL_EXT_swap_control_tear.
...
At least on faster NVidia hardware, setting this to false and gl_finishbeforeswap to true gives a better experience because it reduces screen tearing - but the same setting will reduce frame rate quite dramatically on Intel and can cause bad stalls on some older GPUs when rendering camera textures.
(cherry picked from commit cc65490062
)
2018-05-23 10:13:35 +02:00
Magnus Norddahl
d7f907f510
- fix model interpolation bug
...
(cherry picked from commit cc4a09a3d2
)
2018-05-21 20:11:29 +02:00
drfrag666
0552c8fbb3
- Revert "- fixed: Change compiled exe version strings to match git repo numbers."
...
gitinfo.h was still being included with MinGW and it was a waste of time on every commit anyway.
2018-05-21 10:28:23 +02:00
Christoph Oelckers
b0531c7293
- disable shader storage blocks if none get reported for vertex shaders.
...
(cherry picked from commit 3069b53804
)
2018-05-20 11:20:11 +02:00
alexey.lysiuk
13d7b49eeb
- added forced automap style to linedef, UDMF only
...
https://forum.zdoom.org/viewtopic.php?t=59808
(cherry picked from commit c6f7d92c76
)
2018-05-19 21:40:46 +02:00
RockstarRaccoon
84f1720ece
- added 'revealed on automap' linedef flag, UDMF only
...
https://forum.zdoom.org/viewtopic.php?t=59808
(cherry picked from commit 90cb0b3215
)
2018-05-19 21:40:45 +02:00
Marisa Kirisame
4831b9be65
Cleaned UE1 math by using FVector classes.
...
Reversed winding order on vertex buffer creation as UE1 uses CCW.
(cherry picked from commit 0c4a08460f
)
2018-05-19 21:38:45 +02:00
alexey.lysiuk
8bfdb2aa36
- fixed compilation warnings reported by GCC/Clang
...
src/r_data/models/models.cpp:418:33: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
src/r_data/models/models.cpp:427:38: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
src/r_data/models/models_ue1.cpp:49:37: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
(cherry picked from commit 9257c9cc0c
)
2018-05-19 21:37:10 +02:00
Rachael Alexanderson
3d86244b61
- define zdoom.rc as a proper Windows text file, stop Git from mismanaging it
...
# Conflicts:
# src/win32/zdoom.rc
2018-05-18 14:01:48 +02:00
Christoph Oelckers
4811962acb
- silence some warnings.
...
(cherry picked from commit 2962fe9f08
)
2018-05-18 13:46:12 +02:00
drfrag666
986bed0475
- Keep autosaves at the top of the savegame list.
2018-05-18 13:19:53 +02:00
Rachael Alexanderson
98dc10c127
- also remove unused forward declarations
...
(cherry picked from commit bcadd2bf04
)
2018-05-17 13:06:44 +02:00
Rachael Alexanderson
25b281659c
- cleaned up vid_scaleto____ code a bit, also set a sane lower limit for vid_scalefactor, removed some code redundancy
...
(cherry picked from commit 0f36b9d63f
)
2018-05-17 13:06:44 +02:00
Rachael Alexanderson
126dcb5a70
- added vid_scaletowidth and vid_scaletoheight to calculate vid_scalefactor to reach a certain value on screen dynamics
...
(cherry picked from commit 0fae13bab4
)
2018-05-17 13:06:43 +02:00
Christoph Oelckers
87121e2936
- fix warnings.
...
(cherry picked from commit fb876852bb
)
2018-05-17 13:01:32 +02:00
Marisa Kirisame
30193423a6
Fix for Unreal meshes that don't have sequential texture numbers
...
(cherry picked from commit 1bb00ed4f0
)
2018-05-17 13:01:31 +02:00
Marisa Kirisame
e2b3dc1c74
Remove unnecessary checks.
...
(cherry picked from commit 98f279b651
)
2018-05-17 13:01:30 +02:00
Marisa Kirisame
91acd10e75
Discarded "UMSH" packed format, now loads _d.3d + _a.3d pairs
...
(cherry picked from commit ffc12eec29
)
2018-05-17 13:01:29 +02:00
Marisa Kirisame
08d15514d2
Add support for packed Unreal Engine 1 vertex mesh format.
...
(concatenated "UMSH" signature + datafile + anivfile)
This is pretty much 100% functional by now.
Hasn't been tested on platforms other than Linux yet, though.
Code definitely deserves some cleaning.
(cherry picked from commit f285e550d6
)
2018-05-17 13:01:28 +02:00
drfrag666
0e25e40deb
- Addressed crash on exit with MinGW. This is a hack and i've reported it as a bug in the MinGW C runtime.
2018-05-17 12:06:44 +02:00
alexey.lysiuk
f8dc707edf
- fixed seeking end of file in memory reader
...
https://forum.zdoom.org/viewtopic.php?t=60611
(cherry picked from commit 42668c6a5a
)
2018-05-17 11:57:05 +02:00
alexey.lysiuk
86eb6b8f85
- trigger WorldThingDamaged event before WorldThingDied
...
https://forum.zdoom.org/viewtopic.php?t=60597
(cherry picked from commit fc91827900
)
2018-05-17 11:57:04 +02:00
Jonathan Russell
c8a47653bf
- added LevelLocals vec2/3Offset(Z) functions for portal-aware offsetting without needing actors
...
(cherry picked from commit e9050a38b3
)
2018-05-17 11:57:03 +02:00
alexey.lysiuk
a66686225d
- fixed potential crash on startup, Windows only
...
At least one version of Windows SDK (10.0.17134.0) has broken _pgmptr/_get_pgmptr()
It points to an empty string for multi-byte character set applications
GetModuleFileName() is now used instead regardless of compiler/toolchain
Added extra guard against unexpected program paths to avoid crashes
https://forum.zdoom.org/viewtopic.php?t=60598
(cherry picked from commit e1e441091d
)
2018-05-16 11:58:38 +02:00
drfrag666
cc397295b6
- Fixed bad merge of "- some Transfer_Heights related optimizations".
2018-05-14 23:44:33 +02:00
alexey.lysiuk
4c7261c3b6
- fixed wrong line number in error message
...
Parser of MAPINFO editor number definitions didn't assign line numbers, so 'Unknown actor class' fatal error displayed some garbage
(cherry picked from commit 751e318c4e
)
2018-05-14 18:06:59 +02:00
drfrag666
429bd5d843
- Made VMFrameStack GlobalVMStack a non thread_local variable for MinGW since that helps to prevent crashes on exit.
2018-05-14 12:53:57 +02:00
alexey.lysiuk
c06501d7ca
- use map axes in bad sound position/velocity warning
...
https://forum.zdoom.org/viewtopic.php?t=60578
(cherry picked from commit 8a6ae503be
)
2018-05-13 19:14:01 +02:00
drfrag666
9416219ea5
- Fixed bad merge of "- Clean up PolyTriangleDrawer API"
2018-05-13 19:11:29 +02:00
drfrag666
dc8d32cb69
- Changed savegame list order, now they are sorted by reverse slot number instead of alphabetically.
2018-05-13 11:53:47 +02:00
drfrag666
108f0d3fd7
- Give an error message instead of just crashing on non SSE2 cpus.
2018-05-12 14:48:52 +02:00
drfrag
30a606ed6b
- Fixed crash with textures larger than those supported by the hardware in the D3D backend.
...
# Conflicts:
# src/win32/fb_d3d9.cpp
2018-05-12 14:28:58 +02:00
alexey.lysiuk
a545e7de35
- added end line to various messages
...
so they don't screw up further output anymore
(cherry picked from commit f17f8c9359
)
# Conflicts:
# src/gl/compatibility/gl_swshader20.cpp
2018-05-12 11:49:10 +02:00
Magnus Norddahl
5ade87d974
- move 3d floor code into functions
...
(cherry picked from commit 643828f5fa
)
2018-05-12 11:41:00 +02:00