Commit graph

18111 commits

Author SHA1 Message Date
Christoph Oelckers
8cc3099bd0 - movrf DBoneComponents into the backend as this needs to be shared. 2022-11-06 10:41:16 +01:00
Christoph Oelckers
0e111ae151 - changed CalculateBones to receive the bone component data directly instead of the owning actor.
Since the backend also gets used by Raze it may not access Doom game data.
2022-11-06 10:27:17 +01:00
Christoph Oelckers
3e405c5215 - fixed quaternion multiply-assign operator.
This must go through a temporary because otherwise it'd overwrite its own factors.
2022-11-06 08:49:26 +01:00
Christoph Oelckers
c55dfbcddd - Backend update from Raze. 2022-11-06 08:49:25 +01:00
Jan Engelhardt
53c2ac79e1 build: unbreak compilation on Linux
gzdoom/src/d_anonstats.cpp:14:10: fatal error: i_mainwindow.h: No such file or directory
   14 | #include "i_mainwindow.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/CMakeFiles/zdoom.dir/build.make:1441: src/CMakeFiles/zdoom.dir/d_anonstats.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:959: src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

gzdoom/src/d_anonstats.cpp:126:17: error: ‘actor’ was not declared in this scope; did you mean ‘AActor’?
  126 |                 actor->         return false; // no host, disable
      |                 ^~~~~
      |                 AActor

$ find . -name "i_mainw*"
./src/common/platform/win32/i_mainwindow.h
./src/common/platform/win32/i_mainwindow.cpp

Fixes: g4.5pre-1327-g6670bc09b
Fixes: g4.9pre-359-g082818405
2022-11-05 19:48:46 -04:00
Christoph Oelckers
eb369b24c3 - fixed FileExists check for -loadgame.
This was done before the current savegame path was known so it always errored out.
2022-11-05 23:25:10 +01:00
Rachael Alexanderson
35f07008cf - create g4.10pre tag 2022-11-05 18:04:50 -04:00
Shiny Metagross
9063bc8ef6 IQM 4.9 Last patch
- Improved performance of YZ axis swap matrix calculations by calculating them with the initial matrix calculations.
- IQMs with no bones will no longer crash
2022-11-05 19:22:19 +01:00
Christoph Oelckers
303e751a81 - fixed definition of "msg" CVAR. 2022-11-05 18:26:54 +01:00
Christoph Oelckers
4e72281fc6 - Better messages on migration requester. 2022-11-05 13:31:22 +01:00
Christoph Oelckers
ff37d710e2 - overhaul of savegame path management.
* use a different subfolder for each IWAD's saves.
* do not allow load and save CCMDs to escape the save folder. Absolute paths and '..' are being blocked now.
* unified savegame path and filename generation in one single function. All ad-hoc file name generation was replaced.
* -loadgame will also use the designated savegame folder now.
2022-11-05 13:28:31 +01:00
Christoph Oelckers
f0601a49a2 - changed save and load commands to work within the 'save' directory.
Escaping via absolute paths and '..' is blocked now.
2022-11-05 13:28:31 +01:00
Christoph Oelckers
33afe45dda - changed Windows config and game data storage to prefer known folders over the program directory.
This matches modern software design standards, if a portable install is desired a config named "gzdoom_portable.ini" needs to be created in the program directory.
This may be an empty file for a first launch.
2022-11-05 13:28:31 +01:00
Marisa the Magician
2bb0dcca13 Fix print color of level load message. 2022-11-05 13:08:51 +01:00
Marisa the Magician
a75a96d993 Level name printout on load shouldn't be sent to the HUD. 2022-11-05 13:08:51 +01:00
Christoph Oelckers
0828184055 - did some cleanup on the statistics code. 2022-11-05 12:11:36 +01:00
Christoph Oelckers
72aa6fe3b8 - did some cleanup on p_mobj.cpp
* deleting some unused code
* turned several class methods into static local functions in cases where they never were used outside this file.
* inlined the dangerous assignment operator in the only place where it was used.
2022-11-05 12:00:43 +01:00
Christoph Oelckers
b8821eb6da - declare C++ class AActor as final.
This is not supposed to be inherited from anymore so let's take this optimization opportunity.
2022-11-05 10:46:25 +01:00
Christoph Oelckers
500e2d6c5a Revert software renderer parts of "- sprite lightlevel cleanup and fixes."
This code had some issues which are not easily fixed, so it's better to just undo it all.
2022-11-05 09:55:25 +01:00
Christoph Oelckers
435e7dddcd - fixed: P_SpawnMapThing may not call playsim code.
There was one special case allowing to let an actor die on spawn, but this could call script code on an incompletely set up map which resulted in crashes.
2022-11-05 09:43:06 +01:00
Christoph Oelckers
ec1525b0c4 - added PARAM_NULLCHECK to the block iterator creation functions. 2022-11-05 09:16:55 +01:00
Christoph Oelckers
9c75a38ec3 - added [[noreturn]] to several functions that always throw exceptions. 2022-11-05 09:09:00 +01:00
Ricardo Luís Vaz Silva
7d81417829 Particle Rolling 2022-11-01 22:30:16 +01:00
Ricardo Luís Vaz Silva
b6202ffc4c Add Textured Particles 2022-11-01 21:25:31 +01:00
crashmahoney
0ca868d93f Fix HUD models not drawing if MODELDEF has been changed with A_ChangeModel 2022-11-01 11:48:16 +01:00
Shiny Metagross
bea6d2434e Update p_actionfunctions.cpp 2022-10-31 11:34:55 +01:00
Shiny Metagross
f7c3615d3b IQM Refactor Milestone
- Removed bone manipulation code
- Implemented an index in calculateBones to optimize multi-armature actors
- Moved the bone storage object's creation to RenderModels so that the armature array can be sized there
2022-10-31 11:34:55 +01:00
Shiny Metagross
7092971331 Bone manipulation updates
- Factored in parent bone rotations to check if a bone needs updating
- Implemented multiply Quaternion functions to TVector4
- Converted Euler rotations in A_ManipulateBone to degrees
2022-10-31 11:34:55 +01:00
Shiny Metagross
28444d4cfd Bone manipulation start
- Bone manipulation is largely finished, but I need to figure out how to multiply quaternions
2022-10-31 11:34:55 +01:00
Shiny Metagross
317e163fcf Update models_iqm.cpp
- Swapped YZ axis of IQM models
- Cleaned up some leftovers
- Now just prints a benign error message if a model has no joint data
2022-10-31 11:34:55 +01:00
Shiny Metagross
3f3cc5bbc3 IQM Refactor start
- Refactored IQM and calculateBones to process TRS at runtime which resolves some of the faulty animations with large rotations. Will also make bone manipulations much easier to do
2022-10-31 11:34:55 +01:00
Marisa the Magician
c36da35e37 Fix inconsistent distance and hit position on traces that skip everything.
As it currently stood, only traces that never found anything in traversal had their distance and final position corrected.
Meanwhile, traces that skipped everything would return the distance and position of the last thing they crossed instead.
This change makes both cases consistent by "filling out" the remainder of the trace line for the latter.
2022-10-30 15:20:01 +01:00
Magnus Norddahl
181eda0a83 Fix canvas textures getting clipped by wrong scissor box 2022-10-28 18:01:59 -04:00
Magnus Norddahl
1a1adc5c29 Fix vulkan backend clearing the canvas textures to undefined contents 2022-10-28 14:53:05 -04:00
Christoph Oelckers
4ce0ef41b5 - made DMover and subclasses non-abstract so they can be inherited from.
This is needed for interpolated custom floor/ceiling movers.
2022-10-26 17:45:02 +02:00
Christoph Oelckers
6eab875ec2 - added option to show hub and episode names on the alt HUD.
Still very much work in progress because few mods have set this up.
CVARs default to off and are not exposed to the menu.
2022-10-26 17:44:51 +02:00
Christoph Oelckers
7cd7630dbd - deleted some obsolete settings from project. 2022-10-26 17:44:51 +02:00
Christoph Oelckers
7e0084f56b - Backend update from Raze. 2022-10-25 07:02:45 +02:00
Christoph Oelckers
2b805e196d - do two-step init of CVARs to ensure that flag and mask vars always find their master CVar. 2022-10-24 19:27:04 +02:00
alexey.lysiuk
da33b0f9c3 - removed obsolete defaults from Cocoa backend
This legacy code from the time of exclusive fullscreen mode began to crash after changes in console variables handling
2022-10-24 09:57:36 +03:00
Christoph Oelckers
671b8696bb - made CVar declarations type safe again. 2022-10-22 09:29:38 +02:00
Christoph Oelckers
453688ccc6 - reworked CVARs to not use a linked list and to be initialized manually.
This solves two problems:

* The linked list is too slow, a map is better. A map cannot be used with statically allocated CVARs because order of initialization is undefined.
* The current CVAR system is an unordered mishmash of static variables and dynamically allocated ones and the means of identification are unsafe. With this everything is allocated on the heap so it can all be handled the same by the cleanup code.
2022-10-21 18:56:43 +02:00
Christoph Oelckers
ef887403cf - marked a few Printf calls in critical error paths as PRINT_NONOTIFY. 2022-10-20 23:55:29 +02:00
Christoph Oelckers
07f08de474 - fixed some warnings. 2022-10-20 22:22:30 +02:00
Christoph Oelckers
7abe718abb - removed some stuff from CMake that no longer applies. 2022-10-20 22:16:34 +02:00
Christoph Oelckers
0ba5803111 - two more CMake checks that are not needed anymore.
Neither of these function is in use so we do not need to check for them.
2022-10-20 21:19:01 +02:00
Christoph Oelckers
9e76faff1f - removed some 32bit only CMake code. 2022-10-20 21:11:18 +02:00
Christoph Oelckers
5a52f61096 - fixed: R_LoadVoxelDef did not fully initialize the voxel descriptor it creates. 2022-10-20 20:23:35 +02:00
Christoph Oelckers
96e98fc4a8 - use field initializers for VoxelOptions 2022-10-20 20:17:14 +02:00
Christoph Oelckers
70df444660 - Backend update from Raze
* fix for serializing vector arrays.
* a few adjustments for asan on Windows.
* NOMUSICCUTOFF flag for movie player.
* a bit of cleanup.
2022-10-20 20:12:06 +02:00