2073 Commits

Author SHA1 Message Date
Roman Fomin
b05273d319
adapt mouselook from PrBoom+ (#1389)
* reduce recoil pitch values
2024-01-15 21:47:15 +07:00
Fabian Greffrath
0d73d370fd fix widget bottom alignment with Crispy HUD 2024-01-14 21:36:19 +01:00
Roman Fomin
d32e4912f8 remove M_ArrayIncreaseSize, fix array_free() pointer zeroing 2024-01-14 20:07:17 +07:00
Roman Fomin
c047cfbeee only use latest tag of vcpkg
Hopefully it will be more stable.
2024-01-13 08:18:53 +07:00
Roman Fomin
37dec7a4ea precalc "flex" translucency only if smooth lines are enabled 2024-01-13 08:17:02 +07:00
Fabian Greffrath
1797adf6ac enable smooth automap lines by default 2024-01-12 15:42:27 +01:00
Fabian Greffrath
c6b87a9f44 move V_InitFlexTranTable() call to am_map.c 2024-01-12 15:41:45 +01:00
Fabian Greffrath
63124579ae
adapt Eternity Engine's smooth Automap line drawing approach (#1388)
* adapt Eternity Engine's smooth Automap line drawing approach

* get rid of flexTranInit
2024-01-12 14:34:38 +01:00
Roman Fomin
e1aa7430ea try to fix vcpkg 2024-01-11 00:04:02 +07:00
Roman Fomin
1c1b3f1e8f use m_array for file handles 2024-01-10 22:38:49 +07:00
Roman Fomin
849eb0ed71 use m_array for MIDI device list 2024-01-10 22:20:49 +07:00
Roman Fomin
4b85007596 fix excessive memory allocation in dsdhacked 2024-01-10 13:23:50 +07:00
Roman Fomin
d08749244d add CheckExtensions function, cleanup 2024-01-10 00:02:21 +07:00
Roman Fomin
c2ea692e3a
add GameVariant_t, don't autoload from doom-all for FreeDoom and miniwad (#1384)
* Rename vx_filenames->vxfiles
2024-01-09 22:18:18 +07:00
Roman Fomin
48e102489f
use m_array in dsdhacked.c, formatting (#1383) 2024-01-09 20:13:19 +07:00
Roman Fomin
f4e3e29579
implement growable arrays (#1380)
Growable arrays of homogeneous values of any type, similar to a std::vector in
C++. The array must be initialised to NULL. Inspired by
https://github.com/nothings/stb/blob/master/stb_ds.h
2024-01-09 16:19:16 +07:00
Fabian Greffrath
7f19988f65
adjust automap level title color with preset (#1379)
* adjust automap level title color with preset

Fixes #1378

* grammar
2024-01-09 09:35:22 +01:00
Fabian Greffrath
6cccb75184
fix garbage lines at the top of weapon sprites (#1377)
Make sure that the product of the weapon sprite scale factor
and its reciprocal is always at least FRACUNIT to
fix garbage lines at the top of weapon sprites.

See
b8aa0e7d8b

Fixes #1371
2024-01-06 19:37:14 +01:00
Roman Fomin
1a907867af remove excessive warnings, formatting 2024-01-07 01:28:00 +07:00
Roman Fomin
2914d96495 update NORETURN macro for MSVC, cleanup 2024-01-07 00:59:22 +07:00
Roman Fomin
c744db3a86 create mutex on music module init
Avoid crashing when changing volume between tracks.
2024-01-07 00:05:42 +07:00
Roman Fomin
63e625e295
savegame fixes (#1376)
* restore function pointer reading

There seems to be a check for NULL somewhere.

* remove saveg_compat checks in write function, formatting
2024-01-06 17:40:03 +07:00
Fabian Greffrath
dd4e2b55b6
demote WI_drawOnLnode() logging to debug (#1373)
* demote WI_drawOnLnode() logging to debug

* remove redundant checks
2024-01-05 17:13:04 +01:00
ceski
7d1cee03bc
Use 1:1 mouse turning/looking sensitivity (#1372)
* Remove `MLOOKUNIT`

* Use 1:1 mouse turning/looking sensitivity

* Use `finetangent`
2024-01-05 02:05:45 -08:00
Fabian Greffrath
5de216d785
apply the non-amigaos4 specific parts of the AmigaOS4 patch (#1369)
* apply the non-amigaos4 specific parts of the AmigaOS4 patch

* move SDL_Quit() to the end of StartGame()

* replace atexit() with I_AtExit()
2024-01-04 17:41:55 +01:00
Roman Fomin
9d1570c019
use intprt_t instead of size_t (#1370) 2024-01-04 23:31:30 +07:00
Fabian Greffrath
d6e0bb8ca8
enable -Wbad-function-cast compiler warning (#1366)
* experiment with -Wbad-function-cast

* cast FRACUNIT to double, instead of function return value

* assign sqrt() result to variable, cast and bit-shift this

* restore thinker function to intermediate variable

* cast pointer to int

* assign ShellExecute() return value to intermediate pointer, cast and compare this

* more compact fixes

* add -Wcast-function-type

* attempt to fix i_winmusic:PlayerProc()

* attempt to fix MSVC build

* back to PrBoom's float version of P_GetOffset()

* improve consistency with Win API

* attempt to fix P_DegenMobjThinker() signature

* add -Wno-cast-function-type-strict

* get rid of -Wcast-function-type again
2024-01-04 13:20:31 +01:00
Roman Fomin
a519206829
fix crash on Chex intermission (#1368) 2024-01-04 18:39:17 +07:00
ceski
e3dd725b4b
Add adjustable FOV (#1364)
* Add adjustable FOV

* Always use custom FOV when non-zero

* Fix pixels at edge of screen for 32:9 aspect ratio

* Remove in-game aspect ratio selection for now

* Revert "Fix pixels at edge of screen for 32:9 aspect ratio"

This reverts commit ab1df333f610f4097bca0256694b3c99f69eb9de.
2024-01-03 23:13:36 -08:00
Fabian Greffrath
f67fb0784e
Merge pull request #1365 from fabiangreffrath/noreturn
mark I_ErrorOrSuccess() with attribute NORETURN
2024-01-03 12:18:53 +01:00
Fabian Greffrath
5a5c46f6b0 define the __GNUC__ macro for cppcheck CI 2024-01-03 11:43:33 +01:00
Fabian Greffrath
c7b2362a59 properly error out of G_NextWeapon() in case of error 2024-01-03 11:24:35 +01:00
Fabian Greffrath
67b45b701a mark I_ErrorOrSuccess() with attribute NORETURN 2024-01-03 11:17:28 +01:00
Roman Fomin
6a8688b85b fix nomusic parameter 2024-01-03 13:24:39 +07:00
Fabian Greffrath
1a18dfb409
replace music backend enumeration with generic string (#1362)
* get music backend enumeration right

* simplify

* replace enumeration with generic string
2024-01-02 14:07:47 +01:00
Roman Fomin
b8677656be
loop MIDI using SDL_Mixer method (#1356) 2024-01-02 19:32:29 +07:00
Fabian Greffrath
8c21ec0d81
leave SDL render driver at default for non-Win archs (#1363) 2024-01-02 13:25:53 +01:00
Fabian Greffrath
16007024d2 fix menu skull alignment 2024-01-02 11:16:33 +01:00
Fabian Greffrath
78c1fccebd
voxels: support brightmaps and colored blood (#1361)
* voxels: support brightmaps and colored blood

* translation table caching
2024-01-02 09:53:27 +01:00
Roman Fomin
801c93872b
add ability to set SDL render driver (#1359)
"direct3d11" is about 10% faster than the default. Screenshots are fixed in new
 SDL versions.
2024-01-02 15:25:54 +07:00
Fabian Greffrath
ecf153fbac
Merge pull request #1360 from fabiangreffrath/mapcolor_item
improve automap color config key compatibility with PrBoom+
2024-01-02 09:12:26 +01:00
Fabian Greffrath
c63560f51f separate automap colors for revealed and unrevealed secrets
5bc2523269
2024-01-02 08:37:50 +01:00
Fabian Greffrath
a9fa34ef27 improve automap color config key compatibility with PrBoom+ 2023-12-31 17:49:59 +01:00
Roman Fomin
3e36f3b9b9 reset target refresh after wipe (wipe is always at 35 FPS) 2023-12-30 16:47:05 +07:00
Roman Fomin
d58473b4af
fix UMAPINFO episodes for nightmare skill, reformatting (#1358) 2023-12-30 05:41:37 +07:00
Roman Fomin
5adc01c272 fix previous commit 2023-12-29 21:20:04 +07:00
Roman Fomin
8b487b1ced
fix loading lumps with -file command (#1357)
Sometimes the `FileContainsMaps` function tries to allocate too much memory.

* add checks for "IWAD" and "PWAD"
2023-12-29 21:06:02 +07:00
Roman Fomin
fc9731ffa0
add music_lock mutex, increase delay (#1304)
* clear the queue when the song stops, more error checking
2023-12-29 16:28:30 +07:00
Fabian Greffrath
edd527feb0
NanoBSP integration (#1342)
* WIP: NanoBSP integration

* update to latest nano_bsp HEAD

* update to nano101 as posted on the DW forums

* include p_extnodes.h instead of declaring P_GetOffset()

* one comment

* update copyright information

* introduce W_LumpExistsWithName()/W_LumpLengthWithName()

* use W_LumpExistsWithName()/W_LumpLengthWithName() more thoroughly

* error out if no SECTORS lump found

* report failing map lump name, not number
2023-12-29 10:12:09 +01:00
Roman Fomin
82e00563e6 run DRS only in GS_LEVEL state, make width even 2023-12-29 14:12:19 +07:00