1273 Commits

Author SHA1 Message Date
Alaux
e5d9de2cf3
Add enums for stat and auto setup menus (#810) 2022-11-21 06:18:40 +01:00
Fabian Greffrath
77d6a6bf9c color armor widgets gray we well in invulnerability mode 2022-11-20 21:22:34 +01:00
Fabian Greffrath
375a2084ce increase parallel_sfx_limit default value to 4 2022-11-20 14:15:34 +01:00
Alaux
bbff21bb59
Make color of health count gray when invulnerable (#809) 2022-11-18 06:41:43 +01:00
Fabian Greffrath
d2a411bd20 rename max_instances back to parallel_sfx_limit and make configurable 2022-11-17 21:41:44 +01:00
Fabian Greffrath
4ea5788c90 some rearrangement in the sound code 2022-11-17 21:34:16 +01:00
Fabian Greffrath
df7a1d45bf CI: all cppcheck calls on one line 2022-11-17 21:32:00 +01:00
Fabian Greffrath
f73f189abb
limit the number of identical sounds playing at once, based on priority ordering (#807)
* Revert "add parallel same-sound limit from DSDA-Doom (#796)"

This reverts commit d7849c8fa7ba4b2c92a1784b92127df267f4e8db.

* first shot at sorting sounds by priority

* fix build

* our S_AdjustSoundParams() already mangles volume into priority

* add/fix comments

* newer same-priority sounds are supposed to stop older ones

* use qsort() instead of undocumented (whoops\!) SDL_qsort()

* back to newer same-priority sounds let older ones finish

* keep the singularity concept alive

* get rid of the lowestpriority concept, we already ordered channels by priority

* keep the "snd_channels = 16" default

* Revert "keep the "snd_channels = 16" default"

This reverts commit 79fc9b3332304aa7cd9f7ac687c46089f1d40918.

* Update s_sound.c

* maintain a stable sort (newer sounds have precedence)

* fix typo/thinko

* fix sort order

* fix comparison function return value

* Update s_sound.c

* last nit-pick (hopefully!)
2022-11-17 16:26:20 +01:00
Alaux
9bcf2be8a0
Have "Clear Marks" key clear just the last mark (#808) 2022-11-17 07:41:40 +01:00
Fabian Greffrath
cb26aa9b89 use regular qsort() instead of undocumented SDL_qsort() 2022-11-16 14:43:14 +01:00
Alaux
f15680d4f0
Remove unused function arguments (#806) 2022-11-16 09:06:37 +01:00
Fabian Greffrath
e1274e6481
implement SDL-native sound looping for moving walls (#803)
* implement SDL-native sound looping for moving walls

* add an extra check that new and oldlooping sound are same

* stop looping sounds during menus and pause

* stop looping sounds on level exit

* stop looping sounds if P_Ticker() didn't run through

* do not iterate through sound channels more than necessary

* correctly count looping sounds
2022-11-14 20:21:55 +01:00
Roman Fomin
49f2ec0ac4 Revert "move ST_doPaletteStuff() from ST_Drawer() to ST_Ticker() (#791)"
This reverts commit 7e6d90c01a659808a500f9147f3b12eaad83d881.
Fix skipping level in multilevel demos showing palette changes.
2022-11-15 00:40:13 +07:00
Fabian Greffrath
6623e5cf15
allow the SSG in Doom 1 if the corresponding assets are available (#801)
* allow the SSG in Doom 1 if the corresponding resources are available

Fixes #799

* improve SSG resources availability check

* s/SSG resources/SSG assets/g
2022-11-14 09:15:36 +01:00
Fabian Greffrath
501c263277
allow COMP cheat to change complevel in-game (#798)
* allow COMP cheat to change complevel in-game

* fix variable redefinition

* less verbosity

* add a function parameter to G_ReloadDefaults()

* cosmetic function parameter name change

* back to reporting complevel names

* avoid reserved keyword "new"
2022-11-14 09:14:58 +01:00
Fabian Greffrath
d7849c8fa7
add parallel same-sound limit from DSDA-Doom (#796)
* add parallel same-sound limit from DSDA-Doom

Fixes #546

* remove redundant declaration

* rearrange menu item into General menu
2022-11-14 09:14:23 +01:00
Roman Fomin
6fcb0fe888
umapinfo: don't show menu for only one episode (#805) 2022-11-14 11:36:22 +07:00
Fabian Greffrath
e72887abbc fix reported savegame slot number 2022-11-11 11:20:49 +01:00
Fabian Greffrath
947463c624
fix background drawing on screen size 3 in 21:9 widescreen mode (#795)
Fixes #794
2022-11-10 10:36:50 +01:00
Fabian Greffrath
df7e980f49
some minor clean-up in the sound code (#797) 2022-11-10 09:59:44 +01:00
Fabian Greffrath
bfce51a5c8 fix midi_player config setting description 2022-11-09 12:32:30 +01:00
Fabian Greffrath
d7a017ff25
report most significant audio device properties (#792) 2022-11-08 12:25:24 +01:00
Fabian Greffrath
6be8c38aed allow SDL2_Mixer to adjust sample size 2022-11-08 11:20:14 +01:00
Fabian Greffrath
59d3a6a80e
remove stray trailing '0' from status bar face lump name 2022-11-04 13:56:20 +01:00
Fabian Greffrath
7e6d90c01a
move ST_doPaletteStuff() from ST_Drawer() to ST_Ticker() (#791)
Thanks @JNechaevsky
2022-11-04 11:29:38 +01:00
Fabian Greffrath
473febad55
support face gib animations as in the 3DO/Jaguar/PSX ports (#790)
* initial support for 6 STFXDTH frames with a 10 tic timing

* support 5 or 6 frames, bind to player's xdeathstate

* `state` is at least zero, if `have_xdthfaces` is zero, we will return `ST_XDTHFACE - 1` which is equal to `ST_DEADFACE`

* adapt to the canonical naming scheme

* better safe than sorry

* back to the old naming scheme

* support up to 9 frames

* add comments
2022-11-04 11:29:14 +01:00
Fabian Greffrath
c1a7a8e71d fix menu category for compat-breaking features 2022-11-02 09:57:17 +01:00
Fabian Greffrath
c2f9c62179
add "Walk Under Solid Hanging Bodies" from PrBoom+ (#786) 2022-11-02 09:56:11 +01:00
Roman Fomin
a1cc6c6be3 do not switch timer if fastdemo is not enabled 2022-11-02 15:07:23 +07:00
Roman Fomin
4a02fd8916
don't draw ST_BAR or any UI in snapshots (#788)
* don't draw ST_BAR or any UI in snapshots

* we don't need to backup old `screens[0]`
2022-11-02 14:58:45 +07:00
Roman Fomin
aee30ec2ce
fix starting "new game" or "load game" when fast-forwarding a demo (#789) 2022-11-02 14:43:53 +07:00
Fabian Greffrath
60772ca243 report cppcheck version in CI 2022-11-02 08:42:42 +01:00
rrPKrr
049ff059db
Set 'fastdemo_timer' to false before warping (#785)
* Set 'fastdemo_timer' to false before warping

Apparently there is a bug that causes multiple level demos to get stuck in a single tic loop.

Steps to reproduce:
1. Record a demo consisting of at least 2 levels.
2. Turn on 'fast-forward' on the first level with a hotkey.
3. Without turning off 'fast-forward' press 'next level' hotkey.
4. Let the next level play a bit at normal speed.
5. Press 'fast-forward' again.
6. Depending on the amount of tics passed in step 4 the demo will be stuck for X amount of tics after pressing 'fast-forward' hotkey.

* Move 'fastdemo_timer' declaration to top
2022-10-31 07:15:03 +01:00
Roman Fomin
010b85eca3 take into account "smooth diminishing lighting" for "level brightness" feature 2022-10-29 15:23:33 +07:00
Roman Fomin
f9ccf54869
fix clang15 build (#782) 2022-10-28 09:59:46 +02:00
Fabian Greffrath
61391e0a05 rename "level"->"map" to keep the arrow visible 2022-10-28 08:08:06 +02:00
Roman Fomin
8f9d93042e rename "restart"->"reload" 2022-10-27 17:53:29 +07:00
Fabian Greffrath
e18df53c8f
move action pointers into a separate header file (#780)
* move action pointers into a separate header file

* remove redundant declarations from p_enemy.c

* fix inclusion guard
2022-10-26 19:03:43 +02:00
Roman Fomin
b96bd90ec9 add cppcheck --force 2022-10-26 11:33:14 +02:00
Fabian Greffrath
3bbc7979c4 release Woof! 10.4.0 woof_10.4.0 2022-10-26 08:02:11 +02:00
Roman Fomin
87290a1334
level brightness feature and ability to disable menu background (#778)
* implement level brightness feature and ability to disable menu background

* max 4 level brightness levels (as in the Unity port)

* add option to turn off dark tint

* move level brightness to QOL menu group, add page 4

* tweak mini thermo size

* rename "dark tint"->"dark"

* menu fade effect from Crispy Doom

* move `R_DrawBackground` to r_draw.c, remove old code
2022-10-26 12:47:05 +07:00
Roman Fomin
efec525b58
add Windows resources to .com file (#779)
The icon and properties don't work for .com files, but this change fixes the
window size with non-standard DPI on my system.
2022-10-26 12:27:14 +07:00
Roman Fomin
2d1c821a30 update SDL2 and FluidSynth 2022-10-25 13:04:30 +07:00
Roman Fomin
2d19245238 forgot another version number 2022-10-23 01:33:21 +07:00
Roman Fomin
ef2d5772a0 release workflow: fix version number 2022-10-23 01:18:42 +07:00
Roman Fomin
b3e43f845d
switch from softprops/action-gh-release to ncipollo/release-action (#776)
* switch from softprops/action-gh-release to ncipollo/release-action
2022-10-22 21:31:14 +07:00
Fabian Greffrath
92d295da3c Merge branch 'master' of https://github.com/fabiangreffrath/woof 2022-10-21 12:13:07 +02:00
Fabian Greffrath
e43618b247 update CHANGELOG.md 2022-10-21 12:12:50 +02:00
Roman Fomin
810d0d9ebc
update workflow files (deprecation warnings) (#774) 2022-10-20 21:08:41 +02:00
Roman Fomin
46a8b40b6f
convert main executable to .dll and add .exe and .com launchers (#772)
* convert main executable to .dll and add .exe and .com launchers
2022-10-20 19:29:09 +07:00