Commit graph

21151 commits

Author SHA1 Message Date
Christoph Oelckers
3612127a5e - move stuff to refactor to a sub-structure. 2023-05-27 12:37:24 +02:00
Christoph Oelckers
12266a3693 - SW: inline setting the end state. 2023-05-27 12:11:41 +02:00
Christoph Oelckers
c72e2dbbe0 - fix missing #include 2023-05-27 10:37:00 +02:00
Christoph Oelckers
98961b54a8 - removed unused variable 2023-05-27 10:11:31 +02:00
Christoph Oelckers
d20c37e708 - reinstated the state's sprite frame code.
Having frames makes management a lot easier so let's keep it.
2023-05-27 10:11:30 +02:00
Christoph Oelckers
f3ea1e312a - Backend update from GZDoom. 2023-05-27 10:10:42 +02:00
Christoph Oelckers
5dfb0c902a - consolidation of sound init code. 2023-05-27 09:12:51 +02:00
Christoph Oelckers
6866e86e3e - missed change for Blood 2023-05-27 09:11:26 +02:00
Christoph Oelckers
92f2503160 - did a bit of optimization on sfxinfo_t.
Using two bytes of alignment gap to add a userval variable.
2023-05-27 09:03:10 +02:00
Christoph Oelckers
1468bedf4c - don't print file-not-found errors for internal SNDINFO definitions. 2023-05-27 07:15:43 +02:00
Christoph Oelckers
1cb86af5f9 - give SW's sounds proper names and move their definition out of the EXE.
Also handle custom rolloff by the sound engine
2023-05-26 23:27:46 +02:00
Christoph Oelckers
0e64a38812 - ported a few SNDINFO options from GZDoom. 2023-05-26 18:56:42 +02:00
Mitchell Richters
b69dbe1db3 - Remove some debug leftovers. 2023-05-21 20:01:17 +10:00
Christoph Oelckers
147f5ac8a0 - added GZDoom's state manager.
We will need this for SW's actors
2023-05-21 09:59:22 +02:00
Christoph Oelckers
f35ae98e13 - remove unused variable. 2023-05-21 08:11:44 +02:00
Christoph Oelckers
f58504250c - remove DCoreActor::picnum's script export.
This is something we definitely do not want to export.
2023-05-21 07:54:16 +02:00
Christoph Oelckers
1b2a249243 - got rid of all tile index constants in Exhumed. 2023-05-21 07:42:26 +02:00
Christoph Oelckers
c707167c94 - eliminated all uses of tile index constants in Blood.
The literal numbers still remain, though.
2023-05-20 18:28:29 +02:00
Christoph Oelckers
9bf028b7f0 - eliminated use of one more tile index in Exhumed. 2023-05-20 18:27:12 +02:00
Christoph Oelckers
fd9a9232af - cleanup of Exhumed's 2D code. 2023-05-20 18:08:59 +02:00
Christoph Oelckers
4e4be4f3d0 - use the global texture ID array where available. 2023-05-20 18:08:58 +02:00
Christoph Oelckers
6de41eec46 - get rid of last tileGetTexture calls in Blood. 2023-05-20 18:08:58 +02:00
Christoph Oelckers
56f5e01c84 fix tileCRC 2023-05-20 18:08:58 +02:00
Christoph Oelckers
a2b2e2ec87 - got rid of tileHeight and tileWidth. 2023-05-20 18:08:40 +02:00
Christoph Oelckers
2f2021f5d2 - Blood: simplify burnTable. 2023-05-20 13:17:55 +02:00
Christoph Oelckers
058f1b4233 - handle exclusion of tilenum 0 for sprites in the backend. 2023-05-20 12:55:58 +02:00
Christoph Oelckers
a76494363c - get rid of 'picnum' in common code. 2023-05-20 12:40:57 +02:00
Christoph Oelckers
de6b5fec7b - got rid of some 'picnum's that don't reference spritetype. 2023-05-20 10:59:03 +02:00
Christoph Oelckers
5999cb8218 - fix savegame size of temp_data 2023-05-20 10:00:29 +02:00
Christoph Oelckers
43bc6edba3 - print errors in red. 2023-05-20 09:11:14 +02:00
Christoph Oelckers
4e6023ea34 add a bit of vertical tolerance to neartag's sprite check.
This is not pitch aware and can cause problems with very small sprites on occasion.
2023-05-20 09:01:46 +02:00
Christoph Oelckers
1d0b763844 - fixed bad sprite name. 2023-05-20 07:21:28 +02:00
Christoph Oelckers
5ba01bb38d - fix crash in RR when dying with an item-less weapon. 2023-05-20 07:19:35 +02:00
Christoph Oelckers
8069c85ca1 - fixed bad inheritance in RedneckVixenShot 2023-05-20 07:19:35 +02:00
Christoph Oelckers
8da775aaf1 - fix RedneckDestructo 2023-05-20 07:19:18 +02:00
Christoph Oelckers
a8e03723ef - NOSHADOW flag. 2023-05-19 23:03:20 +02:00
Christoph Oelckers
b993f05c8f - fixed missing handling for BADGUYSTAYPUT flag. 2023-05-19 23:00:27 +02:00
Christoph Oelckers
b6767aa7a3 - fixed: The MVE player ignored the initial sound playing state.
If that is off, sound must remain off.
2023-05-19 22:59:48 +02:00
Christoph Oelckers
10d88ecf1e - fixed: Duke's Freezer projectile needs the CANHURTSHOOTER flag. 2023-05-19 22:59:47 +02:00
Christoph Oelckers
c5ee7cf338 - Duke: add a proper override for Initialize to the player base class 2023-05-19 22:59:47 +02:00
Christoph Oelckers
11ba136df1 - make autosaving happen immediately for other games than Blood only.
Blood does not like it, but for the others it should be ok.
2023-05-19 22:59:47 +02:00
Christoph Oelckers
3f9f1be3a8 fixed Vacation's beach ball. 2023-05-19 22:59:21 +02:00
Christoph Oelckers
513de38723 - pass the spawner to Initialize as an explicit parameter.
Using ownerActor is not robust, for some actors this will have unwanted side effects.
2023-05-19 22:57:26 +02:00
Christoph Oelckers
fc30f76f50 - Duke: fix some weirdness with item spawning. 2023-05-19 22:53:17 +02:00
Christoph Oelckers
22415d0d22 - Duke: for camera textures, set display_mirror to 2, not 1.
This avoids actually mirroring the sprites while otherwise retaining the effects on player visibility. Although a value of 1 was working previously it was merely by happenstance, not by design.
Also remove two redundant local copies of display_mirror in Blood and SW.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
6e060c2e83 Revert "- Tidy up autosaving for all the games."
This reverts commit 10445635cf.

Contrary to what the reverted commit states, it is absolutely essential to have this delay. Duke and Blood initialize a lot of things in their first tick that are necessary before the world is stable to save.
2023-05-19 22:53:17 +02:00
Christoph Oelckers
5d4e6696ca - Blood: clear gHitInfo when starting a level. 2023-05-19 22:53:17 +02:00
Christoph Oelckers
cf349fbd7d - Duke: clear resource ID when setting up the original sounds for World Tour.
This made them unconditionally override the replacements - bad as they are.
2023-05-19 22:53:16 +02:00
Christoph Oelckers
3b0da4c221 - fix '-gamegrp' path 2023-05-19 22:53:16 +02:00
Brian Koropoff
2081cb1d34 Fix build on recent gcc/libstdc++ 2023-05-19 22:53:16 +02:00