Commit graph

14330 commits

Author SHA1 Message Date
Christoph Oelckers
5ded0aadf0 - fixed GetLineX/GetLineY ACS implementation
# Conflicts:
#	src/p_acs.cpp
2019-10-22 10:59:16 +02:00
Christoph Oelckers
f15a52b1e7 - when adding some minmum lateral movement to trigger collision detection, do not just set Vel.X but actually use a vector pointing in the proper facing direction of the actor. 2019-10-22 10:59:13 +02:00
Christoph Oelckers
1170e07124 - fixed: MF8_RECREATELIGHTS must be processed in pause mode as well.
When issuing a netevent from the console the game is in pause mode, and if this removes a light it would have crashed the game.
2019-10-22 10:59:09 +02:00
alexey.lysiuk
9aff83cfdc - implicitly clear local dynamic arrays
https://forum.zdoom.org/viewtopic.php?t=62710
2019-10-20 12:30:00 +02:00
drfrag
b52ac9b556 Revert "AsmJit update"
This reverts commit 275ecb2623.

This had to be reverted because it breaks exception handling which is a critical problem.
With the updated code any exception thrown inside code that had a JITed call stack would crash.
2019-10-20 11:34:23 +02:00
alexey.lysiuk
a6eb3f3016 - added access check for state functions
Private functions cannot be called from derived classes anymore

https://forum.zdoom.org/viewtopic.php?t=66158
2019-10-19 16:47:59 +02:00
alexey.lysiuk
7132b1a67c - fixed SPC music looping after update to GME 0.6.2
Why was the default player setup changed at all?

https://forum.zdoom.org/viewtopic.php?t=65863
2019-10-18 11:19:27 +02:00
Christoph Oelckers
e2387d0741 - fixed: The dynamic lights must be initialized before the first frame is ticked.
Otherwise they only show up after the first frame.

# Conflicts:
#	src/p_setup.cpp
2019-10-17 11:10:19 +02:00
Major Cooke
62b3ed7d75 Fixed CheckBossDeath not checking for actor replacements.
- A_BossDeath relies upon this function in particular.
- This completes CheckReplacee's purpose, allowing for varied actors to count as one particular actor, such as a Fatso for map07 and avoid lowering the walls until they are all dead.
2019-10-15 22:57:55 +02:00
drfrag
80442db4fe - Yet even more missing null pointer checks, PB still crashed. 2019-10-15 14:45:52 +02:00
alexey.lysiuk
8c110541b1 - fixed crash with DMSS_INFLICTORDMGTYPE flag and no inflictor
https://forum.zdoom.org/viewtopic.php?t=66110
2019-10-14 12:18:11 +02:00
alexey.lysiuk
d5451fd281 - added dynamic loading of FluidSynth 2.x
# Conflicts:
#	src/sound/mididevices/music_fluidsynth_mididevice.cpp
2019-10-14 12:01:03 +02:00
drfrag
af566f2d52 - More missing null pointer checks. 2019-10-14 11:49:06 +02:00
drfrag
0a9b20062a - Fixed compilation on non Windows platforms. 2019-10-13 12:54:16 +02:00
alexey.lysiuk
5691d1d3b9 - made GL nodes loader more resilient to broken data
https://forum.zdoom.org/viewtopic.php?t=66086

# Conflicts:
#	src/p_glnodes.cpp
2019-10-13 11:44:43 +02:00
drfrag
7ae0df931e - Added the 'quickunsetslot' command to unset the quicksave slot. 2019-10-09 16:01:58 +02:00
drfrag
cc22109e95 - Fixed capped tall skies not working (Heretic and Hexen). 2019-10-09 13:10:52 +02:00
drfrag
302b9a768a - Fixed sky stretching for the new freelook limit. 2019-10-09 13:10:35 +02:00
drfrag
d48a886f8b - Added missing null pointer checks to fix the PB crash. 2019-10-07 20:36:08 +02:00
drfrag
d200c171ca Revert "- Fixed bad NULL return value in AActor::StaticSpawn."
This reverts commit d5352fa550.

In master AActor::StaticSpawn now can't return NULL but there are still some null pointer checks.
2019-10-07 20:04:00 +02:00
drfrag
d5352fa550 - Fixed bad NULL return value in AActor::StaticSpawn.
Fixes crash with PB.
2019-10-07 11:50:42 +02:00
drfrag
4a8d216f94 - This is version 3.83. 2019-10-06 21:11:48 +02:00
drfrag
8227e795c5 - Fixed crash with quicksave rotation enabled (read out of array bounds). 2019-10-04 17:07:39 +02:00
Alexander
a44f80c19d add m_quickexit option for quick exit in game menu
Default: off (false)

When this option is enabled (true), then exiting the game from
main menu and by menu_quit command doesn't require confirmation
and doesn't play sound.

# Conflicts:
#	wadsrc/static/menudef.txt
2019-09-30 21:38:51 +02:00
Rachael Alexanderson
6537eca669 - implement the following functions under LevelCompatibility:
GetNumMapThings, GetMapThingPos, GetMapThingAngle, SetMapThingAngle

# Conflicts:
#	src/maploader/compatibility.cpp
2019-09-28 15:01:23 +02:00
Rachael Alexanderson
1a85206983 - add 'flipline' function to levelcompatibility
# Conflicts:
#	src/maploader/compatibility.cpp
2019-09-28 14:56:12 +02:00
Christoph Oelckers
fd072db274 - adapted the PSX XA decoder from EDuke32 as a music format in GZDoom.
Libsndfile cannot decode this format but tries to play these files as regular WAVs and turns them into noise (Both are in a RIFF container.)

# Conflicts:
#	src/sound/musicformats/music_xa.cpp
2019-09-28 14:20:29 +02:00
Christoph Oelckers
09d26a9e64 - moved a few CCMDs from i_sound.cpp to s_sound.cpp. 2019-09-28 14:20:26 +02:00
Christoph Oelckers
bd3e8c0a99 - split off all music code from s_sound.cpp
# Conflicts:
#	src/CMakeLists.txt
#	src/fragglescript/t_func.cpp
#	src/fragglescript/t_load.cpp
#	src/g_level.cpp
#	src/g_levellocals.h
#	src/g_shared/a_dynlight.cpp
#	src/intermission/intermission.cpp
#	src/p_saveg.cpp
#	src/posix/cocoa/i_main.mm
#	src/s_sound.cpp
#	src/win32/st_start.cpp

# Conflicts:
#	src/win32/st_start.cpp
2019-09-28 14:20:21 +02:00
drfrag
c12d5795d2 - Block the scale factor for low detail mode. 2019-09-25 12:33:24 +02:00
alexey.lysiuk
6a3b50c561 - fixed potential resetting of bindings
Quitting GZDoom during initialization could lead to unbound game controls

https://forum.zdoom.org/viewtopic.php?t=65945
2019-09-25 11:58:03 +02:00
drfrag
7f3616e8d8 Added low detail mode (160x200) to the preset scale modes.
UI looks horizontally stretched tough.
2019-09-25 11:46:55 +02:00
alexey.lysiuk
2e87aef815 - fixed C++ compilation flags applied to C files
This had an effect on 32-bit targets without SSE support
2019-09-24 13:51:06 +02:00
alexey.lysiuk
1871350c59 - fixed crash when setting sound pitch on non-existing channel
This applies to a lack of free channels, -nosound command line switch, missing OpenAL library, sound initialization failures, ...

https://forum.zdoom.org/viewtopic.php?t=65926
2019-09-23 15:10:58 +02:00
drfrag
9a3d87cafb - Added PrtSc key support for Linux and MacOS, at least in theory. 2019-09-22 22:55:44 +02:00
drfrag
a1e19657f9 - Added support for PrtSc and cosmetic changes. 2019-09-22 19:34:56 +02:00
Alexander
6535f837b7 implement taking screen shots in menus
# Conflicts:
#	wadsrc/static/zscript/ui/menu/menu.zs
2019-09-22 12:45:32 +02:00
drfrag
55af0b11c6 - Fixed game finales not being shown after the intermission. 2019-09-21 14:27:13 +02:00
Christoph Oelckers
6d69785838 - fixed uninitialized variable.
# Conflicts:
#	src/gamedata/fonts/font.cpp
#	src/v_text.cpp
2019-09-21 12:33:00 +02:00
drfrag
734225e67f - Fixed compilation. 2019-09-20 22:20:08 +02:00
Christoph Oelckers
a82ee857e5 - fixed a few warnings.
# Conflicts:
#	src/scripting/vmthunks.cpp
2019-09-20 22:20:05 +02:00
alexey.lysiuk
9b84a97a1d - fixed compilation with MSVC
src\gamedata\resourcefiles\resourcefile.h(77): error C4716:  'FResourceLump::FillCache': must return a value
2019-09-20 22:18:36 +02:00
Christoph Oelckers
3aa615e960 - extended lump injection to allow injecting data into a PWAD's directory, not just the IWAD.
# Conflicts:
#	src/w_wad.cpp
#	src/w_wad.h
2019-09-20 22:18:33 +02:00
Christoph Oelckers
8980ff688c - generate a hash identifier for each loaded resource file.
This is not useful by itself but can be used for adding new features later, e.g. mod-wide compatibility settings or file specific lump replacement or injection.

# Conflicts:
#	src/resourcefiles/resourcefile.cpp

# Conflicts:
#	src/resourcefiles/resourcefile.cpp
2019-09-20 22:18:29 +02:00
drfrag
b5bb5fa0bd - Fixed another crash in the software renderer now with transparent sprites (Stronghold STR12), it's a bit hacky and now you get a white flash instead. 2019-09-17 18:48:31 +02:00
Christoph Oelckers
f25dadbaf2 - fixed: sector lights could access the sector before it was set. 2019-09-16 18:42:07 +02:00
Marisa Kirisame
ca35bdc33c Fix for LineTrace not setting its starting sector based on its offset. 2019-09-16 01:28:11 +02:00
drfrag
400444f7df - Fixed savegame slot selection for real: wrong check and ancient bug. 2019-09-16 01:01:40 +02:00
drfrag
974d11a161 - Fixed savegame slot selection bug. 2019-09-15 15:56:28 +02:00
drfrag
ca537d716b - Disable models by default only for the classic software renderer with the r_models_carmack CVAR. Performance is not affected in SoftPoly. 2019-09-15 12:54:59 +02:00
drfrag
2f425dbc72 - Disable models by default for the software renderer as they make it much slower. 2019-09-14 18:44:39 +02:00
drfrag
9ee78de8fe - Fixed crash drawing fog boundaries in the software renderer hopefully this time for real. Based on Rachael's "do a texture check when drawing fog borders" commit. Now it crashes somewhere else tough. 2019-09-13 18:47:35 +02:00
Conn O'Griofa
457dc8b5a9 Use signal handler to invoke call_terms() before exit when possible
It's not advisable to rely on atexit() to invoke SDL_Quit(), as it
causes a segmentation fault on exit for the SDL2 KMSDRM driver due to
a conflict with the Mesa drivers* which upstream Mesa may not elect to fix.

The issue can be resolved by replacing the atexit() call with a signal
handler that will interrupt the D_DoomMain() and D_DoomLoop()
functions, then invoke call_terms() within the main thread before exiting.

We can leave the atexit() hook intact to handle edge cases such as abnormal
process exit, or exit methods which do not produce signals such as Alt+F4 or
window close via GUI (neither of which are possible in a KMS context, so
should not affect KMSDRM sessions).

Fixes a segmentation fault/uninterruptible application hang on exit
for all KMS targets, including Raspberry Pi 4B, 3B and Intel i965.

* See: https://bugzilla.libsdl.org/show_bug.cgi?id=4530 and
https://lists.freedesktop.org/archives/mesa-users/2019-March/001519.html
2019-09-12 23:34:17 +02:00
drfrag
b2aa973396 - Fixed warnings. 2019-09-11 14:34:09 +02:00
Marisa Kirisame
aa06b2f62c Squashed commit of the following:
commit 6ecd831eb45a8258995c02664450c3ca8cfe5b48
Merge: a4fb1f61c afbd7f7a2
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sun Jul 28 22:02:19 2019 +0200

    Merge branch 'master' of github.com:coelckers/gzdoom into f3dfloor_export

commit a4fb1f61c0532d3a6051d4c1fca4ac72ec33e060
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Fri Jul 12 15:43:25 2019 +0200

    Renamed EFFloorType enum in ZScript to the more descriptive EF3DFloorFlags

commit 9ad1c3b5625d53c06229be2a94d44fa0f36f41fd
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sun Jul 7 20:25:31 2019 +0200

    Add bounds checks to Get3DFloor/GetAttached

commit dd2a7956a887b92ed24ce5e79f10b1a445664d6c
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sun Jul 7 17:13:44 2019 +0200

    Correct handling of 3d floor plane texture getting.

commit 9b748287892c8fdee9ac67019bf1f66bc4b69eab
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sun Jul 7 16:14:45 2019 +0200

    Implemented requested changes to F3DFloor exports.
    * Getters for ffloors/attached arrays.
    * Getter for 3D floor top/bottom texture.

commit 6a1482bb0637a70890629e4c13e8759c7a3673f3
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sat Jul 6 13:42:52 2019 +0200

    Renamed exported extsector pointer in Sector struct to something more descriptive.

commit 7c6783d43b898cbd7a01fb2191fd401ed8e8c300
Merge: ff64e04b2 8d36f0a0c
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Mon Apr 29 12:40:44 2019 +0200

    Merge branch 'master' into f3dfloor_export

commit ff64e04b251f23325d2f72bc25c59f34b4cab6fa
Merge: a90947392 5b6bae409
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Sun Apr 21 16:56:18 2019 +0200

    Merge branch 'master' into f3dfloor_export

commit a90947392a27eb1c2dac7005614592ec2f410274
Author: Marisa Kirisame <marisa@sayachan.org>
Date:   Mon Feb 4 17:47:25 2019 +0100

    Export F3DFloor structure and related data.
    Small changes to Trace code to better use this struct.
2019-09-11 14:18:28 +02:00
drfrag
4aa8243adc - Allow disabling mirrors for the GL renderer as some maps abuse them and portals are much slower in the old renderer. Also reduce the number of default recursions since in software mirrors are less demanding. 2019-09-10 14:52:31 +02:00
Christoph Oelckers
d1859d363a - give P_ExplodeMissile a damage type when being called from P_DamageMobj 2019-09-09 16:49:22 +02:00
Christoph Oelckers
5999d7508f - rename sprite names with '^' in the hires namespace. 2019-09-09 14:43:33 +02:00
drfrag
ccadafb5df - Disabled enhanced nightvision by default, some mods use a different effect. 2019-09-08 21:43:10 +02:00
drfrag
38d6008149 - Missed this. 2019-09-08 10:06:31 +02:00
Christoph Oelckers
f95f0257b0 - reinstated the old scriptwait implementation as a compatibility option.
Daedalus's MAP19 needs this.
2019-09-07 12:44:43 +02:00
drfrag
e94d18ab02 - Change how render cull sliders work: only allow reasonable values. 2019-09-06 20:58:59 +02:00
drfrag
6879817cd8 - Enabled gl_sprite_distance_cull and added slider to menu. 2019-09-04 22:31:56 +02:00
drfrag
ba835a14a4 - Added GL version of sprite distance culling. 2019-09-04 22:14:44 +02:00
drfrag
d47af90a56 - Enabled gl_line_distance_cull and added slider to menu. 2019-09-04 17:13:11 +02:00
drfrag
2b27cb0bba - Fill the gaps with the sky or ceiling texture. 2019-09-04 16:39:51 +02:00
Rachael Alexanderson
47c51f437e - make GL version of line distance culling use a separate CVAR, which, for now, is turned off. 2019-09-03 13:47:42 +02:00
Rachael Alexanderson
373870787f - activate r_line_distance_cull in the hardware renderer
# Conflicts:
#	src/gl/scene/gl_bsp.cpp
2019-09-03 13:19:01 +02:00
Christoph Oelckers
358718de05 - removed the playernum parameter from CheckLocalView
This was always used with 'consoleplayer' which really is the only thing making sense here. But this is a part of the global state which should be avoided in play code.

In particular, this makes no real sense in case of secondary maps where it should always return false.

# Conflicts:
#	src/fragglescript/t_func.cpp
#	src/g_inventory/a_keys.cpp
#	src/p_acs.cpp
#	src/p_mobj.cpp
#	src/p_user.cpp
#	src/r_data/r_interpolate.cpp
#	src/r_data/r_interpolate.h
2019-09-02 21:17:19 +02:00
alexey.lysiuk
79eadafa6b - fixed initial setup for dynamic light actors
They are attached and actived explicitly during usual actor initialization sequence
Postponed processing applicable to so called user dynamic lights must be skipped for them
RECREATELIGHTS flag handling for dynamic light actors had the opposite effect of deactivating them

https://forum.zdoom.org/viewtopic.php?t=65683
2019-09-02 13:58:49 +02:00
Jan Engelhardt
02ca2b7c4a Make the build work with fluidsynth 2.x. 2019-09-01 00:09:15 +02:00
alexey.lysiuk
f212220dcd - do thinker profiling of internal dynlights only when they are present
There is no point to output zero calls and/or handle such case in profiling stats calculation

# Conflicts:
#	src/dthinker.cpp
2019-09-01 00:05:31 +02:00
drfrag
99c7be3f2e - Fixed compilation for non windows targets. 2019-08-31 19:23:06 +02:00
alexey.lysiuk
338e599de8 - fixed: saving game to read-only file was erroneously reported as succeeded 2019-08-29 20:21:26 +02:00
hdr88
f27afdb0d2 Add current, max and average velocity as stat (#912)
* Add current, max and average velocity as stat

# Conflicts:
#	src/p_setup.cpp
#	src/p_tick.cpp

# Conflicts:
#	src/p_setup.cpp
#	src/statistics.cpp
2019-08-28 21:51:55 +02:00
alexey.lysiuk
a2d52f4958 - added ability to specify deprecation messages in ZScript
It's an optional extension of deprecated keyword:
    deprecated("2.4", "use ModernFunction instead") int OldFunction();
    deprecated("3.5", "use ModernVariable instead") int OldVariable;

Usage of such members will produce the following report:
    Script warning, ":zscript.txt" line 123:
    Accessing deprecated function OldFunction - deprecated since 2.4.0, use ModernFunction instead
    Script warning, ":zscript.txt" line 456:
    Accessing deprecated member variable OldVariable - deprecated since 3.5.0, use ModernVariable instead

# Conflicts:
#	src/scripting/zscript/zcc_compile.cpp
2019-08-28 21:49:20 +02:00
Vitaly Novichkov
ff78550895 GME update with bug-fixes
- True fix for infinite loops [please verify!]
- True fix for KSS silence
- Fix for HES distorted and unstable/random tempo
2019-08-26 00:51:45 +02:00
Christoph Oelckers
4cae269d83 - changed license of portal.cpp to GPLv3
- list Eternity Engine as a source of some code in the main README.
2019-08-26 00:38:13 +02:00
Marisa Kirisame
7792a435d7 The wrong pointer was passed to ProcessMidPrint, which resulted in a crash. 2019-08-21 15:03:04 +02:00
drfrag
d299576eb0 - Fixed vanilla light mode being available for GL2 when it's not supported without shaders. 2019-08-21 14:17:59 +02:00
drfrag
45abf1a5c9 - Added support for up to 4 DirectInput joysticks at the same time for fake splitscreen. But with more than 32 buttons per device they will overlap as before and you'll get wrong labels. 2019-08-21 14:06:29 +02:00
Petr Kobalicek
275ecb2623 AsmJit update
# Conflicts:
#	.gitignore
2019-08-20 13:08:18 +02:00
Marisa Kirisame
b08ba350d3 Allow custom status bars to override notifications, centered prints and chat prompt.
# Conflicts:
#	src/c_console.cpp
#	src/ct_chat.cpp
2019-08-20 13:06:52 +02:00
drfrag
f63f833ed1 - Consolidated C_MidPrint and C_MidPrintBold. 2019-08-20 13:06:48 +02:00
drfrag
488627d3b2 Revert "- Changed default GL sprite billboard mode to X/Y axis."
This reverts commit 5b76d7563b.
2019-08-20 10:17:25 +02:00
Christoph Oelckers
e7d5b85234 - changed colors for crosshair health display to keep this in line with other health indicators on the HUD.
Use green for 100% health, not 200% and move toward blue for higher health.
2019-08-19 00:25:05 +02:00
Hugo Locurcio
1c8c8224be Improve crosshair health color to be more informative
With `crosshairhealth 2`, the crosshair will now
go from white to yellow, then yellow to red as the player's health
decreases. As the player's health increases up to 200, the crosshair
will also go from white to green to indicate overheal.
This is similar to the implementation in games like Xonotic.

The old behavior (`crosshairhealth 1`) is still the default.
2019-08-19 00:25:03 +02:00
Christoph Oelckers
0b1b78c725 - fixed the PR.
# Conflicts:
#	src/g_game.cpp
2019-08-19 00:25:00 +02:00
cuttlefish
a516b2c872 - Converts keyboard turnspeeds into global CVars
# Conflicts:
#	src/g_cvars.cpp
2019-08-19 00:24:57 +02:00
Christoph Oelckers
20e574058e - removed the internal WildMidi player object cleanup code.
This was solely meant for the original WildMidi player but got seriously in the way of how this code gets used by GZDoom. In GZDoom the player object is owned by the MIDI devive which should be the only instance which is allowed to destroy it.
2019-08-19 00:24:54 +02:00
Christoph Oelckers
163d26ff2b - fixed bad default alpha for 3D floors.
This is a byte value, therefore the default must be 255, not 65536.
2019-08-19 00:24:51 +02:00
Christoph Oelckers
ac484634b3 - fixed attached dynamic light setup.
This was only run on a state change and missed every external light change.
Any place which wants to flag a light change now only will set a flag and at the end of the thinker loop all flagged actors will be processed.
For performance reasons this was merged with the P_RunEffects iterator loop.

# Conflicts:
#	src/p_effect.cpp
#	src/p_effect.h
#	src/p_tick.cpp

# Conflicts:
#	src/p_mobj.cpp
2019-08-18 21:33:42 +02:00
drfrag
6b20de2b63 - Block scaling for the classic software renderer, it didn't work and caused some serious glitches. 2019-08-18 13:07:24 +02:00
alexey.lysiuk
7dd227bde0 - added missing space character to script parser's message 2019-08-17 13:29:42 +02:00
alexey.lysiuk
f2e034b969 - added check for multiple parsing of the same MAPINFO
Warning message is issued when such case is detected

# Conflicts:
#	src/g_mapinfo.cpp
2019-08-17 13:29:40 +02:00
alexey.lysiuk
3eb96eeeff - remove '... is already the default skill' error 2019-08-17 13:29:37 +02:00
drfrag
9639956fa4 - Now the quicksave slot must be selected explicitly like in original Doom. 2019-08-16 17:28:34 +02:00
alexey.lysiuk
7b8754c740 - added ability to enter main menu from credits screen via controller
There was only one way to enter main menu (by pressing Escape button) from the last intermission screen after episode's end
Controller's buttons that are usually assigned to this action, Start and Back by default, now open main menu as well

https://forum.zdoom.org/viewtopic.php?t=65632
2019-08-16 12:25:40 +02:00
Rachael Alexanderson
35d0bcb1d5 - fix typo 2019-08-16 12:25:36 +02:00
alexey.lysiuk
12dee6ca91 - fixed doubling of deprecation warnings for ZScript code
https://forum.zdoom.org/viewtopic.php?t=65617
2019-08-15 21:12:10 +02:00
drfrag
54d0ed23e9 - Fixed compilation. 2019-08-15 12:48:11 +02:00
alexey.lysiuk
728390ce48 - exposed xBRZ scaler options as CVARs
Added 5 xbrz_... CVARs to control various settings of upscaling process

Added xbrz_colorformat CVAR for buffered (zero) and unbuffered (any other value) color format
The first one requires a restart because settings are applied once to a precalculated buffer
The second one has reduced performance with ability to apply settings on-the-fly
2019-08-15 12:43:49 +02:00
alexey.lysiuk
e93d8395bc - updated xBRZ scaler to version 1.7
https://sourceforge.net/projects/xbrz/
https://sourceforge.net/projects/xbrz/files/xBRZ/xBRZ_1.7.zip

https://forum.zdoom.org/viewtopic.php?t=65596
2019-08-15 12:43:45 +02:00
alexey.lysiuk
6b70620bb9 - removed type punning from xBRZ scaler integration
it was a hack that wouldn't work with xBRZ 1.7
2019-08-15 12:43:41 +02:00
drfrag
67fb719a7c Revert "- Now the quicksave slot must be selected explicitly like in original Doom."
This reverts commit 9f0d5ac113.

Else you'd need to select it twice.
2019-08-14 14:17:39 +02:00
drfrag
b3c4e24b58 - Fall back to D3D for software on systems without GL2 support. 2019-08-13 22:04:05 +02:00
drfrag
9f0d5ac113 - Now the quicksave slot must be selected explicitly like in original Doom. 2019-08-13 21:15:09 +02:00
drfrag
1f7c241eb8 - Changed how the old quicksave works. Now you select the slot using quicksave like in original Doom. 2019-08-13 20:32:41 +02:00
Christoph Oelckers
13ee3e3484 - added checks for the special hacky quicksave marker. 2019-08-11 18:51:35 +02:00
Christoph Oelckers
d13499d2b7 - fixed the extremely long standing bug that Lost Souls didn't reacquire their target when slamming into something.
This was one of that annoying old design mistakes where Doom and Heretic features were poorly merged together. The Heretic Gargoyle uses very similar coding but performs a subtly different action when actually hitting another actor. This different action was made the default, even for the Lost Soul.
It has now been changed that both monsters use their original action, being distinguished by an actor flag. For compatibility with custom definitions Heretic's behavior, which has been the default in ZDoom will be the preferred one. The one of the Lost Soul can be reactivated by a flag.
2019-08-11 14:28:51 +02:00
alexey.lysiuk
e4ef998dc2 - exposed Append() method to ZScript dynamic array
https://forum.zdoom.org/viewtopic.php?t=65570
2019-08-11 00:09:51 +02:00
Christoph Oelckers
1161a17f00 - do not blur the background for portrait-less conversations.
- Fixed the mHasBackdrop flag. (drfrag)

# Conflicts:
#	wadsrc/static/zscript/ui/menu/conversationmenu.zs

# Conflicts:
#	src/menu/menu.cpp
2019-08-10 12:47:41 +02:00
Christoph Oelckers
d6e7e68bfa - fixed: The frozen state was not reset when the global level variable was reset.
# Conflicts:
#	src/g_level.cpp
2019-08-09 13:16:27 +02:00
drfrag
2c014e63ac - Unicode fix.
(patch by Graf)
2019-08-09 13:16:24 +02:00
Christoph Oelckers
d9f3fdd293 - fixed handling of the "ouch" face.
This depended on order of execution, taking the health values to compare from variables which were not synchronized properly.
Now both the last and current health being used here are being retrieved in the same place so that further changes cannot break this again.

But here it worked. (drfrag)
2019-08-09 13:16:22 +02:00
Christoph Oelckers
61a849b439 - fixed an inconsistency with missiles bouncing off actors.
They exploded when hitting a side but not when hitting top or bottom. Changed so that they always explode now.
2019-08-09 13:16:19 +02:00
Christoph Oelckers
15cf157877 - removed the ActiveSequences counter.
It was only used to avoid traversing the list if all sequences were paused which is an exceptional situation.
On the other hand, the way it counted was not correct so rather than fixing it it seemed more appropriate to remove it entirely.

# Conflicts:
#	src/g_levellocals.h
#	src/s_sndseq.cpp
2019-08-09 13:16:17 +02:00
Christoph Oelckers
9a4959c82e - fixed incorrect write barrier in sound sequence code.
# Conflicts:
#	src/s_sndseq.cpp
2019-08-09 13:16:14 +02:00
Christoph Oelckers
f6234d08fa - optionally disallow showing the autor's name
# Conflicts:
#	src/g_level.cpp
#	src/gamedata/g_mapinfo.h
#	wadsrc/static/zscript/ui/statscreen/statscreen.zs
2019-08-07 13:42:05 +02:00
Christoph Oelckers
78fa0a6f95 - added option to print a map author's name on the summary screen
For now only with font-printed map names. Allowing this with titlepatches will require more work and an option to disable.

# Conflicts:
#	src/g_level.cpp
#	src/gamedata/g_mapinfo.h
#	src/gi.cpp
#	wadsrc/static/zscript/ui/statscreen/statscreen.zs
2019-08-06 18:46:23 +02:00
drfrag
149a294a49 - Fixed compilation. 2019-08-06 17:27:12 +02:00
Christoph Oelckers
4a563f449d - fixed: The wbstartstruct that gets passed to the level summary screen needs to be static
This variable is needed long after the function which sets it up will be exited. So this either needs to be dynamically allocated or static, and in this case using a static variable is simpler.  However, unlike before, it is only being accessed in the one function that needs to initialize it and pass to the summary screen and nowhere else.

# Conflicts:
#	src/g_level.cpp
2019-08-06 17:13:30 +02:00
Christoph Oelckers
2b51e8d5dd - allow the language table to supersede the title patches, if appropriate
For the Doom IWADs the provided font looks almost identical to the characters used on the title patches. So, for any level name that got replaced in some language, it will now check if the retrieved name comes from the default table, and if not, ignore the title patch and print the name with the specified font.

This also required removing the 'en' label from the default table,  because with this present, the text would always be picked from 'en' instead of 'default'. Since 'en' and 'default' had the same contents, in any English locale the 'default' table was never hit, so this won't make any difference for the texts being chosen.

Last but not least, wminfo has been made a local variable in G_DoCompleted. There were two places where this was accessed from outside the summary screen or its setup code, and both were incorrect.

# Conflicts:
#	src/g_hub.cpp
#	src/g_level.cpp
#	src/gamedata/g_mapinfo.h
#	src/gi.h
#	src/p_setup.cpp
#	src/stringtable.cpp
#	src/stringtable.h
#	wadsrc/static/zscript/ui/statscreen/statscreen.zs
#	wadsrc_extra/static/iwadinfo.txt

# Conflicts:
#	src/gi.h
#	wadsrc_extra/static/iwadinfo.txt
2019-08-06 17:13:21 +02:00
drfrag
2172b1bd63 - Changed GAMEINFO flags to an enum. 2019-08-06 17:08:33 +02:00
Christoph Oelckers
070dde2e2b - made adjustments to the text placement on the summary screen.
With extended fonts much of the old code did not work anymore, this needed more precise checks for the sources of the printed texts.

Without the adjustments, just added GetMaxAscender for compatibility. (drfrag)

# Conflicts:
#	src/gamedata/fonts/font.cpp
#	src/scripting/vmthunks.cpp
#	wadsrc/static/zscript/ui/statscreen/statscreen.zs
2019-08-05 13:28:43 +02:00
drfrag
dadbc828dc - Take quicksave slots into account for the new savegame list order. 2019-07-29 20:12:04 +02:00
Kevin Hutchins
ac238545fd Adds option to use a rotation of quicksaves instead of having one quicksave slot that needs to be manually created. 2019-07-29 18:54:43 +02:00
Christoph Oelckers
6a647afff1 - changed subtitle duration to last at least 7 seconds, even for shorter sounds so that there is sufficient time to read them. 2019-07-26 21:59:46 +02:00
alexey.lysiuk
c7516a0fc5 - added ability to specify display duration of subtitles
Duration of sound playback and subtitles display will be synchronized if sound id is specified
For existing Strife messages this works out of the box

https://forum.zdoom.org/viewtopic.php?t=65379
2019-07-26 21:59:43 +02:00
drfrag
1f54466e33 - Fixed fuzz style fallback not working in GL legacy mode.
- Changed default since software style was too expensive on old cards.
2019-07-26 14:08:18 +02:00
Christoph Oelckers
c31b4f0b9b - fixed line breaking on non-spaces for multi-byte UTF-8 characters.
This needs to backtrack the entire code point, not just one byte.

# Conflicts:
#	src/gamedata/fonts/v_text.cpp
2019-07-25 00:06:14 +02:00
Major Cooke
7f5a2d3a11 Added A_SoundPitch and an optional pitch parameter to A_PlaySound and S_Sound.
- Note: Because sound channels are not in zscript, there's no way to modify a sound made by S_Sound.

# Conflicts:
#	src/s_sound.cpp
#	wadsrc/static/zscript/base.zs
2019-07-25 00:06:12 +02:00
alexey.lysiuk
4f56ab45ad - fixed crash on player unmorph after falling death
Rearranged conditions to avoid accessing player from obsolete morphed pawn
Unmorphing upon death resets player in morphed actor, so player alive state should be tested first
Removed duplicate health check as well

https://forum.zdoom.org/viewtopic.php?t=65429
2019-07-25 00:06:08 +02:00
drfrag
77c5ec0e23 - New version. 2019-07-19 13:30:41 +02:00
Christoph Oelckers
6999c89cbb - moved several IWAD dependent files into the game_support resource
* sprite offset definitions, which are IWAD dependent
* Freedoom's decal overrides
* conversation ID definitions for the Strife teasers
* the fallback BigFont now can also be loaded by IWADs which declare themselves as GAME_Heretic or GAME_Hexen.

# Conflicts:
#	src/gamedata/fonts/v_font.cpp
2019-07-18 14:28:40 +02:00
Christoph Oelckers
1d8f735a27 - renamed zd_extra.pk3 to game_support.pk3
# Conflicts:
#	src/version.h
2019-07-18 14:28:35 +02:00
Christoph Oelckers
cf88ecf36a - remove test code. 2019-07-18 13:53:24 +02:00
Christoph Oelckers
7757798d22 - moved iwadinfo.txt to zd_extra.pk3.
This was done for two reasons:

1. It forces loading of zd_extra.pk3 for the stock IWADs, eliminating a certain kind of user error.
2. It removes the stock IWAD definitions for custom games that distribute the engine along with their data, so that it doesn't pick up on Steam and GOG installations and shows an inappropriate IWAD picker.
2019-07-18 13:53:20 +02:00
Christoph Oelckers
e51f9a6c13 - allow setting the font used for the status screen's content text.
But only works partially for Raven games (hacked). (drfrag)

# Conflicts:
#	src/gi.cpp
#	wadsrc/static/mapinfo/chex.txt
#	wadsrc/static/mapinfo/doomcommon.txt
#	wadsrc/static/mapinfo/heretic.txt
#	wadsrc/static/mapinfo/hexen.txt
#	wadsrc/static/mapinfo/mindefaults.txt
#	wadsrc/static/mapinfo/strife.txt
#	wadsrc/static/zscript/ui/statscreen/statscreen_sp.zs
#	wadsrc_hacxextra/static/zmapinfo.txt
2019-07-18 13:22:44 +02:00
alexey.lysiuk
2b3d0467e7 - fixed: subtitles background renains visible on new game
https://forum.zdoom.org/viewtopic.php?t=65366

# Conflicts:
#	src/g_statusbar/shared_sbar.cpp
2019-07-18 12:35:01 +02:00
Christoph Oelckers
fd3c760244 - fixed: The countdown for the subtitles display was never counted down so the messages remained forever. 2019-07-18 12:34:36 +02:00
Christoph Oelckers
65a054ba88 - implemented subtitle display for Blackbird's voiceover messages.
# Conflicts:
#	src/g_statusbar/shared_sbar.cpp
2019-07-18 12:33:48 +02:00
drfrag
b92ceac25f - Fixed compilation.
# Conflicts:
#	src/c_console.cpp
2019-07-18 12:32:33 +02:00
Christoph Oelckers
1fb5361a82 - implemented subtitles for intermission slideshows.
# Conflicts:
#	src/d_main.cpp
#	wadsrc/static/language.csv
2019-07-18 12:30:19 +02:00
drfrag
74d8fa8a28 - added printlocalized CCMD to check strings in-game.
(patch by Graf)
2019-07-18 00:10:25 +02:00
Rachael Alexanderson
c992604b7f - set language cvar to global config, it should not be game-specific
# Conflicts:
#	src/g_cvars.cpp
2019-07-18 00:10:23 +02:00
alexey.lysiuk
fa7dae2676 - fixed compilation error with GCC and Clang
src/intermission/intermission_parse.cpp:941:2: error: no matching function for call to 'F_StartFinale'
2019-07-18 00:10:18 +02:00
Christoph Oelckers
b6799e7843 - added a 'testfinale' CCMD, so that the layout of finale texts can be tested more easily
# Conflicts:
#	src/gamedata/stringtable.cpp
#	src/gamedata/stringtable.h

# Conflicts:
#	src/intermission/intermission_parse.cpp
2019-07-18 00:10:14 +02:00
drfrag
ef1047db20 - Changes to the language table.
(patch by Graf)
2019-07-18 00:04:31 +02:00
drfrag
8c941ba1cf - A few more missing things for compatibility.
# Conflicts:
#	wadsrc/static/language.enu
2019-07-17 23:58:09 +02:00