Latest Raze Changes
Latest 50 commits, skipping 8100
Unofficial development builds at DRD Team
06-Jan-2019 (Sunday) at 00:00:52 PST by Christoph Oelckers
- changed light mode handling of the hardware renderer so that it only operates on local copies but doesn't alter the level's setting.
There are several places where a temporary change of light mode is needed, all these made this change in the global level struct. Now the change is only local to the active draw info.
05-Jan-2019 (Saturday) at 23:24:04 PST by Christoph Oelckers
- pass 'level' as a parameter to AABBTree. Also renamed a few things to make the code easier to read.
04-Jan-2019 (Friday) at 14:54:03 PST by Chronos Ouroboros
Implemented compound initializers for arrays.
05-Jan-2019 (Saturday) at 15:46:09 PST by Christoph Oelckers
- actually use the newly added indices.
05-Jan-2019 (Saturday) at 15:41:46 PST by Christoph Oelckers
- store the index of each map item in the struct itself and return that for the Index function.
If we ever want to refactor the global level data these must not reference the 'level' variable. The main parts of the map loader cannot use this information, because it can only be created after running the node builder, so it got its own set of index functions instead.
05-Jan-2019 (Saturday) at 13:46:45 PST by Christoph Oelckers
- starting to reduce references to global level variable.
05-Jan-2019 (Saturday) at 12:59:34 PST by Christoph Oelckers
- moved the global ACS ActiveThinker variable into FLevelLocals.
05-Jan-2019 (Saturday) at 11:48:22 PST by Christoph Oelckers
- changed AFuncDesc initialization to avoid generating initializer functions.
Visual C++ will never statically initialize a class instance where a member field has a default value set, so the DEFINE_ACTION_FUNCTION variants without a direct native call need to be handled differently. The easiest way to do this is to leave out the nullptr default and omit the value in the initializer list. For trailing fields this will always get them nulled.
05-Jan-2019 (Saturday) at 06:41:31 PST by Player701
- Fixed spawn height of projectiles created by SpawnPlayerMissile.
05-Jan-2019 (Saturday) at 09:19:35 PST by Christoph Oelckers
- moved the per-level ACS state into FLevelLocals.
05-Jan-2019 (Saturday) at 07:09:59 PST by Christoph Oelckers
- converted the ACS Stringbuilder macros into inline functions.
05-Jan-2019 (Saturday) at 06:37:14 PST by Christoph Oelckers
- let RunHealth clamping respect the newly added global properties.
05-Jan-2019 (Saturday) at 04:27:32 PST by Christoph Oelckers
-reordered sector_t so that the internal declarations are at the top, followed by the member variables and the methods.
Also tried to sort them by renderer use but that turned out to be without any performance effect, even though the struct is a bit better aligned now and several bytes shorter.
05-Jan-2019 (Saturday) at 01:53:06 PST by Christoph Oelckers
- made the corpse queue a simple array in FLevelLocals.
I have to wonder why it had to use such a complicated implementation that provided no advantages whatsoever. The new code is just 1/5th of the old one's size and much closer to Hexen's original implementation which also was a simple array but with no means to resize the queue.
05-Jan-2019 (Saturday) at 01:04:27 PST by Christoph Oelckers
- moved the global spot state into FLevelLocals.
This way it doesn't even have to be a thinker.
05-Jan-2019 (Saturday) at 00:40:03 PST by Christoph Oelckers
- changed FraggleScript setup so that the MapLoader does not use the global level variable anymore.
This involves passing the level explicitly to many functions. What was done here may seem a bit excessive but at least it covers everything. Most importantly, the global ActiveThinker pointer has been moved into FLevelLocals and is now getting tracked properly by the level without using dangerous assumptions about how the game organizes its data.
04-Jan-2019 (Friday) at 23:59:45 PST by Christoph Oelckers
- use a local pointer to the current level in FraggleScript parser.
Just to test a few things.
04-Jan-2019 (Friday) at 23:52:21 PST by Christoph Oelckers
- bumped savegame version because the recent scriptification of APlayerPawn will render all old savegames unusable.
04-Jan-2019 (Friday) at 23:48:57 PST by Christoph Oelckers
- made forwardmove and sidemove defaults configurable through the gameinfo section.
04-Jan-2019 (Friday) at 09:56:14 PST by Christoph Oelckers
- fixed: Trying to remove the first item in an actor's inventory would lose all owned items.
04-Jan-2019 (Friday) at 07:12:39 PST by Christoph Oelckers
- fixed delete calls on FDynamicLight.
This isn't allocated from the system heap so it cannot be freed by it.
04-Jan-2019 (Friday) at 07:08:45 PST by Christoph Oelckers
- fixed: GetSoundClass must be able to handle non-players.
04-Jan-2019 (Friday) at 06:51:59 PST by Magnus Norddahl
- split shadowmap AABB tree into two parts. one for static and one for dynamic
- upload only the dynamic AABB subtree using glBufferSubData
- change internal raytracing stack limit from 16 to 32
- update shadowmap AABB tree after R_SetupFrame for proper frame interpolation
04-Jan-2019 (Friday) at 04:56:36 PST by Magnus Norddahl
- disable polyobj AABBTree updates
04-Jan-2019 (Friday) at 01:20:18 PST by Christoph Oelckers
- fixed cherry picked commit based on code that didn't get into the maintenance branch.
29-Dec-2018 (Saturday) at 08:50:31 PST by Christoph Oelckers
- fixed the direct native variant of DynamicLight.SetOffset.
03-Jan-2019 (Thursday) at 15:28:51 PST by Christoph Oelckers
- fixed: The player sound lookup would fail if a sound was only available for the last gender in the list.
This is an ancient bug, but it never registered before - only after making 'other' the default gender for nonsense input it became apparent.
03-Dec-2018 (Monday) at 11:19:46 PST by drfrag666
- Default gender for sound classes should be male and not other since it could be undefined in SNDINFO.
03-Jan-2019 (Thursday) at 14:43:15 PST by Christoph Oelckers
- fixed A_Chase default detection.
02-Jan-2019 (Wednesday) at 18:48:47 PST by Magnus Norddahl
- Add missing screenshot sRGB gamma when vid_hdr is active
02-Jan-2019 (Wednesday) at 05:31:40 PST by Major Cooke
- Fixed: NODAMAGE was not accounted for with pain.
02-Jan-2019 (Wednesday) at 06:35:23 PST by alexey.lysiuk
- added missing range checks to level compatibility handler
Conflicts:
src/compatibility.cpp
02-Jan-2019 (Wednesday) at 05:19:03 PST by Rachael Alexanderson
- force CMake to use internal asmjit. I left it in a state so that it can easily be changed back in the future.
01-Jan-2019 (Tuesday) at 01:12:33 PST by Timo Myyrä
fix Unix builds without backtrace functions in their libc
backtrace functions are not present in all libc implementations. Cmake has module to add external libraries into build if needed so use it to fix build on Unix systems without backtrace in libc.
01-Jan-2019 (Tuesday) at 21:35:09 PST by Marrub
Fix A_CustomBulletAttack's spawnofs_xy parameter
The current behaviour offsets to the front of the actor rather than the side, due to an oversight in the code, which oddly is not present in the A_FireBullets equivalent.
01-Jan-2019 (Tuesday) at 12:14:18 PST by Player701
- Since GetParentAmmo is now virtual, BackpackItem and the "give ammo" cheat should call GetParentAmmo to determine base ammo classes.
01-Jan-2019 (Tuesday) at 10:40:57 PST by Christoph Oelckers
- fixed memory leaks in network code.
ReadString allocates a buffer, so saving it in a local variable and then forgetting it will not free the buffer afterward. (This should probably be refactored to use some safer methods to read the string than this old-school method...)
03-Jan-2019 (Thursday) at 23:46:07 PST by Christoph Oelckers
- fixed: The update check for a changed AABBTree was inverted.
03-Jan-2019 (Thursday) at 15:28:51 PST by Christoph Oelckers
- fixed: The player sound lookup would fail if a sound was only available for the last gender in the list.
This is an ancient bug, but it never registered before - only after making 'other' the default gender for nonsense input it became apparent.
03-Dec-2018 (Monday) at 11:19:46 PST by drfrag666
- Default gender for sound classes should be male and not other since it could be undefined in SNDINFO.
03-Jan-2019 (Thursday) at 14:43:15 PST by Christoph Oelckers
- fixed A_Chase default detection.
Conflicts:
src/namedef.h
02-Jan-2019 (Wednesday) at 18:48:47 PST by Magnus Norddahl
- Add missing screenshot sRGB gamma when vid_hdr is active
03-Jan-2019 (Thursday) at 15:28:51 PST by Christoph Oelckers
- fixed: The player sound lookup would fail if a sound was only available for the last gender in the list.
This is an ancient bug, but it never registered before - only after making 'other' the default gender for nonsense input it became apparent.
03-Dec-2018 (Monday) at 11:19:46 PST by drfrag666
- Default gender for sound classes should be male and not other since it could be undefined in SNDINFO.
03-Jan-2019 (Thursday) at 14:43:15 PST by Christoph Oelckers
- fixed A_Chase default detection.
03-Jan-2019 (Thursday) at 14:23:08 PST by Christoph Oelckers
- fixed: G_StartTravel must remove all dynamic lights from the actors it is about to carry over to the next level.
03-Jan-2019 (Thursday) at 13:05:49 PST by Christoph Oelckers
- removed all remaining native parts of APlayerPawn.
Unlike the other classes, the places where variables from this class were accessed were quite scattered so there isn't much scriptified code. Instead, most of these places are now using the script variable access methods. This was the last remaining subclass of AActor, meaning that class Actor can now be opened for user-side extensions.
03-Jan-2019 (Thursday) at 09:01:58 PST by Christoph Oelckers
- exported all native components of APlayerPawn.
Only the class definition itself remains and needs to be taken care of.
03-Jan-2019 (Thursday) at 05:35:17 PST by Christoph Oelckers
- scriptified the remaining PlayerPawn methods.
03-Jan-2019 (Thursday) at 04:58:53 PST by Christoph Oelckers
- took several methods out of the native PlayerPawn implementation, either by scriptification or moving them to other places.