1040 Commits

Author SHA1 Message Date
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
Roman Fomin
ad2193c404
little cmake cleanup (#624)
* little cmake cleanup

* try to fix msys check
2022-06-25 22:17:47 +07:00
Fabian Greffrath
b996eb0d0c ignore saveg_readp() return value instead of casting 2022-06-25 10:36:07 +02:00
Fabian Greffrath
c6e4c59ca9 restrict enumerator values to int type range 2022-06-25 10:34:00 +02:00
Fabian Greffrath
54920a43b9 fix function pointers in format strings 2022-06-25 10:30:23 +02:00
Roman Fomin
81b9b3d9f1 fix disabling wrong item in messages menu 2022-06-25 10:11:48 +07:00
Fabian Greffrath
d391449bf8 fix pointer to function pointer casting 2022-06-24 22:12:28 +02:00
Fabian Greffrath
a4b61ba550 fix function pointer as argument declaration 2022-06-24 21:49:34 +02:00
Fabian Greffrath
2e5fa2f847 remove excess semicolons outside of functions 2022-06-24 21:41:12 +02:00
Fabian Greffrath
055e769386 Merge branch 'master' of github.com:fabiangreffrath/woof 2022-06-24 21:36:02 +02:00
Fabian Greffrath
14d6a22bcc fix char signedness for embedded lumps 2022-06-24 21:35:54 +02:00
Fabian Greffrath
ce2dd367b9 add historic Boom changelogs to the doc/ directory 2022-06-24 12:01:49 +02:00
Roman Fomin
8a7ed2ac6b
integrate documents generation from Chocolate Doom (#603)
* use docgen to generate CMDLINE.md

* generate plain text version of CMDLINE

* rename PROJECT_TARNAME->PROJECT_SHORTNAME, add man file generation

* document more parameters

* whitespace fix

* remove unused code

* simplify -complevel documentation

* use WORKING_DIRECTORY

* document more parameters, simplify -pistolstart

* change -speed category, document -blockmap

* fix -devparm description

* move -dog(s) -speed -beta -pistolstart to game category

* add woof-setup man, bash-completion generation

* -spechit parameter, more documentation fixes

* adjust the wording in woof.template

* remove redundant comments

* remove blank line

* remove another redundant comment

* fix PROJECT_SHORTNAME
2022-06-24 09:41:38 +02:00
Fabian Greffrath
82edebafa6 rename dprintf() -> doomprintf() 2022-06-24 09:28:36 +02:00
Fabian Greffrath
0e6e346b32
simplify and adapt z_zone.c to DSDA-Doom (#620)
* simplify and adapt z_zone.c to DSDA-Doom

* remove the INSTRUMENTED macro

* remove Z_Init() and Z_CheckHeap()

* remove PU_LOCKED

* eplicitly free all cached memory blocks on level setup

* assure proper pointer alignment

* fix headers

* reorder struct memblock, decrease padding

* add back historic changelogs
2022-06-24 09:01:49 +02:00
Fabian Greffrath
5cbd8e49d1
name CI jobs more explicitly (#623)
* name CI jobs more explicitly

* Update main.yml
2022-06-24 09:01:06 +02:00
Fabian Greffrath
cc85b9aa63 release Woof! 10.0.3 woof_10.0.3 2022-06-24 07:53:31 +02:00
Roman Fomin
a075557421
remove win32/stdint.h, add CI build compatible with Windows XP (#617)
* remove win32/stdint.h

* add win32 build to CI

* attempt to fix main.yml

* simplify Build step

* fix syntax

* fix syntax again

* fix indent

* fix cpack directory

* build release configuration

* don't upload SDL libs

* download official FluidSynth library for MSVC WIN32 build

* clean up old MSVC #defines/resources

* set FluidSynth_DIR only on MSVC 32-bit build

* set -verbosity:minimal for msbuild

* fix syntax

* cosmetic changes
2022-06-23 11:56:09 +07:00
Roman Fomin
3c526e7068 workaround for optimization bug in clang
Taken from Eternity Engine, fixes desync in competn/doom/fp2-3655.lmp and
dmn01m909.lmp
2022-06-23 08:39:43 +07:00
Roman Fomin
b76e9b1a9f always update msys2 for release 2022-06-23 08:30:06 +07:00
Roman Fomin
cbff23fed4
add MSYS2 build to CI (#622)
* add MSYS2 build to CI

* attempt to fix install

* misunderstood msystem

* try with base-devel

* bring back gcc

* set cmake generator

* try ninja

* add release.yml

* upload all *.zip

* fix syntax

* working release.yml

* add CHANGELOG.md

* update main.yml, delete travis.sh

* get version from tag

* remove msys2 32-bit build from main.yml
2022-06-23 07:22:44 +07:00
Roman Fomin
ba6d348c55 cosmetic fixes 2022-06-22 17:52:44 +07:00
Roman Fomin
190c1faef6
disable translucency in vanilla strictmode (#621)
* disable translucency in vanilla strictmode

* add stub items to the menu definitions

* disable translucency percentage menu item if general_translucency == 0
2022-06-22 08:24:54 +02:00
Fabian Greffrath
30df932a2d
prepare for Woof! 10.0.1 2022-06-21 16:00:53 +02:00
Fabian Greffrath
91d46c9b6f
only create autoload subdirectory relative to D_DoomPrefDir() (#619) 2022-06-21 15:55:27 +02:00
Fabian Greffrath
bd62ffe056
fix gcc-12 -O3 compiler warnings (#608)
* fix gcc-12 -O3 compiler warnings

Fixes #607

* do not free stdlib malloc'ed zone memory blocks
2022-06-21 15:55:13 +02:00
Roman Fomin
c63cb3f77f
check if the lump can be a Doom patch in R_GenerateLookup (#613)
* generate composites only for multipatched columns (fix Urotsuki.wad)

* Revert "generate composites only for multipatched columns (fix Urotsuki.wad)"

This reverts commit 3ce4d9057b463d3cd00d49f4918afdcbceb4f20a.

* check if the lump can be a Doom patch

* print warning to stdout

* print to stderr, function name istead of warning
2022-06-19 13:10:07 +02:00
Roman Fomin
04768f6ab4
fix reload level during intermission (#615) 2022-06-18 20:13:21 +02:00
Roman Fomin
646ba345ab
fix complevel vanilla scrollers (#612)
* fix complevel vanilla scrollers

* disable generalized scrollers in complevel vanilla
2022-06-18 19:24:59 +02:00
Fabian Greffrath
26e067a4b1
two-colored HUD widgets (as in Crispy Doom) (#609)
Fixes #605
2022-06-18 12:01:11 +02:00
Roman Fomin
59edb68106
fix all MSVC warnings (#606)
* fix all MSVC warnings

* fix -mapangle

* clarify comments

* fix mapangle again
2022-06-18 11:59:54 +02:00
Fabian Greffrath
ec9aa62bab avoid menu cursor being drawn off-screen 2022-06-17 17:16:00 +02:00
Fabian Greffrath
29b2b9ba67 release Woof! 10.0.0 woof_10.0.0 2022-06-17 11:24:44 +02:00
Roman Fomin
29bb915fce only one check to disable enem_ghost menu item 2022-06-16 17:31:51 +07:00
Roman Fomin
439a3b56ef handle strictmode for centered weapon menu item in M_UpdateCenteredWeaponItem
Fixes #604. Thanks @MrAlaux for the report.
2022-06-16 09:35:38 +07:00
Roman Fomin
b2b9d9f43b fix music playing when ENDOOM screen is displayed 2022-06-14 23:47:01 +07:00
Roman Fomin
00a75371e2 remove unused code 2022-06-14 23:46:14 +07:00
Fabian Greffrath
061290f222 prepare changelog for the next release 2022-06-14 08:59:53 +02:00