2384 Commits

Author SHA1 Message Date
Roman Fomin
215c75a55a
add clang-tidy to CI and fix some warnings (#1717)
* fix replacement of `author` umapinfo string (assumed to be lump name)

* remove some variables that are never read

* remove `toolsrc` from the build (we don't package it anyway)

* make sure that `dropoff` parameter is boolean

* allow `i` values outside enum mobjtype_t range

* `oldgamestate` out of range for `gamestate_t` enum

* false positive (?) for leaking memory in U_SaveState

* use the `__VA_ARGS__` macro instead of functions with variable parameters

In standard C, using NULL to terminate the argument list of a variadic
function is undefined behaviour.
2024-05-30 20:20:46 +07:00
Roman Fomin
1f957567a6
use compile_commands.json for Cppcheck (#1716)
* suppress memleak warnings only for u_scanner.c
2024-05-29 18:07:46 +07:00
Fabian Greffrath
605289f161 initialize midi_position_t position in i_midimusic.c:PlayerThread() 2024-05-28 13:45:51 +02:00
Roman Fomin
66ec2d5d96 fix adding base files listed after subdirectory in zip files 2024-05-28 14:34:12 +07:00
Fabian Greffrath
5b35e2a604 declare mapcolor_preset as static, some clean-up 2024-05-28 08:03:55 +02:00
Roman Fomin
e100d5c3f1
add support for 8-bit PNG files (#1708)
* move V_LinearToTransPatch function to v_fmt.c

* add simplified V_LinearToPatch function

* rename the appropriate W_CacheLump* to V_CachePatch* or V_CacheFlatNum
2024-05-28 08:11:14 +07:00
Roman Fomin
882017454d fix M_FileLength function 2024-05-27 17:11:04 +07:00
Roman Fomin
0c7725ae6e if base dir is not found, do not check sub dirs 2024-05-27 15:08:29 +07:00
Fabian Greffrath
7e46bed40a
add a Crispy Doom automap color scheme (#1709)
* add a Crispy Doom automap color scheme

https://www.doomworld.com/forum/topic/112333-this-is-woof-1450-apr-30-2024/?page=92&tab=comments#comment-2804787

* adjust mapcolor_preset description

* move enum to source file

* print the map title in white from the first colon onward

* remove multi-colored map title again

* double check color accuracy
2024-05-27 09:47:10 +02:00
ceski
2fb776726a
Separate fake_longtics and raw_input (#1710) 2024-05-26 20:42:10 -07:00
Roman Fomin
1c325fb79d fix adding files in root directory of zip archives 2024-05-26 15:54:33 +07:00
Roman Fomin
ffc2261503 use binary search in zip central directory 2024-05-26 08:57:24 +07:00
Roman Fomin
97631fe0b9 simplify lump filters handling, convert slashes for zip paths 2024-05-26 00:30:49 +07:00
Roman Fomin
49113c9d85
load IWAD from zip, cosmetic changes (#1703)
* Add more lump filters.

* Simplify `CheckIWAD` function, load IWAD from zip archive.

* Remove `PrintVersion` function.
2024-05-25 21:10:29 +07:00
ceski
045b3a2797
Refactor game input utility functions (#1705) 2024-05-25 06:35:15 -07:00
Fabian Greffrath
46bc8de658
announce map titles (#1704)
* announce map titles

https://www.doomworld.com/forum/topic/125256-nugget-doom-310-updated-may-16th-24/?page=22&tab=comments#comment-2801367

* make hud_map_announce static
2024-05-25 11:01:51 +02:00
ceski
f673802db6
Revise additional CVAR descriptions (#1706) 2024-05-24 22:51:48 -07:00
Roman Fomin
9a88954c8e simplify joyb_names and mouseb_names arrays 2024-05-25 12:08:21 +07:00
Fabian Greffrath
b468c19580
return gamemode string for unknown IWADs (#1702) 2024-05-24 18:20:10 +02:00
Fabian Greffrath
a8e90456fb check active_module before dereferencing 2024-05-24 18:04:18 +02:00
Roman Fomin
eeed37db4f
remove VX_NearbySprites (#1701) 2024-05-24 21:39:51 +07:00
Roman Fomin
59b41e4120 restore freedoom*.wad in iwads table 2024-05-24 20:36:15 +07:00
Roman Fomin
e49828d7c7 fix print of IWAD version 2024-05-24 19:04:59 +07:00
Roman Fomin
7f50fbbc8e
resource directories, extract zip files in memory (#1694)
* Redone miniz build.

* Extract zip files to memory.

* Add `sprites`, `flats`, `colormaps`, `music` and `voxels` sub-directories (also in zip archives).

* Add VX_START VX_END markers.

* Add some of the GZDoom lump filters.

* Direct load of demo files, remove W_DemoLumpNameCollision

* Fix "organized savefiles" for in-memory WADs

* Remove `default_verbocity`, simplify `PrintVersion()`.
2024-05-24 18:47:24 +07:00
ceski
62ddc5c1b8
Add fake high-resolution turning setting (#1691) 2024-05-22 06:28:43 -07:00
Fabian Greffrath
9011fbcfd8
Draw sprites overlapping into visible sectors (#1693)
* render sprites merely touching the sector in R_AddSprites()

* check if sprites in sector have already been projected

* add config key binding

* CRITICAL() -> STRICTMODE()
2024-05-21 18:00:06 +02:00
ceski
df01263104
Improve EMIDI track designation (#1699) 2024-05-21 02:30:23 -07:00
Fabian Greffrath
33346221a3
always use traditional menu ordering, drop Boom choice (#1698) 2024-05-21 11:03:26 +02:00
Roman Fomin
46e7b16b21
reset `highlight_item', check input mode for "mouse button up" event (#1697) 2024-05-21 14:16:58 +07:00
Roman Fomin
18693bc95b
fix the garbage columns when the aspect ratio correction is turned off (#1695) 2024-05-21 09:08:06 +07:00
Fabian Greffrath
ebf69cd6a8 remove title widget alignment from examples 2024-05-20 09:58:38 +02:00
Fabian Greffrath
9417f5d899 let title widget get aligned by the defaults 2024-05-19 21:29:43 +02:00
Fabian Greffrath
efe9729537 Merge branch 'master' of github.com:fabiangreffrath/woof 2024-05-19 21:28:46 +02:00
Fabian Greffrath
ea85a6993d align secret revealed widget relative to view center 2024-05-19 21:27:32 +02:00
ceski
c7ad1193d1
Add command history widget (#1692) 2024-05-19 08:22:20 -07:00
Roman Fomin
155a5d0f17 switch to ubuntu-24.04, add extra-options for Linux build 2024-05-18 21:26:27 +07:00
Alaux
fb488620b5
Revise CVAR descriptions (#1684)
* Revise CVAR descriptions

* Second pass

* Revise some descriptions as per MBF21 OPTIONS doc

* Species in plural

* Third pass

* Missed a "percentage"

* Fourth pass
2024-05-14 04:44:04 -03:00
Roman Fomin
bea9a7df72 missed config binds 2024-05-14 09:52:04 +07:00
Roman Fomin
26ce44b216
remove extern from *.c files (#1686) 2024-05-13 16:43:07 +07:00
ceski
df65db124d
Add quickstart cache for gamepad (#1690) 2024-05-11 11:12:50 -07:00
ceski
f194d77aa5
Add quickstart cache (#1687) 2024-05-10 19:15:56 -07:00
Fabian Greffrath
ce57d6a44d
fit finale text to widescreen instead of inserting line breaks (#1683)
* prefer to fit finale text to widescreen over inserting line breaks

* apply @rfomin's patch

* fix width boundary
2024-05-08 11:35:05 +02:00
Fabian Greffrath
d368d4d206
fix desyncs by SSG-flash correction (#1682)
* fix desyncs by SSG-flash correction

Fixes #1669

* revert S_DSGUNFLASH1 state duration back to 5 tics

* reverse logic for reducing state duration

* detect recursive/nested states
2024-05-08 11:34:47 +02:00
Roman Fomin
6db18d5e00
add binding of config variables (#1677)
* rename mn_setup.h->mn_internal.h

* binding of video and render variables

* bind input variables

* bind gamepad variables

* bind automap and HUD variables
2024-05-07 18:09:13 +07:00
Fabian Greffrath
323674e18d Merge branch 'master' of github.com:fabiangreffrath/woof 2024-05-07 11:04:38 +02:00
Fabian Greffrath
4a9abfacd2 check for finaleflat availability before calling V_DrawBackground()
Fixes a crash in the MAP06->MAP07 transition in PUSS33_DIEROWDY.wad
2024-05-07 11:04:24 +02:00
Roman Fomin
621b5637f4
separate base counter for in-game timer (#1680) 2024-05-07 15:26:37 +07:00
Fabian Greffrath
badfd4ee9d Merge branch 'master' of github.com:fabiangreffrath/woof 2024-05-07 09:55:18 +02:00
Fabian Greffrath
14ed02e08d limit max distance for vissprites to 8192 map units as before
But don't rely on an integer overflow this time.

This increases FPS from 9 to 28 in the opening scene of comatose.wad
2024-05-07 09:54:49 +02:00
Roman Fomin
cb08a6f0d2
add aliases from DSDA-Doom, fix docgen warnings (#1678) 2024-05-07 14:05:43 +07:00