1077 Commits

Author SHA1 Message Date
Roman Fomin
cf52753a1f we don't need new macro
I'm confused about my own macros.
2022-07-15 15:23:51 +07:00
Fabian Greffrath
7856dac3bb
boom autoswitch: don't replace pending weapon choice (#665)
Thanks @kraflab
2022-07-15 10:15:17 +02:00
Roman Fomin
6b37797a53
implement palette_changes and screen_melt options (#664)
* implement palette_changes and screen_melt options

* disable strict and complevel menu items if command line options are present

* add NOTSTRICTMODE macro
2022-07-15 10:15:05 +02:00
Roman Fomin
c312901a14
allow automap panning in overlay mode (#663)
* remove meaningless line

* allow automap panning in overlay mode, whitesapce fix

* instantly turn off panning if follow mode is enabled
2022-07-15 08:30:26 +02:00
Roman Fomin
1ccd1d14d2
reduce verbosity (#662)
* reduce verbosity

* add --help, document -nogui

* fix -nogui documentation

* missed warning

* -dehout allows "-" parameter for stdout printing

* always update MSYS2, there doesn't seem to be much difference in speed.

* less verbose logging

* formatting

* cosmetic changes

* more cosmetic fixes
2022-07-15 08:30:04 +02:00
Roman Fomin
26475462e6
alter cppcheck command line (#661) 2022-07-14 10:33:30 +02:00
Roman Fomin
3589bc16e4
antialiased automap lines from Crispy Doom (#660) 2022-07-14 10:33:06 +02:00
Roman Fomin
c8390d535a
automap panning interpolation from PrBoom+ (#659)
* automap panning and zooming interpolation from PrBoom+

* fix mousewheel zoom

* restore old M_ZOOMIN M_ZOOMOUT

* remove zoom interpolation
2022-07-14 10:27:33 +02:00
Roman Fomin
b8b37b7817
hack to get working console IO with Windows GUI applications (#656)
* hack to get working console IO with Windows GUI applications

* fix MSYS build

* change cppcheck command

* attempt to fix cppcheck error

* fix mingw warning

* we don't need low level code from mpv

* remove unused code
2022-07-14 09:28:14 +02:00
Fabian Greffrath
b9abe20746
optional solid color status bar background for widescreen mode (#655)
* optional solid-colored status bar background

Fixes #651

* Update m_misc.c

* parametrize "analyzation depth"

* tune down to half saturation

* minor clean-up
2022-07-14 09:04:50 +02:00
Roman Fomin
399e88c97e
verify command line options (#650)
* verify command line options

* fix cmake

* add -deh -bex to multiple options check

* fix typo

* fix parameter count check

* add validation for some arguments

* fix skill 0

* validate all parameters with argumets

* cosmetic fixes

* don't check undocumented options if -devparm is set

* fix format error

* fix whitespace

* docgen cleanup

* rename GenParams->paramsgen

* fix -turbo check

* more docgen cleanup

* generate help string

* use dictionary

* condense help text

* escape `"`

* remove -gameversion from help string

* set wrap width to 80, few tweaks

* remove debug line

* -setmem error message correction

* fix -episode check and -skill description

* little cleanup
2022-07-14 09:04:36 +02:00
Fabian Greffrath
d8a068c97b fix line height in HUlib_eraseTextLine() 2022-07-13 21:46:39 +02:00
Fabian Greffrath
108467e3c8 initialize the monsec widget's y coordinate with dummy values
Fixes #658
2022-07-13 17:51:38 +02:00
Roman Fomin
50c72d592e update to SDL_Mixer 2.6.1 2022-07-13 19:17:51 +07:00
Fabian Greffrath
bf2710559c
confirm "demo recording" by player message at game start (#654)
* confirm "demo recording" by player message at game start

* move demo recording reporting to G_BeginRecording()

* report demo file name
2022-07-12 18:56:09 +02:00
Fabian Greffrath
028b00c2c2
support '-skill 0' command line parameter (does not spawn any map objects) (#653)
* support '-skill 0' command line parameter (does not spawn any map objects)

* enable just for demo_compatibility

* distinguish between skill "none" and default skill
2022-07-12 18:55:57 +02:00
Fabian Greffrath
994a4e8971 get rid of some obsolete macros 2022-07-11 11:26:36 +02:00
Fabian Greffrath
f0bc9cc8cf move I_GetPaletteIndex() to i_video.c 2022-07-11 11:26:32 +02:00
Fabian Greffrath
6335cefbca reuse R_DupPlane() in R_CheckPlane() 2022-07-11 11:26:26 +02:00
Roman Fomin
2f9b786dd6 fix SDL_Mixer mingw download 2022-07-09 17:33:20 +07:00
Roman Fomin
80b47a4ae0 update CHANGELOG.md 2022-07-09 16:46:13 +07:00
Roman Fomin
2d9ccaf2a9 don't install git for msys2 CI 2022-07-09 16:45:43 +07:00
Roman Fomin
b247ed73e6 update SDL_Mixer to 2.6.0 2022-07-09 16:44:33 +07:00
Roman Fomin
8c61f1de6f
add music packs support (#649)
* load music files from autoload directory

* add support for .zip files

* fix gcc warnings

* delete temporary directory

* add missed header

* simplify handles closing

* add more error checking

* remove remnants of deprecated code

* fix whitespace

* use PROJECT_SHORTNAME

* extract only .wad, .lmp and music files

* autoload .zip files

* rearrange some code

* add support for drag-n-drop zip files

* fix autoload for PWADs in zip files

* fix memory leak, reformatting

* add M_StringCaseEndsWith function

* define MINIZ_NO_ARCHIVE_WRITING_APIS

* add zip files do bash completion

* Revert "define MINIZ_NO_ARCHIVE_WRITING_APIS"

This reverts commit f9674fee2516facea78c05aa40151b10016c81da.
2022-07-09 07:41:24 +02:00
Fabian Greffrath
de1618ab50 show FPS in IDRATE cheat 2022-07-08 12:24:24 +02:00
Fabian Greffrath
9aa0dbe1d2
Update README.md 2022-07-06 08:46:59 +02:00
Roman Fomin
6ad75eac27
disable interpolation for sectors without thinkers (#648) 2022-07-05 10:34:28 +02:00
Roman Fomin
ccea641753
replace the nickname of Andrey Budko with the full name (#647) 2022-07-05 09:18:14 +02:00
Roman Fomin
9262cab270
center mouse if permanent mouselook is disabled (#645)
* center mouse if permanent mouselook is disabled

* simplify mouselook toggle
2022-07-05 09:17:49 +02:00
Julia Nechaevskaya
3b92bcd6e4
Switch automap to FRACTOMAPBITS coordinate system (#644)
* Switch automap to FRACTOMAPBITS coordinate system

* Fix player arrows positioning in netgame

* Get back Crispy's zoomlevel init on all maps
2022-07-05 09:17:36 +02:00
Fabian Greffrath
8521c10309
don't let failed loadgame attempts reset gameepisode/gamemap (#643) 2022-07-04 13:02:00 +02:00
Roman Fomin
7668757f0e Revert "ignore saveg_readp() return value instead of casting"
This reverts commit b996eb0d0c9301520d2bed38da5310d92dd86630.
str->function must not be NULL otherwise some thinkers don't work.
Maybe we can write str->function = 1?
2022-07-03 22:33:08 +07:00
Roman Fomin
190ab22c66
umapinfo: fix desync in finale skipping (#642) 2022-07-03 09:49:02 +02:00
Roman Fomin
3ad830f5aa
set window focus on startup (#641)
* clear out any events waiting at the start and center the mouse

* actually we just need to set window_focused = true as in Chocolate Doom

Clearing events at startup disables gamepad recognition.
2022-07-03 09:48:51 +02:00
Julia Nechaevskaya
3b7e955c75
Optimization for drawing huge amount of drawsegs (#640)
* Optimization for drawing huge amount of drawsegs

* Fix some original whitespace

* Use centerx and  Z_Realloc

* Add line break

* Replace cx with centerx

Must be safe, since no modifying of centerx is done.
2022-07-03 09:48:38 +02:00
Roman Fomin
194a0740f4
implement death use action (#638)
* implement death use action

* consider demorecording and netgame

* rename reborn->default
2022-07-02 12:45:11 +02:00
Roman Fomin
7b5645f597
fix "ISO C forbids empty translation unit" via CMake (#637) 2022-07-02 10:59:30 +02:00
Fabian Greffrath
5fbf91cb17
clear tmthing at tic end (#635)
@rfomin Hopefully this fixes the rare segmentation faults you
experienced after the z_zone rewrite. At least it fixes the one
use-after-free issue I have found with valgrind before.

Fixes #636
2022-07-02 10:59:03 +02:00
Fabian Greffrath
985c9dbc04 ISO C forbids an empty translation unit 2022-06-30 09:43:20 +02:00
Fabian Greffrath
78a24f99d0 do not draw little dot in follow mode 2022-06-29 09:00:14 +02:00
Julia Nechaevskaya
4dec0ce25f
Keep arrow stable in non-rotate mode (#634)
* Keep arrow stable in non-rotate mode

* Erm, more human-readable condition
2022-06-29 08:55:19 +02:00
Fabian Greffrath
7b09a40fe3
fix Boom weapon autoswitch (from DSDA-Doom) (#633)
* fix Boom weapon autoswitch (from DSDA-Doom)

Fixes #578

Did I get this right @kraflab?

* fix boolean type typo
2022-06-28 17:07:01 +02:00
Julia Nechaevskaya
bc1728f4bd
Pan/zoom automap faster by holding run button (#632)
* Pan/zoom automap faster by holding run button

* Working approach

* Use `mousewheelzoom`

* increase F2_PANINC to 12

Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
2022-06-28 08:27:41 +02:00
Fabian Greffrath
4bc54276dd more elegant fix for "ISO C restricts enumerator values to range of ‘int’" warning 2022-06-27 13:34:14 +02:00
Fabian Greffrath
90bb538c79 Revert "restrict enumerator values to int type range"
This reverts commit c6e4c59ca958fae6c8c63c50df5c64bd1507a258.
2022-06-27 13:33:00 +02:00
Roman Fomin
5e9eb7434e
enable -Werror option (#631)
* enable -Werror option, set sprintf format

* change buffer size

* fix syntax error

* enable /WX option for MSVC
2022-06-27 11:23:02 +02:00
Joan Bruguera
bcf5410d3d
ask for confirmation on window close event (#630)
Ask for confirmation on SDL_QUIT (triggered by e.g. closing the game window),
in order to avoid accidentally closing the game and losing progress

The code is a trivial port from Chocolate Doom (GPL2), see:
* 5014caee2a
* 15f1bce94e
2022-06-27 08:23:55 +02:00
Roman Fomin
4942203b3e
fix savegame bug, cosmetic changes (#629)
* call saveg_write in saveg_write_pad (cosmetic)

* don't use dynamic memory for temporary mobj

* fix wrong order in saveg_read_scroll_t
2022-06-27 08:21:49 +02:00
Roman Fomin
b7cef58607
copy PrBoom+ logic for UMAPINFO exitpic/enterpic (#628) 2022-06-27 08:19:44 +02:00
Julia Nechaevskaya
2f213685bf
Apply various interpolations for automap (#626)
* Smooth player arrow rotation

* Interpolate thing triangles movement

* Interpolate player arrow in non-follow mode

* Prevent player arrow from jittering

* Fix losing grid lines near the automap boundary
2022-06-27 08:18:35 +02:00