Christoph Oelckers
ad9931081e
-fix some bugs, handle occurences in recently changed code
2022-08-26 19:53:10 +02:00
Christoph Oelckers
e732e2f947
- SW: replaced spr.pos globally (except two functions)
...
# Conflicts:
# source/games/sw/src/_polymost.cpp
2022-08-26 19:53:09 +02:00
Christoph Oelckers
d35b131dd5
- SW: handle pos in _PlaySound
2022-08-26 19:53:09 +02:00
Christoph Oelckers
b74355fcee
- SW: almost the last wraps.
2022-08-26 19:53:09 +02:00
Christoph Oelckers
b49aed6620
- SW: more spr.pos write wraps.
2022-08-26 19:53:09 +02:00
Christoph Oelckers
6a5384f39e
- SW: eighth batch of spr.pos wraps.
2022-08-26 19:53:09 +02:00
Christoph Oelckers
1101a8c9e8
- SW: seventh batch of spr.pos wraps.
2022-08-26 19:53:09 +02:00
Christoph Oelckers
9ace89ad53
- SW: sixth batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
2d91ea29ce
- SW: fifth batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
212b9e8bab
- SW: fourth batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
53ce186e7b
- SW: third batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
8ca4d85069
- SW: second batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
871f0c4ec6
- SW: first batch of spr.pos wraps.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
43bd8acb31
- Exhumed: renamed all spr.pos.
2022-08-26 19:53:08 +02:00
Christoph Oelckers
78720f93b2
- Exhumed: refactored all write accesses to spr.pos
2022-08-26 19:53:07 +02:00
Christoph Oelckers
2e0c62a2c7
- Exhumed: fourth batch of refactoring writes to spr.pos.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
255e12872c
- Exhumed: third batch of refactoring writes to spr.pos.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
24101f8e92
- Exhumed: second batch of refactoring writes to spr.pos.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
4131451a1a
- Exhumed: first batch of refactoring writes to spr.pos.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
75ab0cf018
- handle a few leftovers in Blood.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
204d6018f4
- Duke: renamed all spr.pos
...
This was pure search&replace with no other code edits.
2022-08-26 19:53:07 +02:00
Christoph Oelckers
f629ec1916
- Duke: full pos assignments
2022-08-26 19:53:06 +02:00
Christoph Oelckers
b9568aa372
- missed this in Blood
2022-08-26 19:53:06 +02:00
Christoph Oelckers
0ad571b72d
- Duke: wrapped remaining write access to spr.pos
2022-08-26 19:53:06 +02:00
Christoph Oelckers
f4ed59ccb7
- Duke: ninth batch.
2022-08-26 19:53:06 +02:00
Christoph Oelckers
9bf94cbc1c
- Duke: eighth batch
2022-08-26 19:53:06 +02:00
Christoph Oelckers
f97bae8d23
- Duke: refactored sound API to receive its position by reference.
2022-08-26 19:53:06 +02:00
Christoph Oelckers
b4e18e8255
- Duke: seventh batch of refactoring writes to spr.pos.
2022-08-26 19:53:06 +02:00
Christoph Oelckers
99b9b01d6a
- Duke: sixth batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
5c31568184
- Duke: fifth batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
82095b435f
- Duke: fourth batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
236b1cf4e0
- Duke: third batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
6d21552d6c
- Duke: second batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
378d126114
- Duke: first batch of refactoring writes to spr.pos.
2022-08-26 19:53:05 +02:00
Christoph Oelckers
58f573e578
- Blood: replaced the remaining spr.pos with int_pos() in nnexts
2022-08-26 19:53:05 +02:00
Christoph Oelckers
0c0a33da8e
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:05 +02:00
Christoph Oelckers
f291a943a4
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
0f8bf5f743
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
5296051fef
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
6fe27b4fe5
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
4a3e9f6df1
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
458fc219ed
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
2642018bac
- Blood: replaced the remaining spr.pos with int_pos()
2022-08-26 19:53:04 +02:00
Christoph Oelckers
702a73ff6c
- Blood: handled the remaining write accesses to 'pos'
2022-08-26 19:53:03 +02:00
Christoph Oelckers
04c9422db8
- Blood: don't pass an actor's position directly to ClipMove
2022-08-26 19:53:03 +02:00
Christoph Oelckers
4f391e46ce
- added GetSoundPos variant taking a reference instead of pointer.
2022-08-26 19:53:03 +02:00
Christoph Oelckers
efc832ca5c
- Blood: wrapped most write accesses to spr.pos
2022-08-26 19:53:03 +02:00
Christoph Oelckers
32dd061ab1
- Blood: wrapped write accesses to spr.pos in nnexts.cpp
2022-08-26 19:53:03 +02:00
Christoph Oelckers
70d5ba6abe
- Blood: first part of wrapping spr.pos write access.
2022-08-26 19:53:03 +02:00
Christoph Oelckers
ca1171187f
- hack to fix bad door definition in RR E2L7.
2022-08-25 21:45:03 +02:00
Christoph Oelckers
b196e67f40
ported SHA-1: 82e3f6af9367200853fe2af1b9665dd0c53b4f05 from NBlood
...
* - Change gBusyCount limit to a higher value since xsector limit raised.
gModernMap:
- The return of the event causer (kChannelEventCauser, TXID 50).
- Fix flags for kModernPropertiesChanger type.
- Add new modern type kModernVelocityChanger.
- New features for kMarkerWarpDest type.
- New features for kModernSectorFXChanger type.
- Fix sector condition 58.
- Fix sprite hitscan conditions (35 - 38).
- Add new command (kCmdEventKillFull).
- Misc changes.
# Conflicts:
# source/games/blood/src/actor.cpp
# source/games/blood/src/nnexts.cpp
2022-08-17 20:45:51 +02:00
Christoph Oelckers
0139ac5e4a
ported NBlood commit e3d7ab8b919c230b2b4a825137d607b03b363796
...
- (gModernMap) Add a way to move sprites that are close to outside walls of sector
- (gModernMap) Add loadsave construct
- (gModernMap) Fix movement direction for reverse moving sprites in TranslateSector
2022-08-17 20:45:43 +02:00
Christoph Oelckers
97b7f4b46a
- Exhumed: exported a handful of missed messages to the string table
2022-08-17 20:39:00 +02:00
Christoph Oelckers
4aee3bef47
- Exhumed: fixed coordinate bug with queen
...
# Conflicts:
# source/games/exhumed/src/queen.cpp
2022-08-17 20:38:55 +02:00
Christoph Oelckers
9c107049fd
Revert "- blood: fix velCeil calculation"
...
This reverts commit d85a8b6507
.
This broke player view height on elevators.
2022-08-17 20:19:58 +02:00
Christoph Oelckers
4d423004e9
- unlimited the displayable sprites.
...
Now with Polymost gone this can finally be done properly.
2022-08-07 10:25:15 +02:00
Christoph Oelckers
738c133d05
- animation precaching cleanup.
...
No need to handle animations on the,game side. markTileForPrecache already handles this - now also for oscillating animations.
2022-08-05 23:48:43 +02:00
Christoph Oelckers
4f2170655c
- animateoffs cleanup and consolidation
...
This was rewritten based on specs alone - it still doesn’t look that different due to its simplicity.
2022-08-05 23:32:16 +02:00
Christoph Oelckers
83c0ad55f2
- rewrote nextsectorneighborzptr with a better parameter interface
2022-08-05 18:43:48 +02:00
Christoph Oelckers
ec66f39535
- replaced a few naked chars with better types.
2022-08-05 17:04:46 +02:00
Christoph Oelckers
c2fc7577db
- cleanup of 3D viewport code.
...
Removes all the hackery that Polymost needed and now uses a sane struct to store the info.
2022-08-05 17:04:45 +02:00
Christoph Oelckers
c5ec2af020
- Exhumed: fix position init in BuildfRat
...
This is only the cheat case, which is why this wasn’t detected earlier.
2022-08-05 09:41:25 +02:00
Christoph Oelckers
8d423fdc6f
- toned down the fov change a bit.
...
With real projection math it was a bit extreme.
2022-08-03 19:59:46 +02:00
Christoph Oelckers
e6ca0f4817
- made fov change for RRRA's drug mode work.
2022-08-03 19:41:30 +02:00
Christoph Oelckers
b60181eed5
- variable cleanup.
2022-08-03 15:58:18 +02:00
Christoph Oelckers
291726cc55
- removed the Polymost renderer.
2022-08-03 15:50:27 +02:00
Christoph Oelckers
1df66f4971
- clear all collision flags from generic controller sprites
...
Taken from EDuke32 - there seem to be a few maps which need this.
Also consolidate a bit of setup code between Duke and RR.
2022-07-26 00:13:11 +02:00
Mitchell Richters
4324f923bc
- Call updateTurnHeldAmt()
after doing the turn, not before it. This gives one tic more preamble.
2022-07-23 10:37:32 +10:00
Mitchell Richters
00e12ea031
- Remove some uses of xs_Float.h
functions in game-side code where overflow protection isn't needed.
...
* Went a little bit nuts and just used this everywhere back way back when.
2022-07-23 10:37:32 +10:00
Christoph Oelckers
6c915d7940
- Blood may not abort on a bogus start position.
...
There seem to be ways to override it elsewhere.
The initial position gets used by some code, so it still needs to be validated, though.
2022-07-12 09:52:30 +02:00
Christoph Oelckers
f8aacb3825
- fixed crash in Last Warrior map 9.
...
Really, asserts should not be used to test for errors that can actually happen!
2022-06-06 20:56:50 +02:00
Christoph Oelckers
84173ee09b
- backend update from GZDoom.
...
The main bulk of this is the new start screen code. To make this work in Raze some more work on the startup procedure is needed.
What this does provide is support for the DOS end-of-game text screens in Duke and SW on non-Windows systems.
2022-06-06 11:45:34 +02:00
Mitchell Richters
71fb91940d
Revert "- Simplify PlayerHorizon::settarget()
by adding a dedicated angle setter that resets interpolated value as well."
...
This reverts commit 0416834d9d
.
Revert "- Simplify `PlayerAngle::settarget()` by adding a dedicated angle setter that resets interpolated value as well."
This reverts commit 5a550613f3
.
Revert "- Add bool `lock` to `PlayerHorizon::settarget()` when setting target from the ticker without having to call setters and resetters."
This reverts commit 18541d1ab4
.
Revert "- Add bool `lock` to `PlayerAngle::settarget()` when setting target from the ticker without having to call setters and resetters."
This reverts commit 1ac58dc41c
.
* We need to ensure only the ticker can unlock the player's input if it's telling us to lock the input.
2022-06-06 18:41:45 +10:00
Mitchell Richters
c3981e06cb
- Duke: Remove one save interpolated weapon value that got away from me in 3948ec7a35
.
2022-06-06 11:31:42 +10:00
Mitchell Richters
a29bce9eda
- Duke: Interpolate loogcnt
when drawing onscreen.
2022-06-06 11:24:47 +10:00
Mitchell Richters
3948ec7a35
- Duke: Remove recently added interpolated weapon values from save code and add to player_struct::backupweapon()
instead.
2022-06-06 11:05:11 +10:00
Mitchell Richters
ee6abac699
- Duke: Apply same fistsign
fix from 4ee64df844
to RR code.
2022-06-06 11:04:59 +10:00
Mitchell Richters
b0f517736c
- Duke: Fix fistsign
smoothness.
2022-06-06 10:51:57 +10:00
Mitchell Richters
600776da2e
- Duke: Change a few return types from int to bool in HUD code.
2022-06-06 09:57:51 +10:00
Mitchell Richters
f4b78dc3c7
- Duke: Interpolate access_incs
when drawing onscreen (security card usage).
2022-06-06 09:47:30 +10:00
Mitchell Richters
3b2ef4d18b
- Duke: Interpolate tipincs
when drawing onscreen (tipping the dancers).
2022-06-06 09:40:47 +10:00
Mitchell Richters
d6549d6335
- Duke: Interpolate knee_incs
when drawing onscreen (stomping on shrunken enemies).
2022-06-06 09:19:55 +10:00
Mitchell Richters
ab95a8b890
- Duke: Interpolate fist_incs
when drawing onscreen (hitting the nuke detonator at the end of each level).
2022-06-05 21:00:44 +02:00
Richard Gobeille
55408e6e3c
- Duke3d: smooth movement of recons.
2022-06-05 21:00:36 +02:00
Richard Gobeille
1389413ca1
Duke3d: make actors set to move vertically in CON act as if SFLAG_SMOOTHMOVE was explicitly enabled
...
This smooths out stuff like octabrains and flying liztroops without making them look stupid when they move on the ground.
2022-06-05 22:40:06 +10:00
Christoph Oelckers
bc5c742930
- Duke: fixed some crashes with bad map setups
2022-06-05 09:40:10 +02:00
Christoph Oelckers
0a020e9cc1
- ported secret hack for WT's map 11 from SW Redux.
...
This is hideously awful and definitely needs a better approach. For now it'll do...
2022-06-01 12:22:59 +02:00
Mitchell Richters
1ac58dc41c
- Add bool lock
to PlayerAngle::settarget()
when setting target from the ticker without having to call setters and resetters.
2022-05-30 21:24:02 +10:00
Mitchell Richters
18541d1ab4
- Add bool lock
to PlayerHorizon::settarget()
when setting target from the ticker without having to call setters and resetters.
2022-05-30 21:22:24 +10:00
Mitchell Richters
5a550613f3
- Simplify PlayerAngle::settarget()
by adding a dedicated angle setter that resets interpolated value as well.
2022-05-30 21:22:10 +10:00
Mitchell Richters
0416834d9d
- Simplify PlayerHorizon::settarget()
by adding a dedicated angle setter that resets interpolated value as well.
2022-05-30 21:21:52 +10:00
Mitchell Richters
de88d4dc8b
- SW: Remove some unnecessary ternaries in some inline bools and fix a few return types.
2022-05-30 20:51:53 +10:00
Mitchell Richters
7282e0d8bf
- Remove multiple addadjustment()
/settarget()
overloads in favour of native binangle
/fixedhoriz
versions only.
...
* Simplifies these classes a bit.
* Better shows intent in actual game code.
* Removes unnecessary int to double conversions.
2022-05-30 20:35:41 +10:00
Jordon Moss
5c65a9bab4
Interpolate FIRELASER trails.
2022-05-30 20:21:40 +10:00
Christoph Oelckers
22d6e3f2f6
- SW: added interpolation for sine wave floors.
2022-05-29 23:20:09 +02:00
Christoph Oelckers
d7c15d7153
- SW: fixed shadow positioning.
2022-05-29 23:04:36 +02:00
Mitchell Richters
79465ffc42
- Duke: Add CON support for Duke Nukem 3D 1.1 Shareware.
...
Based on EDuke32's parsing of the same commands.
2022-05-29 10:34:33 +10:00
Mitchell Richters
889baeff14
- Duke: Fix CON parser to detect shareware scripts.
2022-05-29 09:56:56 +10:00
Christoph Oelckers
aab13addb7
-renamed spritetype’s owner field to ‚intowner‘
...
Mainly for easier searching.
Also remove the duplicate ‚detail‘ field.
2022-05-24 00:30:41 +02:00
Christoph Oelckers
af89c25151
- RR: clear jaildoors array on map start.
...
this was leaving stale data behind which could cause nasty crashes.
2022-05-22 09:28:12 +02:00
Christoph Oelckers
84bafe6d02
- manual merge of latest nnext update.
2022-05-11 08:31:58 +02:00
Christoph Oelckers
acb244653c
- several more Blood fixes copied from NBlood
2022-05-06 01:40:27 +02:00
Christoph Oelckers
83499740c3
- blood: GetHighestSprite fix
...
copied from NBlood f984eb8f5cb52653c301e015e34e8471d9ed8b7c
2022-05-06 01:28:21 +02:00
Christoph Oelckers
d85a8b6507
- blood: fix velCeil calculation
...
copied from NBlood 397992b6d5acd9c839db78dafde3a9a718b2503f
2022-05-06 01:26:38 +02:00
Christoph Oelckers
219970f626
- blood: SetupGibWallState fix
...
copied from NBlood f53f40ee79750aaadf1eeb4adc72a2cca034d8a2
2022-05-06 01:25:17 +02:00
Christoph Oelckers
4c139a2609
- blood: add missing case in OperateSprite
...
copied from NBlood 87315860a45dc16942f8e3c36290a856c886d619
2022-05-06 01:23:14 +02:00
Christoph Oelckers
5c9730766d
- dd self check for burning cultist fix
...
Fix issue with spawned kDudeBurningCultist dudes entering water
Copied from NBlood ae80eef10fdd42224c7b6e782f259ba23c1069e7
2022-05-06 01:21:48 +02:00
Christoph Oelckers
aab0a4f129
- renamed a variable
2022-05-06 01:17:18 +02:00
Christoph Oelckers
2576de04b8
- Renamed checkFired6or7->checkLitSprayOrTNT
...
replicates NBlood 285ad39455556ede31a0a94796a324ac43d1e3ef
2022-05-06 01:16:10 +02:00
Christoph Oelckers
67339d18ae
- use symbolic constants
...
Should be given real names, actually ;)
2022-05-06 01:14:58 +02:00
Christoph Oelckers
b26917f848
- Reset thinkTime for kDudeModernCustomDude
...
copied from NBlood commit a32f6d5f47f06ea3e97b66bdb4dcfafd319961ac
2022-05-06 01:11:44 +02:00
Christoph Oelckers
1e356741f9
- Set inittype on actSpawnDude()
...
copied from NBlood commit 3fefdfa85bb86b5e8e951e886a6d13c769666215
2022-05-06 01:10:22 +02:00
Christoph Oelckers
ca423e15f0
- Check enemy type when adding to enemy level count
...
Fixes count issues with respawning enemies
copied from NBlood commit a6bbac4a213f6fb76a7c20b80da6b30c9ffc3064
2022-05-06 01:08:09 +02:00
Christoph Oelckers
dd1178df91
- Initialize viewbob members for playerResetPosture()
...
copied from NBlood commit 1d72f1deba850cf616e443647064fddfa192f543
2022-05-06 00:59:53 +02:00
Christoph Oelckers
84834b0095
-Fix kDudeModernCustomDude may not morphing during specific events
...
copied from NBlood commit 0fbf9a1b2efef997e9ab8ba16e0405acd8d860b0
2022-05-06 00:55:50 +02:00
Christoph Oelckers
98c985de73
- Renamed dword_138BB0 -> gCultTeslaFireChance
...
copied from NBlood commit c253f4af105b0c588d585f199cfc20021f4f6d4e
2022-05-06 00:50:18 +02:00
Christoph Oelckers
b452f53ff2
- stretch HUD flames in widescreen
2022-05-06 00:34:47 +02:00
Christoph Oelckers
c6f799dfff
- shadow positioning improvements from NBlood
2022-05-06 00:22:39 +02:00
Christoph Oelckers
80f9ade43a
- Blood: fix delirium being twice as fast
...
Copied from NBlood commit cc3c2f7f55bd9a865daee1e72442ef7af4f7d779
2022-05-06 00:05:44 +02:00
Christoph Oelckers
377b0fa8c8
- Exhumed: pin death arms to the right side of the screen
2022-05-06 00:03:54 +02:00
Christoph Oelckers
a071479339
- Duke: set game palette before rendering the automap
2022-04-04 00:16:54 +02:00
Christoph Oelckers
26179c56cf
- improved the secret hint management for Blood.
...
This now uses sprite and sector indices directly instead of encoding them into a larger number. Sprite secrets will use a $t prefix instead of $s now.
2022-03-20 12:47:23 +01:00
Christoph Oelckers
3114059145
- fixed sprite indices for map spawned sprites.
2022-03-20 12:08:47 +01:00
Rachael Alexanderson
735740e453
- add level names to title bar (and by proxy, to RPC)
2022-03-18 05:06:58 -04:00
‮
1e1cf9dd9c
Fix tesla cultist prone state
2022-03-08 15:17:12 +01:00
Christoph Oelckers
b6eadbccb5
-Blood: fix crashes when trying to exit from a fatal error during startup.
...
soundEngine can be null here.
2022-02-21 00:26:51 +01:00
Christoph Oelckers
789794539c
- added script exports for Duke's main structures.
2022-02-21 00:19:26 +01:00
Christoph Oelckers
2f55d2a1c7
- Blood: fixed bad marker check in OperatePath
2022-02-20 23:28:20 +01:00
Christoph Oelckers
a1339f014c
- store indices in sectionsPerSector.
2022-02-20 23:11:04 +01:00
Mitchell Richters
009c03f430
- Exhumed: Properly fix interpolation issues when at the end of the level instead of trying to back up everything.
...
Revert "- Exhumed: Don't force the framerate to reduce to ticrate at end of each level, instead interpolate player's position to prevent draw errors."
This reverts commit 57d54a2105
.
Revert "- Exhumed: Extend 57d54a2105
to back up the player's `bobangle` variable as well at the map's end."
This reverts commit 520c03b4f1
.
Revert "- Exhumed: Extend 520c03b4f1
to back up the player's `totalvel` variable as well at the map's end."
This reverts commit 1446486871
.
2022-02-20 20:35:35 +11:00
Christoph Oelckers
892c361449
- avoid pointer arithmetic in feebtag.
2022-02-19 10:11:12 +01:00
Christoph Oelckers
951b93123a
- fixed incorrect symbolic constant for statnum.
2022-02-19 09:50:05 +01:00
Christoph Oelckers
fd6d09273f
- reverted wall pointer fix for FANSPRITE setup.
...
Turns out the bug came from the DOS code, but changing this breaks the fans.
2022-02-18 00:19:57 +01:00
Christoph Oelckers
21fddd6c54
- spriteset management.
2022-02-15 22:34:48 +01:00
Christoph Oelckers
680a87085a
- SW: remap LIGHT_Tics to the otherwise unused spritetype::detail.
...
We should not hijack a coordinate for this due to access rights for scripting and potential value ranme issues. Since this value is never loaded from a map this is safe.
2022-02-15 22:34:03 +01:00
Christoph Oelckers
536c7e0c7b
- SW: floatify slidor.cpp
2022-02-15 22:18:27 +01:00
Christoph Oelckers
71943abed0
- changed math utilities to floating point coordinate system.
2022-02-15 22:18:26 +01:00
Christoph Oelckers
8cc8ebf30c
- preparations for more floatification.
2022-02-15 22:18:26 +01:00
Christoph Oelckers
c18a46b98a
- fixed dofurniture
2022-02-15 22:18:26 +01:00
Christoph Oelckers
63f1a968d6
- do not update the sector for sector effectors moving themselves.
...
They need to stay in their originally assigned sector forever, or really bad things can happen.
If due to some math imprecisions they change their sector, they can screw up the entire map.
2022-02-15 22:18:25 +01:00
Christoph Oelckers
b8ea49ee0e
- SW: bumped two hard limits because there's maps out there that exceed them.
2022-02-15 22:18:25 +01:00
Christoph Oelckers
7374364527
- doFurniture floatified and inside rewritten as a floating point algorithm that works without bit masking.
2022-02-15 22:18:25 +01:00
Christoph Oelckers
4d38f62a14
- cleaned up and floatified the jaildoor code
...
(which should probably be renamed to 'slidedoor' because it gets used for lots of stuff other than actual jail doors...)
2022-02-15 22:18:25 +01:00
Christoph Oelckers
6fbecf2348
- RR: cleaned up and floatified the mine cart code
2022-02-15 22:18:25 +01:00
Christoph Oelckers
13d01bc98b
- lower the value of MAXSO.
...
This was causing overflow issues and resulted in bad int <-> float conversions.
2022-02-15 22:18:25 +01:00
Christoph Oelckers
6e96b1ee81
- floatify SW's sector object rotation.
2022-02-15 22:18:25 +01:00
Christoph Oelckers
a12093af04
- use full precision math for rotating sectors in Blood.
2022-02-15 22:18:24 +01:00
Christoph Oelckers
02d508baef
- renamed floatified wall coordinate to 'pos'.
2022-02-15 22:18:24 +01:00
Christoph Oelckers
cd55658786
- use floats for vertices.
2022-02-15 22:18:23 +01:00
Christoph Oelckers
59e834fdad
- Duke: changed animation storage to be independent of the animated values' types.
2022-02-15 22:18:23 +01:00
Christoph Oelckers
a9cf6feb60
- SW: changed sector object interpolation to be independent of the interpolated values' types.
2022-02-15 22:18:23 +01:00
Christoph Oelckers
bc0e8b4a8d
- use a method for setting wall coordinates when loading a map.
2022-02-15 22:18:23 +01:00
Christoph Oelckers
f44736a5b6
-use an access function for reading wall positions so that we have a non-modifiable value wherever this is possible.
2022-02-15 22:18:23 +01:00
Christoph Oelckers
89ef81da55
- renamed walltype::pos as preparation for refactoring.
...
no functional changes here
2022-02-15 22:18:22 +01:00
carnivoroussociety
1d8a11601d
Fix ceiling panning angle
2022-02-15 16:02:00 +01:00
Christoph Oelckers
ce325e6453
- disabled assert in FAFhitscan.
...
There's maps out there which trigger this - so it should better be silenced, despite being a mapping error.
2022-01-30 08:13:35 +01:00
Christoph Oelckers
12b25df582
- Exhumed: handle unterminated strings in LoadSound without reading beyond their end.
2022-01-29 13:29:59 +01:00
Christoph Oelckers
ca9936a601
- Exhumed: fix issues with uninitialized buffer data in seq_ReadSequence.
2022-01-29 12:25:48 +01:00
Christoph Oelckers
b82198b351
- Blood: fixed bad alignment flags for HUD flames.
2022-01-29 11:38:24 +01:00
Christoph Oelckers
a015958f66
- Duke: had to give the trip bomb yet another flag.
...
Unlike every other actor this has scripted animation logic attached that is not supposed to be used. Weird.
2022-01-29 10:45:36 +01:00
Christoph Oelckers
8487d693f5
- flags for the bolts.
2022-01-27 01:05:12 +01:00
Christoph Oelckers
82898e42a6
- fix the camera.
...
- camera flag added
2022-01-27 01:05:12 +01:00
Christoph Oelckers
8e89bc29e4
- new explosion flags
2022-01-27 01:05:12 +01:00
Christoph Oelckers
fba8f54bb3
- two more flags to get sprite indices out of movecrack.
...
# Conflicts:
# source/games/duke/src/constants.h
2022-01-27 00:48:39 +01:00
Christoph Oelckers
d3f2d50088
- added NOFLOORPAL flag to remove some special cases from animatesprites.
...
# Conflicts:
# source/games/duke/src/constants.h
2022-01-27 00:48:00 +01:00
Christoph Oelckers
c0a40cb7d7
- renamed RR's TRIPBOMBSPRITE to POWDERKEG
2022-01-27 00:46:46 +01:00
Christoph Oelckers
3d0c794224
- two more flags for LASERLINE.
2022-01-27 00:46:24 +01:00
Christoph Oelckers
a776e5c56e
- turned the exclude lists for initspriteforspawn into a flag.
2022-01-27 00:45:55 +01:00
Christoph Oelckers
e4cfc374be
- another trip bomb flag.
2022-01-27 00:42:57 +01:00
Christoph Oelckers
0574da7cd4
- SE24 cleanup using flags.
...
The whole setup is actually very simple, once all the mess got removed from the code.
2022-01-27 00:42:49 +01:00
Christoph Oelckers
eae5ca93d0
- cleanup - flag name and removal of unused code.
2022-01-27 00:42:40 +01:00
Christoph Oelckers
2468debe34
- added a new flag for non-teleporting items.
2022-01-27 00:42:16 +01:00
Christoph Oelckers
fc94fb9651
- replaced checktimetosleep with a flag.
2022-01-27 00:42:07 +01:00
Christoph Oelckers
72510a47fa
- replaced one more actor list check in hitradius with a flag.
2022-01-27 00:41:57 +01:00
Christoph Oelckers
125c3e8004
- flammable flags.
2022-01-27 00:41:33 +01:00
Christoph Oelckers
913b0622b8
- use symbolic constants
2022-01-27 00:35:45 +01:00
Christoph Oelckers
58b718d2a2
- turn all special actor type checks in moveflammable into flags.
...
Also wrap all flag checks in actorflag function
2022-01-27 00:34:21 +01:00
Christoph Oelckers
d9fee902de
- setSpritesetImage export added.
2022-01-26 23:35:53 +01:00
Christoph Oelckers
ef22a78618
- moved all VM exports to their own file.
2022-01-26 23:35:46 +01:00
Christoph Oelckers
5fe5dbd5aa
- added spriteSet property to DukeActor
...
The idea here is to abstract picnum manipulation. Since all this is strongly index based it translates poorly to a system with named textures.
This allows a class to define a set of sprite images it intends to operate on as if it was still a simple indexed resource, even if the underlying storage changes.
2022-01-26 00:36:34 +01:00
Christoph Oelckers
c27976b2e5
- added script exports for Duke's iterators
2022-01-26 00:16:21 +01:00
Christoph Oelckers
5bc8b1c2d3
- Duke: added two more flags to eliminate the references to the crane's tile numbers.
2022-01-25 22:26:53 +01:00
Christoph Oelckers
0e89bffabd
- Exhumed: fixed surace collisions of projectiles.
...
There was some commented out undefined behavior here, we need to properly define this case.
2022-01-25 00:57:59 +01:00
Christoph Oelckers
30adac6e7f
- Exhumed: removed erroneous target assignment in Anubis AI.
2022-01-25 00:25:52 +01:00
Christoph Oelckers
58f535d3a4
- Duke: fixed gamevars not being allocated for map spawned actors.
2022-01-24 23:05:22 +01:00
Christoph Oelckers
a252b206d1
- exported DukeActor's native member variables.
...
This includes renaming two native ones because they shared the same name with members of spritetype.
2022-01-24 00:24:47 +01:00
Christoph Oelckers
f194fb6c90
- added a name to tilenum function so that we can define picnums by name in scripted actors.
2022-01-24 00:24:47 +01:00
Christoph Oelckers
04a380ce14
- added script exports for DCoreActor's member variables.
2022-01-24 00:24:46 +01:00
Christoph Oelckers
0398ba4ff0
- added all parts needed to implement the actor property parser.
...
Not hooked up yet with the rest of the code, this just adds the needed files in compilable form.
2022-01-23 13:03:39 +01:00
Christoph Oelckers
bd22aeb0d9
- SW: use correct sky scale in Polymost.
2022-01-23 12:44:22 +01:00
Christoph Oelckers
e64a6f7e30
- Blood: Fixed choking hand with new renderer.
...
This gets directed to the weapon 3D drawer, but for that it was processed too late.
2022-01-23 12:23:55 +01:00
Christoph Oelckers
a23124a201
- Exhumed: fixed check for bad ending cutscene.
2022-01-22 23:11:34 +01:00
Christoph Oelckers
c11000e4cd
- Blood: do color highlighting for trigger messages, like NBlood does.
2022-01-22 09:38:01 +01:00
Mitchell Richters
1446486871
- Exhumed: Extend 520c03b4f1
to back up the player's totalvel
variable as well at the map's end.
2022-01-19 23:00:04 +11:00
Mitchell Richters
f91f3eacca
- Blood: Fix off-by-one error in trProcessBusy()
loop.
...
* Originated from 0beb91e17e
.
2022-01-16 23:44:53 +11:00
Christoph Oelckers
82be7db269
- give the tree sky of DukeDC an offset of -40 to better hide its poor design in the new renderer.
2022-01-16 12:12:44 +01:00
Christoph Oelckers
3aff12cf4c
- sky management rework.
2022-01-16 12:12:43 +01:00
Christoph Oelckers
0beb91e17e
- Blood: don't use references to address gBusy.
...
This will fail if the callback in trProcessBusy adds new entries to the array which would invalidate the reference.
2022-01-16 12:02:38 +01:00
Mitchell Richters
520c03b4f1
- Exhumed: Extend 57d54a2105
to back up the player's bobangle
variable as well at the map's end.
2022-01-16 08:32:22 +11:00
Christoph Oelckers
40cee808a1
- Exhumed: use proper distance calculations when spawning weapon flashes.
...
The cheap distance approximation here tended to fail on longer walls.
2022-01-15 18:33:37 +01:00
Christoph Oelckers
b1d3e8ee54
- Exhumed: Avoid playing the same pickup sound while another copy of it is already active.
...
The pickup code here is not robust enough to play the sound only once per pickup.
2022-01-15 16:11:42 +01:00
Christoph Oelckers
4ee64df844
- uncouple the fist animation for being shrunk from the display frame rate.
2022-01-15 15:48:50 +01:00
Christoph Oelckers
26d89e932a
- Duke: add back a limit to the teleporter sound.
...
Due to broken game logic it is possible for this to play in very large quantities.
2022-01-15 11:56:38 +01:00
Christoph Oelckers
c5b382907d
- SW: fixed velocity issue in InitEnemyFireball.
...
The value of the first shot was retrieved too early.
2022-01-15 10:36:55 +01:00
Christoph Oelckers
24a67e194d
- Duke: reverted sector storage to temp_data[0] for the subway.
...
This was the ultimate revenge of the Spaghetti code: Somewhere in there, something needs this value in temp_data[0], but I cannot find where this is...
2022-01-13 22:34:43 +01:00
Christoph Oelckers
ecb2732629
- little bit of cleanup on Duke's bullet hole code.
2022-01-13 20:53:36 +01:00
Mitchell Richters
79f47ca2f9
- Duke: Add some comments to 40ffb23b44
so it can be better fixed in the future when multiplayer is going.
2022-01-13 22:42:48 +11:00
Christoph Oelckers
fcf04a7df1
- delete unused variable.
2022-01-13 12:27:40 +01:00
Mitchell Richters
40ffb23b44
- Duke: Directly check the backend input code's crouch_toggle
to always remain crouched after pausing, even if the first tic doesn't have input.
...
* This is needed because unlike the other games, Duke doesn't have any decent state manager for the player like Blood and SW do.
2022-01-13 21:54:56 +11:00
Christoph Oelckers
85cce1128a
- do proper handling of the 'no shadow' case for Duke's bad guys.
...
Using a flag like RedNukem instead of hacking dispicnum, which occasionally does reach the renderer and causes problems.
2022-01-13 00:42:34 +01:00
Christoph Oelckers
a13612ab9b
- Blood: allow bad start spots to pass for modern maps.
...
These can have alternative start spot definitions.
The error will still be printed, though.
2022-01-13 00:21:15 +01:00
Mitchell Richters
f8ffaa4be9
- Blood: Tidy up some missed kWeap
constants.
2022-01-12 22:22:54 +11:00
Christoph Oelckers
ddcee4ecbf
- split up g_visibility into two variables.
...
This is preparation for experimenting with the weapon flashes that can be quite annoying with how they brighten distant parts of the level far more than nearby parts.
2022-01-11 00:12:32 +01:00
Christoph Oelckers
da5a92852f
- cleanup of Duke's actor flags.
2022-01-11 00:12:32 +01:00
Christoph Oelckers
e892de21ec
- preparations for unlimited tsprites.
...
Right now it is a no-op because Polymost cannot deal with this properly.
2022-01-11 00:12:32 +01:00
Christoph Oelckers
3c54495c58
- Duke: hardened the sound controller a bit by flagging the callsound call from doanimations as most likely terminating.
...
This allows avoiding unnecessary sound repeats on some doors.
A real fix is not possible with the broken setup here - the sound controller can only implicitly toggle its state so it is likely that improper use is frequent.
2022-01-09 23:03:11 +01:00
Christoph Oelckers
0f925d4cc0
- Duke: fixed monster sight sounds not being played.
2022-01-09 21:25:02 +01:00
Christoph Oelckers
e1661e0de1
- Duke: disabled sound limiting.
...
This does not work with how the game uses sounds. Unlike Doom the sound engine in DOS Duke has no channel limit so any sound can play as many times as the game deems fit.
2022-01-09 15:18:35 +01:00
Christoph Oelckers
694f44774f
- Duke: added missing z-offset in hits.
...
Among other things, this made throwing pipebombs on slopes misbehave.
2022-01-09 14:43:59 +01:00
Christoph Oelckers
a50430bf68
- Duke: fixed SE02's handling of sloping sectors.
2022-01-09 13:38:10 +01:00
Christoph Oelckers
3c2c53c7e1
- fixed NAM's sniper rifle.
...
This was using one of WW2GI's apl* variables, but shouldn't.
2022-01-08 21:42:44 +01:00
Christoph Oelckers
415dc5246d
- fixed sprting of non-translucent sprites.
2022-01-08 21:18:18 +01:00
Christoph Oelckers
70087ebc12
- fixed: The new renderer still called the Polymost screen finish function.
...
This led to a second, redundant postprocessing step with incorrect matrix values.
It now calls screen->Update() directly without the unneeded stuff, but this required a bit of reordering in the game code to ensure that the renderer receives the weapon data to display.
2022-01-08 13:50:47 +01:00
Christoph Oelckers
5759bcc1a6
- Duke/RR: removed all in-game assignments to g_visibility.
...
These are remnants of the software renderer which used it to calculate light fading but with the current hardware renderers none of these ever reach the renderer, the values are never used.
2022-01-08 13:49:06 +01:00
Mitchell Richters
771a84338e
- Fix typo in MOVEFTA flag (was NOVEFTA
). Thanks Gaerzi!
2022-01-08 22:30:34 +11:00
Christoph Oelckers
a3162f6ccf
- renamed testnewrenderer CVAR.
2022-01-07 12:49:41 +01:00
Mitchell Richters
e5bcb8ee61
- Duke: Repair issues with handle_se32()
following lost Sgn()
call.
...
* Originated from "- first batch of routing all write access to sectortype::ceilingz and floorz through a function interface.".
2022-01-05 22:45:33 +11:00
Christoph Oelckers
e1d32bdbf5
- removed the error messages in GetOverlapSector(2).
...
These can actually be triggered in legitimate scenarios by hitscans so just returning 0 looks like the best way of handling it.
2022-01-05 09:23:30 +01:00
Mitchell Richters
eca3c29261
- Duke: Fix nullptr issue in RR's processinput_r()
.
2022-01-05 19:22:21 +11:00
Christoph Oelckers
5ff7d45f7f
- Duke/RR: better handling for one random kill scenario in the player movement code.
...
Using the same appoach as EDuke32 - instead of outright killing the player it will first reset its position and retry the pushmove check.
2022-01-05 09:20:54 +01:00
Mitchell Richters
9de4b4753a
- Duke: Add nullptr check to haskey()
.
2022-01-05 18:05:15 +11:00
Mitchell Richters
b422b049c1
- Duke: Fix bad interp check in RR's dofurniture()
.
2022-01-05 10:03:33 +11:00
Mitchell Richters
874f9952f8
- Duke: Fix bad clipmove result check in movesprite_ex_r()
.
2022-01-05 09:50:22 +11:00
Christoph Oelckers
47b9de1fb4
- RR: interpolate moving furniture.
2022-01-04 17:18:25 +01:00
Christoph Oelckers
33aee54113
- RR: interpolate jaildoors and minecarts.
2022-01-04 17:18:25 +01:00
Christoph Oelckers
45b88277a3
- Platoon Leader: Set explicit sky offset for the third episode's orange sky.
2022-01-04 17:17:58 +01:00
Christoph Oelckers
8dedcf94d3
- Duke: removed special precaching for sky texture
...
Due to precomposition these single tiles will never be rendered anyway.
2022-01-04 17:17:58 +01:00
Mitchell Richters
6414a4ce78
- Duke: Add nullptr check to footprints()
code.
2022-01-04 22:44:11 +11:00
Christoph Oelckers
468aea78ef
- SW: fixed wrong actor being checked in ContinueHitscan.
2022-01-04 12:42:46 +01:00
Christoph Oelckers
2f66377511
- Exhumed: use the loop flag when starting music.
2022-01-04 12:42:45 +01:00
Christoph Oelckers
9c07f05f0f
- Exhumed: clear all pointers in the player struct when starting a level.
2022-01-04 12:42:45 +01:00
Christoph Oelckers
78f02fbd55
- avoid larger time jumps in Ramses text scroll.
2022-01-04 12:42:45 +01:00
Christoph Oelckers
8267f327e3
- Exhumed: hide all screen overlays when Ramses is talking.
2022-01-04 12:42:45 +01:00
Christoph Oelckers
894f9a6b0a
- Exhumed: fix Ramses text overlay display.
2022-01-04 12:42:44 +01:00
Mitchell Richters
57d54a2105
- Exhumed: Don't force the framerate to reduce to ticrate at end of each level, instead interpolate player's position to prevent draw errors.
2022-01-04 21:43:08 +11:00
Christoph Oelckers
226807db34
- RR: fixed wakeup check logic in movefta.
...
Essentially the feature must be on for all RR actors and off for all Duke actors.
RR's original logic here to exclude animals was broken and non-functional.
2022-01-04 09:39:55 +01:00
Mitchell Richters
783dd98641
- Duke: Fix nullptr check for Duke and RR that was causing a crash in a glitched spot in RR's E1L1.
2022-01-04 14:00:18 +11:00
Christoph Oelckers
b683c31ef7
- fixed bad GC setup for Blood's collision struct.
...
This is a union so the pointers must also be conditionally marked based on the union's state.
2022-01-03 16:18:07 +01:00
Christoph Oelckers
9f83fd3575
- SW: added a double deletion guard to KillBreakSprite.
...
This code can easily run into the case where SpawnShrap kills the actor but then further operations are performed, including deleting it again.
2022-01-03 12:28:25 +01:00
Christoph Oelckers
7915fb7ef1
- allow using "Mario" cheat with a space between name and number.
2022-01-03 07:13:34 +01:00
Mitchell Richters
aee4388a03
- Blood: Add nullptr check to OperatePath()
to fix crash in Eviction's sgarage.map.
2022-01-03 10:19:08 +11:00
Christoph Oelckers
00ffc8b6a2
- Blood: fixed vertical wall texture interpolations.
2022-01-02 17:53:07 +01:00
Christoph Oelckers
e302c45a0b
Revert "- added two FAFcansee variants that take shorter parameter lists for clearer code."
...
This reverts commit 29da39dda0
.
Something in here was wrong, so back to the start with it.
The positive effect was too small anyway.
2022-01-02 17:35:12 +01:00
Christoph Oelckers
7205319853
- Blood: clean up some variable mess in actFireVector
2022-01-02 17:23:01 +01:00
Christoph Oelckers
1d091ae395
- merged both movefta functions, using the already defined flags instead of explicit picnum checks.
2022-01-02 15:59:24 +01:00
Christoph Oelckers
a6845f55e4
- comments
2022-01-02 15:59:24 +01:00
Mitchell Richters
84e9356bf2
Revert "- Blood: Force synchronised input while a revolving door is busy/in-use."
...
This reverts commit 232dd5e07a
. The true fix was in "- Blood: fixed interpolation of sprites on rotating sectors.".
2022-01-03 01:50:17 +11:00
Christoph Oelckers
2ac83b733c
- SW: clear some pointers before killing actors in TerminateLevel.
...
KillActor is an in-game function which may produce undefined behavior if being run on a partially deinitialized level.
All actor pointers it may operate upon should be cleared before taking down the actors.cpp
2022-01-02 15:06:57 +01:00
Christoph Oelckers
3b833029b0
- Blood: fixed interpolation of sprites on rotating sectors.
2022-01-02 13:00:55 +01:00
Christoph Oelckers
e42fc5e743
- use the newly added flag to consolidate ifhitsector.
2022-01-02 12:27:36 +01:00
Christoph Oelckers
cc6d52013d
- made Duke actor flags type safe and added a few new definitions that are not active yet.
2022-01-02 10:17:44 +01:00
Christoph Oelckers
8c9b810b16
Revert "- removed Interp_Sprite_Z."
...
Sadly, SW's sprite interpolation is too screwed up to do a better fix on short notice.
It's the same with interpolating sprites attached to SOP's, it is only needed because generally interpolating sprites in SW is problematic.
2022-01-01 19:50:30 +01:00
Christoph Oelckers
0bfb4abc1c
- undid some leftover placeholder code in FAFhitscan.
2022-01-01 18:39:59 +01:00
Christoph Oelckers
d215ae0c63
- fixed bad target check for Ripper2's jump attack
2022-01-01 18:25:18 +01:00
Christoph Oelckers
1294f10cd7
- SW: fixed negated FAFcansee call in explosion code.
2022-01-01 17:14:49 +01:00
Christoph Oelckers
27eae52228
- fixed incorrect argument in FAFcansee call.
2022-01-01 17:11:15 +01:00
Christoph Oelckers
3499049976
- Blood: save basepoint for all actors, not just for those with an XSPRITE.
2022-01-01 15:52:05 +01:00
Mitchell Richters
45057ff8a0
- SW: Fix all GCC warning: suggest parentheses around assignment used as truth value [-Wparentheses]
warnings.
...
Regex to match such conditions: `while (\([\w]+\s?=\s?.+\.Next\(\)\))`.
2022-01-01 20:49:31 +11:00
Christoph Oelckers
17de3a08e8
- deal with bad start sectors.
...
The engine will now try to find a proper sector in the map loader if there's a mismatch.
2022-01-01 10:39:59 +01:00
Christoph Oelckers
8575447e37
- Blood: fixed bad parameter in aiPatrolMove
2022-01-01 09:56:45 +01:00
Christoph Oelckers
3e21db19be
- Blood: fixed Life Leech no longer gettable after having fired.
...
This was the direct result of dumb use of two pointers to different parts of the same objects.
2022-01-01 09:31:57 +01:00
Mitchell Richters
dcd006d34b
- Blood: Add missing actorHit
nullptr test in actImpactMissile()
.
2022-01-01 11:38:43 +11:00
Christoph Oelckers
87cace6e6c
- Blood: fixed wrong actor being used for key checks
2022-01-01 00:58:35 +01:00
Mitchell Richters
0375dfdf83
- SW: Replace SECTOR_OBJECT
zmid
with pmid.Z
calls and eliminate pmid
union.
2022-01-01 09:34:30 +11:00
Mitchell Richters
9145895b47
- SW: Replace SECTOR_OBJECT
ymid
with pmid.Y
calls.
2022-01-01 09:33:30 +11:00
Mitchell Richters
5e2bbb12b5
- SW: Replace SECTOR_OBJECT
xmid
with pmid.X
calls.
2022-01-01 09:32:40 +11:00
Mitchell Richters
1c0ba71c69
- SW: Eliminated ANIMATORp
typedef.
2022-01-01 09:09:41 +11:00
Mitchell Richters
1d51903a9e
- SW: Eliminated Voc3D_Flags
typedef.
2022-01-01 08:36:56 +11:00
Christoph Oelckers
cd599a7a15
- Duke: abstracted all checks for TILE_APLAYER with an isPlayer method.
2021-12-31 18:51:43 +01:00
Christoph Oelckers
84ca96c52c
eliminated STATEp
2021-12-31 16:00:14 +01:00
Christoph Oelckers
d1be430fbf
- eliminated PLAYERp
2021-12-31 15:59:11 +01:00
Christoph Oelckers
69b5d502e2
- renamed PLAYERstruct.
2021-12-31 15:57:55 +01:00
Christoph Oelckers
392397c2b0
- replaced SECTOR_OBJECTp
2021-12-31 15:50:44 +01:00
Christoph Oelckers
74593feab1
- replaced PANEL_SPRITEp
2021-12-31 15:49:07 +01:00
Christoph Oelckers
699bf9c4f5
- anim typedef eliminated.
2021-12-31 15:47:10 +01:00
Christoph Oelckers
8fb769649b
- eliminated sectortype aliases.
2021-12-31 15:43:47 +01:00
Christoph Oelckers
98492aae54
- eliminated walltype aliases.
2021-12-31 15:41:39 +01:00
Christoph Oelckers
72962cc098
- the last batch of small scale typedefs eliminated.
2021-12-31 15:40:29 +01:00
Christoph Oelckers
87d2b3274b
- cleaned out most of the less frequent typedef types in SW.
2021-12-31 15:27:18 +01:00
Christoph Oelckers
10187e892f
- handle track typedefs.
2021-12-31 15:13:05 +01:00
Christoph Oelckers
f43f63adec
- all typedefs in jsector.h and inv.h plus a bit of cleanup and #define removal.
2021-12-31 15:10:37 +01:00
Christoph Oelckers
6b50344417
- eliminated PANEL_SPRITEp
2021-12-31 15:03:12 +01:00
Christoph Oelckers
994a575435
- panel.h cleanup.
2021-12-31 13:49:34 +01:00
Christoph Oelckers
12c63d2337
- eliminated a few more typedefs,
2021-12-31 13:37:57 +01:00
Christoph Oelckers
89ab00fe99
- eliminated typedefs in sound code.cc.obj
2021-12-31 13:31:13 +01:00
Christoph Oelckers
085eb8a36e
- eliminated SHRAP typedefs.
2021-12-31 13:26:07 +01:00
Christoph Oelckers
271af39a59
- consolidated MISSILE_PLACEMENT definitions.
2021-12-31 13:20:56 +01:00
Christoph Oelckers
90ad4b8ef1
- eliminated typedefs for DECISION and BREAK_INFO.
2021-12-31 13:16:38 +01:00
Christoph Oelckers
3eb640658f
- don't typedef MATTGAMEVAR
2021-12-31 13:12:20 +01:00
Christoph Oelckers
0cba0e19b5
- SW: fixed some pointer mixup in UpdatePlayerUnderSprite
2021-12-30 23:39:54 +01:00
Christoph Oelckers
61d4d06783
- RRRA: fixed typo in portal setup.
2021-12-30 22:16:39 +01:00
Christoph Oelckers
a9b162b8e9
- moved the tsprite flags from cstat2 to clipdist which was already holding other ones.
...
cstat2 should only hold flags for game-side sprites.
2021-12-30 19:00:35 +01:00
Christoph Oelckers
552668418a
- moved opos and oang to DCoreActor.
2021-12-30 18:21:02 +01:00
Christoph Oelckers
2bb7cecf27
- eliminated spritetype::clear.
...
Most uses were bad anyway, and the legitimate ones are just clearing the object.
2021-12-30 17:55:17 +01:00
Christoph Oelckers
7f62df517d
- moved all interpolate* methods from spritetypebase to DCoreActor.
...
The places where it was used on tsprites were redone to use the actor's base coordinate, which at the point of the operation would always be the same.
2021-12-30 17:32:31 +01:00
Christoph Oelckers
c10fb1278a
- moved the backup... methods to DCoreActor.
2021-12-30 17:10:08 +01:00
Christoph Oelckers
6c381d4392
- removed sector() method from low level sprite type.
2021-12-30 16:58:48 +01:00
Christoph Oelckers
5498699faf
- use DCoreActor::sector() wherever possible.
2021-12-30 16:51:56 +01:00
Christoph Oelckers
88e4bb9f79
- moved sectno method to DCoreActor.
2021-12-30 16:39:43 +01:00
Christoph Oelckers
f0b7fe4add
- use setsector from DCoreActor.
...
Also did a bit of cleanup
2021-12-30 16:36:04 +01:00
Christoph Oelckers
af6ca40e3d
- use DCoreActor::insector instead of spritetype::insector.
2021-12-30 16:24:51 +01:00
Christoph Oelckers
4bc32e2777
- use actors in the sloped sprite utilities.
2021-12-30 16:11:14 +01:00
Mitchell Richters
dc50ad154e
- SW: Replace PANEL_SPRITEstruct
yorig
with bobpos.Y
calls.
2021-12-31 00:36:13 +11:00
Mitchell Richters
d8aab1ecea
- SW: Replace PANEL_SPRITEstruct
xorig
with bobpos.X
calls.
2021-12-31 00:34:46 +11:00
Mitchell Richters
36b549b7f1
- SW: Replace PANEL_SPRITEstruct
oy
with opos.Y
calls.
2021-12-31 00:34:03 +11:00
Mitchell Richters
81b74c2cdf
- SW: Replace PANEL_SPRITEstruct
ox
with opos.X
calls.
2021-12-31 00:32:55 +11:00
Mitchell Richters
145028bc16
- SW: Replace PANEL_SPRITEstruct
y
with pos.Y
calls.
2021-12-31 00:32:00 +11:00
Mitchell Richters
defdb23533
- SW: Replace PANEL_SPRITEstruct
x
with pos.X
calls.
2021-12-31 00:30:42 +11:00
Mitchell Richters
ab6b9fd083
- SW: Replace USER
zchange
with change.Z
calls.
2021-12-31 00:23:30 +11:00
Mitchell Richters
50cb85e389
- SW: Replace USER
ychange
with change.Y
calls.
2021-12-31 00:22:48 +11:00
Mitchell Richters
ad0ea3f2f1
- SW: Replace USER
xchange
with change.X
calls.
2021-12-31 00:22:42 +11:00
Mitchell Richters
424b9c5f34
- SW: Replace REMOTE_CONTROL
pos*
variables with a vector.
2021-12-31 00:19:34 +11:00
Mitchell Richters
287351e678
- SW: Replace REMOTE_CONTROL
*vect
variables with vectors.
2021-12-31 00:19:34 +11:00
Mitchell Richters
5d10b32301
- SW: Replace PLAYERstruct
oldpos*
variables with a vector.
2021-12-31 00:19:33 +11:00
Mitchell Richters
e4d19a0bbe
- SW: Replace PLAYERstruct
slide_yvect
with slide_vect.Y
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
8c1c5f3d55
- SW: Replace PLAYERstruct
slide_xvect
with slide_vect.X
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
8c99053ebd
- SW: Replace PLAYERstruct
oyvect
with ovect.Y
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
75cc539c58
- SW: Replace PLAYERstruct
oxvect
with ovect.X
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
5515830e2b
- SW: Replace PLAYERstruct
yvect
with vect.Y
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
f2497d7d08
- SW: Replace PLAYERstruct
xvect
with vect.X
calls.
2021-12-31 00:19:33 +11:00
Mitchell Richters
03da70b3b9
- SW: Replace PLAYERstruct
si*
variables with a vector.
2021-12-31 00:19:33 +11:00
Mitchell Richters
6e130d026e
- SW: Replace PLAYERstruct
lv_*
variables with a vector.
2021-12-31 00:19:33 +11:00
Mitchell Richters
8f468607ff
- Exhumed: Replace Player
velocity and damage variables with vectors.
2021-12-31 00:19:33 +11:00
Mitchell Richters
225a2a39da
- Duke: Replace player_struct
noise_*
variables with a vector.
2021-12-31 00:19:33 +11:00
Mitchell Richters
1e90b0bbbe
- Duke: Replace player_struct
bobposy
with bobpos.Y
calls.
2021-12-30 23:00:44 +11:00
Mitchell Richters
034e1fd175
- Duke: Replace player_struct
bobposx
with bobpos.X
calls.
2021-12-30 23:00:44 +11:00
Mitchell Richters
f9b728d188
- Duke: Replace DDukeActor
lastvy
with ovel.Y
calls.
2021-12-30 23:00:44 +11:00
Mitchell Richters
8932b2fc1d
- Duke: Replace DDukeActor
lastvx
with ovel.X
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
0bc26e78ba
- Duke: Replace player_struct
loogiey[64]
with loogie[64].Y
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
e196a4daa3
- Duke: Replace player_struct
loogiex[64]
with loogie[64].X
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
2d6bc783c4
- Duke: Replace player_struct
exity
with exit.Y
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
8d2595ea84
- Duke: Replace player_struct
exitx
with exit.X
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
19a9fc462f
- Duke: Replace CraneDef
poley
with pole.Y
calls.
2021-12-30 23:00:43 +11:00
Mitchell Richters
034727d902
- Duke: Replace CraneDef
polex
with pole.X
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
4b1fbf13df
- Duke: Replace CraneDef
z
with pos.Z
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
3dfcbafd93
- Duke: Replace CraneDef
y
with pos.Y
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
8006d8e394
- Duke: Replace CraneDef
x
with pos.X
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
788be33c1a
- Duke: Replace player_orig
oz
with opos.Z
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
f5dd8ba3b9
- Duke: Replace player_orig
oy
with opos.Y
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
c5d94f9a8e
- Duke: Replace player_orig
ox
with opos.X
calls.
2021-12-30 23:00:42 +11:00
Mitchell Richters
8a94022f5d
- Duke: - Duke: Replace FireProj
position and velocity variables with vectors.
2021-12-30 23:00:42 +11:00
Mitchell Richters
fd8c7bfa52
- Duke: Replace player_struct
poszv
with vel.Z
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
b2023efb44
- Duke: Replace player_struct
posyv
with vel.Y
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
31ed257f39
- Duke: Replace player_struct
posxv
with vel.X
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
10a167ab42
- Blood: Replace XWALL
panYVel
with panVel.Y
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
a325dfec62
- Blood: Replace XWALL
panXVel
with panVel.X
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
f091a72db1
- Blood: Replace XSPRITE
targetz
with TargetPos.Z
calls.
2021-12-30 23:00:41 +11:00
Mitchell Richters
431749cf6e
- Blood: Replace XSPRITE
targety
with TargetPos.Y
calls.
2021-12-30 23:00:40 +11:00
Mitchell Richters
1d29716e6b
- Blood: Replace XSPRITE
targetx
with TargetPos.X
calls.
2021-12-30 23:00:40 +11:00
Mitchell Richters
22275a16f6
- Blood: Replace DBloodActor
zvel
with vel.Z
calls.
2021-12-30 23:00:40 +11:00
Mitchell Richters
ce08fd4304
- Blood: Replace DBloodActor
yvel
with vel.Y
calls.
2021-12-30 23:00:40 +11:00
Mitchell Richters
a9e66ec553
- Blood: Replace DBloodActor
xvel
with vel.X
calls.
2021-12-30 23:00:39 +11:00
Christoph Oelckers
9158796284
- partial replacement of tspriteptr_t.
2021-12-30 11:48:10 +01:00
Mitchell Richters
5badbd7884
- Blood: Replace game-side scale()
with backend Scale()
.
2021-12-30 20:46:38 +11:00
Mitchell Richters
4db3e91f24
- Blood: Remove some unused templated functions in common_game.h
.
2021-12-30 20:46:38 +11:00
Mitchell Richters
13639a09b7
- SW: Remove unused PLAYERstruct
variable turn180_target
that was deprecated with 7bf1cacc7f
.
2021-12-30 20:46:36 +11:00
Mitchell Richters
cf68018909
- SW: Replace PLAYERstruct
RevolveY
with Revolve.Y
calls.
2021-12-30 20:41:27 +11:00
Mitchell Richters
acc11f34bf
- SW: Replace PLAYERstruct
RevolveX
with Revolve.X
calls.
2021-12-30 20:41:27 +11:00
Mitchell Richters
05de974080
- SW: Replace PLAYERstruct
ly
with LadderPosition.Y
calls.
2021-12-30 20:41:27 +11:00
Mitchell Richters
a18fc5b66f
- SW: Replace PLAYERstruct
lx
with LadderPosition.X
calls.
2021-12-30 20:41:26 +11:00
Mitchell Richters
9c1e54a148
- SW: Replace USER
sz
with pos.Z
calls.
2021-12-30 20:40:29 +11:00
Mitchell Richters
0d70d26625
- SW: Replace USER
sy
with pos.Y
calls.
2021-12-30 20:31:09 +11:00
Mitchell Richters
fcf18c8c63
- SW: Replace USER
sx
with pos.X
calls.
2021-12-30 20:31:09 +11:00
Mitchell Richters
620f0fa7b8
- SW: Use correct function name in GetOverlapSector2()
I_Error()
call.
2021-12-30 20:31:09 +11:00
Mitchell Richters
9bbb54fe2e
- Replace every line that just contains spaces or tabs with an empty line feed in all files except 3rd party libraries.
2021-12-30 20:30:21 +11:00
Mitchell Richters
1b077251e3
- SW: Use BIT()
inline in a few places that were changed in "- SW: Replace the last few remaining TEST()
macro uses and remove from mytypes.h
."
...
Originally, `BIT()` was going to be dropped in a subsequent commit but we've elected not to.
2021-12-30 20:14:01 +11:00
Christoph Oelckers
f9cea2b1db
- turning one check in hitradius into a flag.
2021-12-30 09:58:48 +01:00
Christoph Oelckers
5061d5b37c
- tabified the rest of Blood's code.
2021-12-30 09:58:48 +01:00
Christoph Oelckers
b7d095b943
- tabified more Blood files.
2021-12-30 09:58:48 +01:00
Christoph Oelckers
c25641c631
- db.cpp cleanup.
...
There were too many pointless global variables here and quite a bit of code doing nothing useful.
2021-12-30 09:58:47 +01:00
Christoph Oelckers
1d28e166c6
- fixed nnexts comparison with statcount.
...
This value is no longer maintained, so we got to count when the value is needed.
2021-12-30 09:58:47 +01:00
Christoph Oelckers
69283bfb0c
- tabified several Blood source files.
2021-12-30 09:58:47 +01:00
Christoph Oelckers
e670cf2786
- re-tabified several files that got mangled by repeated merging
2021-12-30 09:58:47 +01:00
Christoph Oelckers
3fcecedf32
- deleted ClearContent functions from actor classes.
...
this is a leftover from pre-DObject times and no longer needed.
2021-12-30 09:58:47 +01:00
Christoph Oelckers
bf9defc062
- SW: moved some Polymost hack stuff to its proper place.
2021-12-30 09:58:46 +01:00
Mitchell Richters
bf7437c827
- SW: Remove ON
pre-processor define and eliminate mytypes.h
.
2021-12-30 09:58:46 +01:00
Mitchell Richters
3cf9450bd8
- SW: Remove OFF
pre-processor define.
2021-12-30 09:58:45 +01:00
Mitchell Richters
ae49a55fce
- SW: Replace the last few remaining TEST()
macro uses and remove from mytypes.h
.
2021-12-30 09:58:45 +01:00
Mitchell Richters
1439d5f268
- SW: Replace TEST\(([\w\-\>.()\[\]]+),\s?([\w\_\|\s]+)\)
with ($1 & ($2))
.
2021-12-30 09:58:45 +01:00
Mitchell Richters
48b0058d38
- SW: Replace TEST\(([\w\-\>.()]+),\s?(\w+)\)
with ($1 & $2)
.
2021-12-30 09:58:45 +01:00
Mitchell Richters
5316e23737
- SW: Replace !TEST\(([\w\-\>.()\[\]]+),\s?([\w\_\|\s]+)\)
with !($1 & ($2))
2021-12-30 09:58:45 +01:00
Mitchell Richters
8df3966d08
- SW: Replace !TEST\(([\w\-\>.()\[\]]+),\s?(\w+)\)
with !($1 & $2)
.
2021-12-30 09:58:44 +01:00
Christoph Oelckers
b1d8f92ded
- added wall edge splitting for gl_seamless.
2021-12-30 09:58:44 +01:00
Christoph Oelckers
3fee8f3c4e
- replaced dragpoint (both the generic and the Blood variant) with a newly written vertexscan function.
...
This is a template allowing to run any task on a set of walls with equivalent start point.
Code was redesigned from scratch to be more clear than the existing variants.
The idea here is to reuse the base algorithm for other things that need to operate on the equivalent set of a given wall's start point.
2021-12-30 09:58:15 +01:00
Christoph Oelckers
c8b5fa6556
- SW: fixed signed-ness issue with SP_TAG13
2021-12-30 09:58:14 +01:00
Christoph Oelckers
16635e53fc
- renamed DDukeActor::picnum to attackertype.
...
This one having the same name here as spritetype::picnum is just confusing as hell and badly describes this variable's function.
2021-12-30 09:58:14 +01:00
Christoph Oelckers
fb53f32603
- handle the remaining write accesses to ceilingz and floorz.
...
Everything is routed through the wrapper functions now.
2021-12-30 09:58:14 +01:00
Christoph Oelckers
059412b75e
- first batch of routing all write access to sectortype::ceilingz and floorz through a function interface.
...
We need this for implementing "precise" rendering to flag vertices as dirty.
2021-12-30 09:58:14 +01:00
Christoph Oelckers
c24aafd3d6
- SW: game.h cleanup
...
Turned almost all #defines into enums or inline functions, removed unused declarations and all leftover MONO_PRINT fragments elsewhere.
2021-12-30 09:58:13 +01:00
Christoph Oelckers
96396385e7
- more TEST() replacements.
...
This covers roughly half of the original use.
2021-12-30 09:58:13 +01:00
Christoph Oelckers
61564ab96a
- one third of TEST().
2021-12-30 09:58:13 +01:00
Christoph Oelckers
7727597bd7
- removed FLIP macro
...
was only used 3 times
2021-12-30 09:58:12 +01:00
Christoph Oelckers
08fcfb382c
- the remaining RESET() calls.
2021-12-30 09:58:12 +01:00
Christoph Oelckers
e29d0f50cf
- lots of RESET() flags replaced.
2021-12-30 09:58:12 +01:00
Christoph Oelckers
1ae7565a2a
- SW macro cleanup.
2021-12-30 09:58:12 +01:00
Christoph Oelckers
d15c3aeff6
- got rid of the DIV2 macro.
2021-12-30 09:58:11 +01:00
Christoph Oelckers
387d65abb4
- the remaining SET()s.
...
These had to be done manually.
2021-12-30 09:58:11 +01:00
Christoph Oelckers
fe292fce0d
- yet more SET flag replacements
...
90% done.
2021-12-30 09:58:11 +01:00
Christoph Oelckers
12ad85f6f8
- SW: turned flag #defines into enums.
2021-12-30 09:58:11 +01:00
Christoph Oelckers
92ed3fa728
- replaced more SET() macros.
...
This covers another 30-35%.
2021-12-30 09:58:11 +01:00
Christoph Oelckers
dc3f2473ba
- quick search & replace on ~40% of SET( macros in SW.
2021-12-30 09:58:10 +01:00
Christoph Oelckers
12619671e6
- Duke/RR: added fudging to work around aiming randomization issues with the pistol when autoaim is off.
...
Solution is the same as in RedNukem/EDuke32: do one hitscan directly in aiming order and if that hits a sprite, use it as aiming target.
2021-12-30 09:58:10 +01:00
Christoph Oelckers
913f6e713d
- Hack for Exhumed: palette 4 does not fade to black so sprites should not have shades above numshades.
...
The new renderer will treat such shades as completely black to ensure proper rendering of shadows - but for this palette this must be skipped.
2021-12-30 09:58:09 +01:00
Christoph Oelckers
ce1daa82c2
- Duke: make camera actors temporarily invisible before rendering a scene.
...
Mainly needed for voxel/model replacements of the security camera sprite.
2021-12-30 09:58:09 +01:00
Christoph Oelckers
00a7be545d
- added a map preview to the user map browser.
2021-12-30 09:58:08 +01:00
Christoph Oelckers
745794a1f1
- where did that comma go?
2021-12-30 09:58:07 +01:00
Christoph Oelckers
34f14aa4c3
- added vector variants of FindDistance2D and FindDistance3D
2021-12-30 09:58:07 +01:00
Christoph Oelckers
29da39dda0
- added two FAFcansee variants that take shorter parameter lists for clearer code.
2021-12-30 09:58:06 +01:00
Christoph Oelckers
e3ce0da111
- make all actor pointers in the player struct regular pointers.
2021-12-30 09:58:06 +01:00
Christoph Oelckers
de3e66016c
- removed the Actor() access method from Exhumed's player as well.
2021-12-30 09:58:06 +01:00
Christoph Oelckers
bf3f580d52
- deleted PLAYER::Actor()
...
Also made actor a regular pointer. Unlike the other ones this may not be prematurely nulled ever.
2021-12-30 09:58:06 +01:00
Christoph Oelckers
d340a7e80c
- u() and USERp are gone.
2021-12-30 09:58:05 +01:00
Christoph Oelckers
26f93ab724
- the final u()'s.
2021-12-30 09:58:05 +01:00
Christoph Oelckers
cf88bcbecb
- handle u-> in player.cpp
2021-12-30 09:58:05 +01:00
Christoph Oelckers
bfea02a192
- a few in player.cpp
2021-12-30 09:58:05 +01:00
Christoph Oelckers
cc161fe66a
- deleted u variables in track.cpp
2021-12-30 09:58:05 +01:00
Christoph Oelckers
c544046fb3
- renamed u-> in track.cpp
2021-12-30 09:58:05 +01:00
Christoph Oelckers
055982f0db
- smaller u in track.cpp
2021-12-30 09:58:04 +01:00
Christoph Oelckers
050d93a92c
- deleted unused pointers and handled u() in the script interface.
2021-12-30 09:58:04 +01:00
Christoph Oelckers
6df854d612
- replaced one sprite inline with its actor variant.
2021-12-30 09:58:04 +01:00
Christoph Oelckers
4e7724ece2
- deleted all leftover SPRITEp stuff.
2021-12-30 09:58:04 +01:00
Christoph Oelckers
f1c60e4a52
- fixed SpawnFireballFlames and deleted leftover sprite pointers.
2021-12-30 09:58:04 +01:00
Christoph Oelckers
2543a46278
- deleted all u variables from weapon.cpp
2021-12-30 09:58:03 +01:00
Christoph Oelckers
8739ef9182
- renamed all u-> in weapon.cpp
2021-12-30 09:58:03 +01:00
Christoph Oelckers
3e79c917f2
- the last u in weapon.cpp that are not actor->u()
2021-12-30 09:58:03 +01:00
Christoph Oelckers
b522356120
- stuff that was missed.
2021-12-30 09:58:03 +01:00
Christoph Oelckers
85b687ba13
- all eu, which are expActor.
2021-12-30 09:58:03 +01:00
Christoph Oelckers
e16caa0c62
- eu, that are not expActor
2021-12-30 09:58:03 +01:00
Christoph Oelckers
7147d3c89e
- several non-u users in weapon.cpp
2021-12-30 09:58:02 +01:00
Christoph Oelckers
9485816cf7
- deleted u variables from sprite.cpp.
2021-12-30 09:58:02 +01:00
Christoph Oelckers
b9a8647d73
- renamed u-> in sprite.cpp
2021-12-30 09:58:02 +01:00
Christoph Oelckers
02d8551330
- non "u = actor" Users in sprite.cpp
2021-12-30 09:58:02 +01:00
Christoph Oelckers
221f1dc69a
- handle u-> in slidor.cpp
2021-12-30 09:58:02 +01:00
Christoph Oelckers
9f27e05fef
- deleted u variables in sector.cpp
2021-12-30 09:58:02 +01:00
Christoph Oelckers
121ae62108
- renamed u-> in sector.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
65b9841666
- handle u-> in rotator.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
be1d53db56
- deleted u variables in vator.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
ab359844aa
- renamed u-> in vator.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
2ef7fc9bc2
- handle u-> in zilla.cpp and zombie.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
936febd505
- deleted u variables in player.cpp
2021-12-30 09:58:01 +01:00
Christoph Oelckers
3e21dd40a7
- renamed u-> in half of player.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
bc15bdf92c
- renaming stuff in player.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
b606d01ca8
- u-> in panel.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
d84c4b4f20
- u() in sumo.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
9b18316fd7
- delete u variables in spike.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
d95a22485b
- rename u-> in spike.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
9df3400a91
- deleted u variables in skull.cpp
2021-12-30 09:58:00 +01:00
Christoph Oelckers
cbec67dbf5
- renamed u-> in skull.cpp
2021-12-30 09:57:59 +01:00
Christoph Oelckers
1da38cbc8e
- u-> in skel.cpp
2021-12-30 09:57:59 +01:00
Christoph Oelckers
4aed4a6965
- u() in serp.cpp
2021-12-30 09:57:59 +01:00
Christoph Oelckers
0274fa5b4b
- deleted u variables in ripper2.cpp
2021-12-30 09:57:59 +01:00
Christoph Oelckers
574deb2111
- renamed u-> in ripper2.cpp
2021-12-30 09:57:59 +01:00
Christoph Oelckers
401f1f8dbc
- deleted u variables in ripper.cpp.
2021-12-30 09:57:59 +01:00
Christoph Oelckers
4691da132d
- renamed u-> in ripper.cpp
2021-12-30 09:57:58 +01:00
Christoph Oelckers
d14907e847
- deleted u variables in ninja.cpp
2021-12-30 09:57:58 +01:00
Christoph Oelckers
8ab8d219b3
- renamed u-> in ninja.cpp
2021-12-30 09:57:58 +01:00
Christoph Oelckers
704a730a45
- non "u = actor" Users in ninja.cpp.
2021-12-30 09:57:58 +01:00
Christoph Oelckers
e8e85c5816
- deleted u variables in miscactr.cpp.
2021-12-30 09:57:58 +01:00
Christoph Oelckers
8ffa12442c
- renamed u-> in miscactr.cpp
2021-12-30 09:57:58 +01:00
Christoph Oelckers
a1c5c06e27
- u() in lava.cpp, light.cpp and predict.cpp
2021-12-30 09:57:58 +01:00
Christoph Oelckers
78fa76678d
- deleted u variables in jweapon.cpp
2021-12-30 09:57:57 +01:00
Christoph Oelckers
08244a70f3
- renamed u-> in jweapon.cpp
2021-12-30 09:57:57 +01:00
Christoph Oelckers
a023087e2d
- handle non u = actor->u() cases in jweapon.cpp.
2021-12-30 09:57:57 +01:00
Christoph Oelckers
f59fa8b13e
- deleted all wu variables.
2021-12-30 09:57:57 +01:00
Christoph Oelckers
dc60cd7689
- renamed all wu-> in weapon.cpp.
2021-12-30 09:57:57 +01:00
Christoph Oelckers
521ad37618
- handle wu-> in weapon.cpp which do not reference actorNew.
2021-12-30 09:57:57 +01:00
Christoph Oelckers
6b0e944e7b
- deleted wu variables in jweapon.cpp
2021-12-30 09:57:56 +01:00
Christoph Oelckers
7be6bfeb0e
- replacing wu-> in jweapon.cpp
2021-12-30 09:57:56 +01:00
Christoph Oelckers
4eb32d5b18
- renaming stuff
2021-12-30 09:57:56 +01:00
Christoph Oelckers
388b3062fd
- u() in input.cpp, interpso.cpp and inv.cpp
2021-12-30 09:57:56 +01:00
Christoph Oelckers
41753240dd
- deleted u in hornet.cpp
2021-12-30 09:57:56 +01:00
Christoph Oelckers
64598f6167
- renamed u-> in hornet.cpp
2021-12-30 09:57:56 +01:00
Christoph Oelckers
ff09079502
- deleted u in goro.cpp
2021-12-30 09:57:55 +01:00
Christoph Oelckers
89c9031486
- renamed u-> in goro.cpp
2021-12-30 09:57:55 +01:00
Christoph Oelckers
43e370f079
- deleted u in girlninj.cpp
2021-12-30 09:57:55 +01:00
Christoph Oelckers
dc5821d7c6
- renamed u-> in girlninj.cpp
2021-12-30 09:57:55 +01:00
Christoph Oelckers
a72732a7b1
- handle USERSAVE.
2021-12-30 09:57:55 +01:00
Christoph Oelckers
afe93f89af
- deleted u in eel.cpp.
2021-12-30 09:57:55 +01:00
Christoph Oelckers
3908d4b1c6
- renamed u-> in eel.cpp.
2021-12-30 09:57:55 +01:00
Christoph Oelckers
5f281dfc29
- user() in draw.cpp.
2021-12-30 09:57:54 +01:00
Christoph Oelckers
42aa99d7f6
- deleted u in coolie.cpp.
2021-12-30 09:57:54 +01:00
Christoph Oelckers
9c68d14c74
- renamed u-> in coolie.cpp
2021-12-30 09:57:54 +01:00
Christoph Oelckers
fa59f90f92
- removed u variables in coolg.cpp
2021-12-30 09:57:54 +01:00
Christoph Oelckers
2458893528
- u-> in cheats.cpp and coolg.cpp
2021-12-30 09:57:54 +01:00
Christoph Oelckers
29d161dd67
- removed u variables in bunny.cpp
2021-12-30 09:57:54 +01:00
Christoph Oelckers
87100b1f50
renamed u-> in break.cpp and bunny.cpp
2021-12-30 09:57:53 +01:00
Christoph Oelckers
6597827458
- deleted all hu variables.
2021-12-30 09:57:53 +01:00
Christoph Oelckers
8fe11bd848
- replaced hu->
2021-12-30 09:57:53 +01:00
Christoph Oelckers
91a355a82e
- handle all hu = itActor.u();
2021-12-30 09:57:53 +01:00
Christoph Oelckers
86704b264e
- deleted nu variables.
2021-12-30 09:57:53 +01:00
Christoph Oelckers
d096eda3a9
- renamed all nu-> in weapon.cpp.
2021-12-30 09:57:52 +01:00
Christoph Oelckers
13e14553eb
- renamed all nu-> outside weapon.cpp.
2021-12-30 09:57:52 +01:00
Christoph Oelckers
38224f05b7
- all nu not referring to actorNew->u()
2021-12-30 09:57:52 +01:00
Christoph Oelckers
b49e3201ae
- several uses of tu and bu - almost all very minor stuff.
2021-12-30 09:57:52 +01:00
Christoph Oelckers
1ec6743f20
- replaced tu in bunny.cpp and draw.cpp
2021-12-30 09:57:52 +01:00
Christoph Oelckers
6dcc8761fe
- replaced the last remaining s() calls in Blood's interface and deleted the method.
2021-12-30 09:57:51 +01:00
Christoph Oelckers
4dad58e557
- the final s() in SW.
2021-12-30 09:57:51 +01:00
Christoph Oelckers
6729dbd684
- almost done with s().
2021-12-30 09:57:51 +01:00
Christoph Oelckers
11a59055a4
- 15 more s() from weapon.cpp.
2021-12-30 09:57:51 +01:00
Christoph Oelckers
f02c402036
- 12 more from weapon.cpp
2021-12-30 09:57:51 +01:00
Christoph Oelckers
bd3aaea3b2
- big macro mess cleanup.
2021-12-30 09:57:51 +01:00
Christoph Oelckers
297921204f
- rename STD_RANDOM_RANGE
2021-12-30 09:57:50 +01:00
Christoph Oelckers
d957540258
- targeting stuff in weapon.cpp
2021-12-30 09:57:50 +01:00
Christoph Oelckers
85a814d379
- all of track.cpp and vis.cpp
2021-12-30 09:57:50 +01:00
Christoph Oelckers
dcb375a3c6
- all of sprite.cpp
2021-12-30 09:57:50 +01:00
Christoph Oelckers
b7c4ac55d1
- replaced all remaining sp = &actor->s().
2021-12-30 09:57:50 +01:00
Christoph Oelckers
5643f9b7f7
- deleted dead sp variables.
2021-12-30 09:57:50 +01:00
Christoph Oelckers
8a2908bc30
- eliminated the remaining SP_* spritetype function variants.
2021-12-30 09:57:49 +01:00
Christoph Oelckers
8ffc87134d
- track stuff
2021-12-30 09:57:49 +01:00
Christoph Oelckers
e782cc1c28
- deleted unused spritetype inlines.
2021-12-30 09:57:49 +01:00
Christoph Oelckers
7f07be0d6d
- - sector, sound, track, rotator
2021-12-30 09:57:49 +01:00
Christoph Oelckers
d62a65b6e3
- do not use sprite pointers in sound code.
2021-12-30 09:57:49 +01:00
Christoph Oelckers
6df8f8a537
- handle all fsp = &actor->s();
2021-12-30 09:57:48 +01:00
Christoph Oelckers
822c88c135
- handle all auto psp = &pp->Actor()->s();
2021-12-30 09:57:48 +01:00
Christoph Oelckers
8b5955d3dd
- the remaining s() in player.cpp
2021-12-30 09:57:48 +01:00
Christoph Oelckers
c7b80b80d8
- player warp functions.
2021-12-30 09:57:48 +01:00
Christoph Oelckers
188af0dbb3
- half of what's left of s() in player.cpp
2021-12-30 09:57:48 +01:00
Christoph Oelckers
959147c656
- smaller stuff
2021-12-30 09:57:48 +01:00
Christoph Oelckers
6d7337e41b
- the rest of light.cpp
2021-12-30 09:57:47 +01:00
Christoph Oelckers
2aba992d63
- most of lights.cpp, including turning the helper macros into functions.
2021-12-30 09:57:47 +01:00
Christoph Oelckers
eba5d222c0
- the remaining s()'s in jweapon.cpp
2021-12-30 09:57:47 +01:00
Christoph Oelckers
571dccda76
- jsector.cpp
2021-12-30 09:57:47 +01:00
Christoph Oelckers
ce7465869f
- vator.cpp cleanup.
2021-12-30 09:57:47 +01:00
Christoph Oelckers
35b4db39d7
- sp-> in vator.cpp
2021-12-30 09:57:47 +01:00
Christoph Oelckers
77308356ed
- sprite.cpp
2021-12-30 09:57:47 +01:00
Christoph Oelckers
843239d085
- SpriteSetup and related functions.
2021-12-30 09:57:46 +01:00
Christoph Oelckers
0c48b4b2c2
- over/under stuff in weapon.cpp
2021-12-30 09:57:46 +01:00
Christoph Oelckers
47b4c55a5c
- parts of sprite.cpp.
2021-12-30 09:57:46 +01:00
Christoph Oelckers
83a7b3ef1c
- parts of jsector.cpp
2021-12-30 09:57:46 +01:00
Christoph Oelckers
967385a87c
- rotator.cpp, slidor.cpp and a few single ones elsewhere.
2021-12-30 09:57:46 +01:00
Christoph Oelckers
8e8f59caa1
- refactored GetSpriteZOfMiddle (and all s() close by)
2021-12-30 09:57:45 +01:00
Christoph Oelckers
123e19e355
- the rest of draw.cpp
2021-12-30 09:57:45 +01:00
Christoph Oelckers
9cdf4db648
- the remaining sp-> in draw.cpp
2021-12-30 09:57:45 +01:00
Christoph Oelckers
3b26c634db
- parts of draw.cpp.
2021-12-30 09:57:45 +01:00
Christoph Oelckers
c61e4de409
- WarpCopySprite
2021-12-30 09:57:45 +01:00
Christoph Oelckers
dce8531c48
- all sp in player.cpp
2021-12-30 09:57:45 +01:00
Christoph Oelckers
c5af361564
- renamed sp-> in player.cpp.
2021-12-30 09:57:44 +01:00
Christoph Oelckers
f488b9220c
- deal with sp in player.cpp that do not use &actor->s()
2021-12-30 09:57:44 +01:00
Christoph Oelckers
ffb97eb261
- all s() from bunny.cpp + copysect.cpp.
2021-12-30 09:57:44 +01:00
Christoph Oelckers
9ad23631f5
- several s().
2021-12-30 09:57:44 +01:00
Christoph Oelckers
1e938e2b44
- deleted redundant sprite inlines.
...
All calls have been transitioned to actors.
2021-12-30 09:57:44 +01:00
Christoph Oelckers
8a1c602dc8
- 10 more s().
2021-12-30 09:57:43 +01:00
Christoph Oelckers
bdf29cf01e
- hs = &itActor->s();
2021-12-30 09:57:43 +01:00
Christoph Oelckers
6ce1f57b5e
- deleted all wp variables.
2021-12-30 09:57:43 +01:00
Christoph Oelckers
cc3c477992
- renamed all wp in jweapon.cpp and weapon.cpp
2021-12-30 09:57:43 +01:00
Christoph Oelckers
cd7f13c4ba
- all wp not referencing actorNew.
2021-12-30 09:57:43 +01:00
Christoph Oelckers
2398073529
- getting rid of wall variables named wp.
2021-12-30 09:57:43 +01:00
Christoph Oelckers
7bea7cdae1
- handle all wp referencing actor->s().
2021-12-30 09:57:42 +01:00
Christoph Oelckers
1afb985291
- renamed all wp referencing weapActor.
2021-12-30 09:57:42 +01:00
Christoph Oelckers
33c8668325
- deleted all np variables.
2021-12-30 09:57:42 +01:00
Christoph Oelckers
14ba7d24d2
- renamed all remaining np->
2021-12-30 09:57:42 +01:00
Christoph Oelckers
730c9e65e4
- renamed all np-> in weapon.cpp
2021-12-30 09:57:42 +01:00
Christoph Oelckers
5eb958938d
- renamed all np-> in sprite.cpp
2021-12-30 09:57:41 +01:00
Christoph Oelckers
b2d4375cde
- renamed all np-> in jweapons.cpp
2021-12-30 09:57:41 +01:00
Christoph Oelckers
08a98c3955
- renamed all np-> in bunny.cpp
2021-12-30 09:57:41 +01:00
Christoph Oelckers
0175d27ffa
- handle all 'np->' not referencing actorNew.
2021-12-30 09:57:41 +01:00
Christoph Oelckers
09294d7712
- deleted sp from _polymost.cpp
2021-12-30 09:57:41 +01:00
Christoph Oelckers
e1fdb6b7bf
- deleted all exp variables from weapon.cpp.
2021-12-30 09:57:41 +01:00
Christoph Oelckers
b5261b9fe1
- renamed exp-> in weapon.cpp
2021-12-30 09:57:40 +01:00
Christoph Oelckers
4395de8fb1
- deleted all sp variables from weapon.cpp.
2021-12-30 09:57:40 +01:00
Christoph Oelckers
b488361639
- more macros in weapons.cpp converted into functions.
2021-12-30 09:57:40 +01:00
Christoph Oelckers
39640a4870
- handle most sp function parameters.
...
Also de-macrofied ANG2SPRITE and ANG2PLAYER.
2021-12-30 09:57:40 +01:00
Christoph Oelckers
d8b0cbd031
- renamed all sp-> in weapons.cpp.
2021-12-30 09:57:40 +01:00
Christoph Oelckers
17810bc6cd
- the ones I missed.
2021-12-30 09:57:39 +01:00
Christoph Oelckers
a8d0e29a3b
- handle parts of weapon.cpp where sp is not used for actor->s()
2021-12-30 09:57:39 +01:00
Christoph Oelckers
b2fd05d182
- stuff in InitSwordAttack + InitHeartAttack
2021-12-30 09:57:39 +01:00
Christoph Oelckers
270afb5d49
- sp-> renaming and cleanup in rooms.cpp
2021-12-30 09:57:39 +01:00
Christoph Oelckers
49cc2b3cad
- quake.cpp plus SP_TAG13/14 cleanup
2021-12-30 09:57:39 +01:00
Christoph Oelckers
9aaaadefc3
- SpawnQuake
2021-12-30 09:57:39 +01:00
Christoph Oelckers
2b8b4f3fcc
- QuakeViewChange
2021-12-30 09:57:38 +01:00
Christoph Oelckers
7419c2e65b
- sp cleanup in sector.cpp
2021-12-30 09:57:38 +01:00
Christoph Oelckers
79a9278ff3
- rename sp-> in sector.cpp
2021-12-30 09:57:38 +01:00
Christoph Oelckers
212f07f7ff
- sp cleanup in skull.cpp, sumo.cpp, zilla.cpp, zombie.cpp
2021-12-30 09:57:38 +01:00
Christoph Oelckers
926b4f8ba9
- sp cleanup of ripper.cpp, ripper2.cpp, serp.cpp, skel.cpp.
2021-12-30 09:57:38 +01:00
Christoph Oelckers
639613297d
- globally replaced sp-> in several files.
...
No further cleanup yet.
2021-12-30 09:57:38 +01:00
Christoph Oelckers
dc7fecccd0
- globally replaced sp-> in spike.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
f58d4e2604
- globally replaced sp-> in skull.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
0d0d5366b1
- globally replaced sp-> in skel.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
bb4c0be15e
- globally replaced sp-> in serp.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
f6c32b10d4
- globally replaced sp-> in ripper2.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
67d82f63be
- globally replaced sp-> in ripper.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
ce6f6ff5d3
- globally replaced sp-> in _polymost.cpp
2021-12-30 09:57:37 +01:00
Christoph Oelckers
63fc668d57
- don't use auto when making local copies of TObjPtr.
2021-12-30 09:57:36 +01:00
Christoph Oelckers
1b1a81e2bc
- sp in ninja.cpp.
2021-12-30 09:57:36 +01:00
Christoph Oelckers
a3b539da28
- sp cleanup in miscactr.cpp.
2021-12-30 09:57:36 +01:00
Christoph Oelckers
5f187a3efb
- sp-> replacement in miscactr.cpp.
2021-12-30 09:57:36 +01:00
Christoph Oelckers
1d6b5e621d
- sp cleanup in jweapon.cpp.
2021-12-30 09:57:36 +01:00
Christoph Oelckers
b3b6001248
- sp-> replacements in jweapon.cpp
2021-12-30 09:57:36 +01:00
Christoph Oelckers
aeed726b59
- deleted sp assignments in processed files.
2021-12-30 09:57:35 +01:00
Christoph Oelckers
aac44b27b1
- sp cleanup in bunny.cpp.
2021-12-30 09:57:35 +01:00
Christoph Oelckers
1d76336045
- handle bp in break.cpp
2021-12-30 09:57:35 +01:00
Christoph Oelckers
47b51efdc6
- turning TEST_BOOL into overloaded functions.
2021-12-30 09:57:35 +01:00
Christoph Oelckers
5290939cbc
- break.cpp sp cleanup.
...
Also a few needed renamings.
2021-12-30 09:57:35 +01:00
Christoph Oelckers
06d33b8276
- partial conversion of SP_TAG3 to actors.
2021-12-30 09:57:35 +01:00
Christoph Oelckers
627a69570f
- turned all SP_TAGx macros into functions so that they can be overloaded with actor variants.
2021-12-30 09:57:34 +01:00
Christoph Oelckers
397d9b0d84
- made SP_TAG2 a function with an actor parameter.
2021-12-30 09:57:34 +01:00
Christoph Oelckers
5be1bc4de7
- made SP_TAG1 a function with an actor parameter.
2021-12-30 09:57:34 +01:00
Christoph Oelckers
40050f5008
- replaced sp-> in several files.
2021-12-30 09:57:34 +01:00
Christoph Oelckers
42a525692d
- fixed check on wrong actor in DoChemBomb.
2021-12-30 09:57:34 +01:00
Christoph Oelckers
514c3ffb10
- cameraactor in _polymost.cpp
2021-12-30 09:57:33 +01:00
Christoph Oelckers
4caee272ef
- some non 'actor' sp replacements in weapon.cpp.
2021-12-30 09:57:33 +01:00
Christoph Oelckers
76809965ad
- some sp replacements as preparation for replacing most of 'actor->s()'.
2021-12-30 09:57:33 +01:00
Christoph Oelckers
ca14c809f9
- cleaned up some random crap with loops and bad variable types I just randomly found.
2021-12-30 09:57:33 +01:00
Christoph Oelckers
7bbd4343a8
- renamed all shadowing variables in Duke.
2021-12-30 09:57:33 +01:00
Christoph Oelckers
032c597fa5
- renamed shadowing variables in Blood.
2021-12-30 09:57:32 +01:00
Mitchell Richters
0bb4ec7c33
- SW: Ensure pp
in analyzesprites()
is always initiated as the console player.
2021-12-30 09:57:32 +01:00
Mitchell Richters
95d270fbdd
- Exhumed: Clean up local functions variables to prevent redefinition conflicts.
2021-12-30 09:57:31 +01:00
Mitchell Richters
c26b5d2303
- SW: Clean up local functions variables to prevent redefinition conflicts.
2021-12-30 09:57:31 +01:00
Mitchell Richters
36fc6ede8e
- Blood: Repair actor
variable collision in GetZRange()
causing all kinds of weirdness.
2021-12-30 09:57:31 +01:00
Mitchell Richters
e15c887f90
- Duke: Fix bad setup in initcrane()
following actor sprite pointer cleanups.
2021-12-30 09:57:31 +01:00
Christoph Oelckers
395a269feb
- globally replaced ->u()->.
2021-12-30 09:57:30 +01:00
Christoph Oelckers
82b883e461
- SW: replaced u() in ai.cpp.
2021-12-30 09:57:30 +01:00
Christoph Oelckers
b55e46ec6d
- ai.cpp cleanup.
2021-12-30 09:57:30 +01:00
Christoph Oelckers
ed8b4100f6
- SW: replace s() in ai.cpp.
...
Also a bit of inline cleanup to make it compile again.
2021-12-30 09:57:30 +01:00
Christoph Oelckers
8d5bffc280
- SW: some inline cleanup.
2021-12-30 09:57:29 +01:00
Christoph Oelckers
810ab29898
- SW: non 'actor' cases of s() in ai.cpp.
2021-12-30 09:57:29 +01:00
Christoph Oelckers
6c97912220
- SW: replace all u()'s in actor.cpp
2021-12-30 09:57:29 +01:00
Christoph Oelckers
fd78cb57c1
- fixed some bad flag replacements.
...
0x7fff is not ~CSTAT_SPRITE_BLOCK but ~CSTAT_SPRITE_INVISIBLE.
2021-12-30 09:57:29 +01:00
Christoph Oelckers
c9628e2034
- partial cleanup of SW's macro mess.
...
Renamed some functions to give them better names and converted more macros into functions or constants
2021-12-30 09:57:28 +01:00
Christoph Oelckers
394f06baa0
- SW: converted 1/3 of the #defines in names2.h into enums.
2021-12-30 09:57:28 +01:00
Christoph Oelckers
92f2182e6e
- SW: all s() in actor.cpp
2021-12-30 09:57:28 +01:00
Christoph Oelckers
2718b3a5e3
- remaining s() in Exhumed
2021-12-30 09:57:28 +01:00
Christoph Oelckers
d4c01ce957
- remaining s() in queen.cpp.
2021-12-30 09:57:28 +01:00
Christoph Oelckers
4610fc6e99
- remaining s() in player.cpp.
2021-12-30 09:57:27 +01:00
Christoph Oelckers
d40da386a4
- remaining s() in object.cpp.
2021-12-30 09:57:27 +01:00
Christoph Oelckers
301350ef8c
- remaining s() in move.cpp
2021-12-30 09:57:27 +01:00
Christoph Oelckers
7eaf669295
- remaining s() in bullet.cpp, grenade.cpp and gun.cpp.
2021-12-30 09:57:27 +01:00
Christoph Oelckers
cd6bb5305e
- second batch of Exhumed's s().
2021-12-30 09:57:27 +01:00
Christoph Oelckers
6f0e7e3784
- Exhumed: batch of several s().
2021-12-30 09:57:27 +01:00
Christoph Oelckers
56bd9e7e27
- Exhumed: pActor->s() in spider.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
05d2b90418
- Exhumed: pActor->s() in anubis.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
046ff607dc
- Exhumed: pActor->s() in wasp.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
eda75a38d2
- Exhumed: pActor->s() in snake.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
0fb92e3928
- Exhumed: pActor->s() in set.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
b34a4af15e
- Exhumed: pActor->s() in scorp.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
013cf05042
- Exhumed: pActor->s() in runlist.cpp
2021-12-30 09:57:26 +01:00
Christoph Oelckers
318678b5a1
- Exhumed: pActor->s() in roach.cpp
2021-12-30 09:57:25 +01:00
Christoph Oelckers
a6c592b12c
- Exhumed: pActor->s() in rex.cpp
2021-12-30 09:57:25 +01:00
Christoph Oelckers
b02feec2e8
- Exhumed: pActor->s() in rat.cpp
2021-12-30 09:57:25 +01:00
Christoph Oelckers
430a0263d5
- Exhumed: pActor->s() in ra.cpp
2021-12-30 09:57:25 +01:00
Christoph Oelckers
d162c36113
- Exhumed: pActor->s() in queen.cpp
2021-12-30 09:57:25 +01:00
Christoph Oelckers
b641da3959
- Exhumed: pActor->s() in player.cpp and view.cpp.
2021-12-30 09:57:25 +01:00
Christoph Oelckers
b6d04ffec0
- Exhumed: pActor->s() in object.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
dca478d284
- Exhumed: pActor->s() in mummy.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
23f274120c
- Exhumed: pActor->s() in move.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
ca88e241e1
- Exhumed: pActor->s() in lion.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
5700b8ade6
- Exhumed: pActor->s() in lavadude.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
33918ac554
- Exhumed: pActor->s() in items.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
1d01a6cff7
- Exhumed: pActor->s() in init.cpp + lighting.cpp
2021-12-30 09:57:24 +01:00
Christoph Oelckers
613dd67578
- Exhumed: pActor->s() in grenade.cpp
2021-12-30 09:57:23 +01:00
Christoph Oelckers
79e6412ad5
- Exhumed: pActor->s() in fish.cpp
2021-12-30 09:57:23 +01:00
Christoph Oelckers
a7cebcafbb
- Exhumed: pActor->s() in bullet.cpp
2021-12-30 09:57:23 +01:00
Christoph Oelckers
03759ef73b
- Exhumed: pActor->s() in bubbles.cpp
2021-12-30 09:57:23 +01:00
Christoph Oelckers
89a1fcdfac
- Exhumed: pActor->s() in anims.cpp
2021-12-30 09:57:23 +01:00
Christoph Oelckers
1bb7f3764d
- handle all s() cases in Exhumed using pSprite but not pActor->s().
2021-12-30 09:57:23 +01:00
Christoph Oelckers
3adbed4826
- t[] replacement in spawn code.
2021-12-30 09:57:22 +01:00
Christoph Oelckers
9b932b2d91
- t[] replacement in actors_d.cpp and actors_r.cpp.
2021-12-30 09:57:22 +01:00
Christoph Oelckers
8c35224fe1
- Duke: removed all t-pointers to temp_data in actors.cpp.
2021-12-30 09:57:22 +01:00
Christoph Oelckers
bd47f56a5c
- x() is gone entirely.
2021-12-30 09:57:22 +01:00
Christoph Oelckers
e940fe1931
- the rest of nnexts.cpp
2021-12-30 09:57:22 +01:00
Christoph Oelckers
4177c31deb
- next batch of nnexts.cpp
2021-12-30 09:57:22 +01:00
Christoph Oelckers
d3e4f591f2
- third x() batch in nnexts.cpp.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
60382d9992
- all pXCond's.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
fd234984f5
- first batch of x() in nnexts.cpp.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
a291364606
- the big 'pXSprite = &actor->x()' replacement.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
8d8e0550df
- got rid of PLAYER::pXSprite.
...
Now the player references its actor through ONE pointer only.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
b848a9c980
- some more.
2021-12-30 09:57:21 +01:00
Christoph Oelckers
0d5ea0f314
- handle most of PLAYER::pXSprite
2021-12-30 09:57:20 +01:00
Christoph Oelckers
aa3b930a4d
- several x()'s in nnexts.cpp.
2021-12-30 09:57:20 +01:00
Christoph Oelckers
812a4ccd7b
- handle sourceactor->x() in nnexts.cpp.
...
Almost exclusively done with search & replace.
2021-12-30 09:57:20 +01:00
Christoph Oelckers
5699488bea
- get rid of spritetype in inactive code. (Search noise removal)
2021-12-30 09:57:20 +01:00
Christoph Oelckers
2254dacdf1
- forgot to save the last change.
2021-12-30 09:57:20 +01:00
Christoph Oelckers
5ad43256cc
- the final s()'s in Blood.
2021-12-30 09:57:20 +01:00
Christoph Oelckers
582b83601d
- targets in weapon.cpp, plus removal of the now redundant spritetype variants of IsTargetTeammate.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
bf25428225
- upper/lower in CheckLink.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
c67c6ed3da
- the rest of triggers.cpp.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
06d8db1470
- deal with the markers in triggers.cpp.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
8d66c8468d
- the remaining s()'s of nnexts.cpp.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
46320aabac
- third batch of nnexts.cpp.
2021-12-30 09:57:19 +01:00
Christoph Oelckers
b8bee4dfe5
- upper/lower stuff in nnexts.cpp.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
929fd7be99
- another block in nnexts.cpp.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
e460d90f37
- several s() in nnexts.cpp.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
c4c6c1def1
- fix GCC warning.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
6766a5922a
- pass actors to calcChaseCamPos.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
87894a5640
- deleted PLAYER::pSprite.
2021-12-30 09:57:18 +01:00
Christoph Oelckers
648537a96b
- deal with most of PLAYER::pSprite.
2021-12-30 09:57:17 +01:00
Christoph Oelckers
f59af2cc2d
- deal with most of PLAYER::pSprite in weapon.cpp.
2021-12-30 09:57:17 +01:00
Christoph Oelckers
b7ee813712
- global search & replace for many uses of PLAYER's pSprite pointer.
2021-12-30 09:57:17 +01:00
Christoph Oelckers
8dac94326a
- s() stuff in player.cpp and gib.cpp
2021-12-30 09:57:17 +01:00
Christoph Oelckers
0a1184b388
- the last one in gameutil.cpp.
2021-12-30 09:57:17 +01:00
Christoph Oelckers
2f9848a459
- deal with pSource in nnexts.cpp.
2021-12-30 09:57:17 +01:00
Christoph Oelckers
5623832b17
- deleted the pSprite definitions from last commit.
2021-12-30 09:57:16 +01:00
Christoph Oelckers
6b8ec17017
- the ultimate 'replace pSprite-> with actor->spr. commit.
...
This takes care of the majority of s() uses in Blood with a single search&replace action after ensuring that pSprite never gets used for other things.
(There were two small functions in nnexts.cpp left that still did.)
2021-12-30 09:57:16 +01:00
Christoph Oelckers
1f11eb24dd
- use actor pointers in preload.cpp
2021-12-30 09:57:16 +01:00
Christoph Oelckers
d8134c3fe8
- handle a few pSprite assignments which are not &actor->s().
2021-12-30 09:57:16 +01:00
Christoph Oelckers
91214b5350
- xsprite in animatesprite.cpp.
2021-12-30 09:57:16 +01:00
Christoph Oelckers
773d7d118f
- pXSprite in callback.cpp
2021-12-30 09:57:16 +01:00
Christoph Oelckers
a0b6873446
- handle s() in callback.cpp.
2021-12-30 09:57:15 +01:00
Christoph Oelckers
a1f6b363fb
- asound.cpp, blood.cpp, db.cpp and parts of callback.cpp
2021-12-30 09:57:15 +01:00
Christoph Oelckers
ed0c27b240
- Duke: deleted unused spritetype* variants of badguy() and bossguy()
2021-12-30 09:57:15 +01:00
Christoph Oelckers
09634c4993
- use actors instead of sprites in the new renderer's API.
2021-12-30 09:57:15 +01:00
Christoph Oelckers
1f57322d56
- the last one in aiunicult.cpp which the search did not show.
2021-12-30 09:57:14 +01:00
Christoph Oelckers
627318c39b
- handle pXSprite in aiunicult.cpp
2021-12-30 09:57:14 +01:00
Christoph Oelckers
be9d71ca6b
- non-pXSprite x()'s in aiunicult.cpp.
2021-12-30 09:57:14 +01:00
Christoph Oelckers
49c43297cd
- pXSprite in AI... code.
2021-12-30 09:57:14 +01:00
Christoph Oelckers
f678e55daa
- pSprite in aiunicult.cpp.
2021-12-30 09:57:14 +01:00
Christoph Oelckers
ff0b8ac5a9
- handle the hitactor parts missed in the last commit.
2021-12-30 09:57:13 +01:00
Christoph Oelckers
b1bd8f3eef
- non-pSprite occurences of s() in aiunicult.cpp.
2021-12-30 09:57:13 +01:00
Mitchell Richters
c01fab8c6c
- Fix compilation.
2021-12-30 09:57:13 +01:00
Christoph Oelckers
d0143db8fe
- got rid of sx() and sm() inlines.
2021-12-30 09:57:13 +01:00
Christoph Oelckers
f67e39450e
- deal with a handful of s() uses that do not match the more common patterns.
2021-12-30 09:57:13 +01:00
Christoph Oelckers
723e22743e
- handle all x() calls in AI code.
2021-12-30 09:57:12 +01:00
Christoph Oelckers
389933fe3a
- missed two...
2021-12-30 09:57:12 +01:00
Christoph Oelckers
1ebdb81e13
- deleted the actor->s() calls in AI code.
2021-12-30 09:57:12 +01:00
Christoph Oelckers
e123e61f99
- quick replace of 'pSprite->' with 'actor->spr.' in AI files.
2021-12-30 09:57:12 +01:00
Christoph Oelckers
612167cbf1
- handle all non- "pSprite = actor->s();" calls of s() in Blood AI code.
2021-12-30 09:57:12 +01:00
Christoph Oelckers
bff3bbea73
- handle all target sprites in AI code.
2021-12-30 09:57:12 +01:00
Christoph Oelckers
18c32d8fe9
- eliminated all x() in ai.cpp.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
9e6943ec83
- eliminated all s() in ai.cpp.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
41e003c831
- the remaining x() in actor.cpp.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
bc42978295
- x() in actor.cpp callbacks.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
bd07313017
- almost the last x() in actor.cpp.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
692a269d92
- still more x() in actor.cpp.
2021-12-30 09:57:11 +01:00
Christoph Oelckers
3f65aee70b
- even more x() in actor.cpp.
2021-12-30 09:57:10 +01:00
Christoph Oelckers
3201f85ab9
- yet more x() in actor.cpp.
2021-12-30 09:57:10 +01:00
Christoph Oelckers
a1b2d4a21e
- more x() in actor.cpp.
2021-12-30 09:57:10 +01:00
Christoph Oelckers
ffeb52198a
- lots of ->x() calls removed in actor.cpp.
2021-12-30 09:57:10 +01:00
Christoph Oelckers
6e0128eb4c
- handle the remaining uses of s() in actor.cpp
2021-12-30 09:57:10 +01:00
Christoph Oelckers
b91fe45fc3
- handled all pSprite-> in actor.cpp.
2021-12-30 09:57:10 +01:00
Christoph Oelckers
27e9894ece
- handled all parts of actor.cpp which are not "pSprite = &actor->s();"
2021-12-30 09:57:10 +01:00
Christoph Oelckers
88c77ec71a
- some pSprite2's plus CheckSector.
2021-12-30 09:57:09 +01:00
Christoph Oelckers
fbb8f1ee70
- pSprite replacements in blood/src/actor.cpp
2021-12-30 09:57:09 +01:00
Christoph Oelckers
a87948677a
- globally replaced ->x(). with ->xspr.
2021-12-30 09:57:09 +01:00
Christoph Oelckers
a2fc415b30
- fixed Exhumed panning setup.
...
Converted it to floating point and removed the nonsensical & with the texture size that was clearing significant bits.
2021-12-30 09:57:09 +01:00
Mitchell Richters
6423684bfb
- SW: Replace PLAYERstruct
oposz
with opos.Z
calls.
2021-12-30 09:57:09 +01:00
Mitchell Richters
a2f2cc489a
- SW: Replace PLAYERstruct
oposy
with opos.Y
calls.
2021-12-30 09:57:08 +01:00
Mitchell Richters
ae50767c70
- SW: Replace PLAYERstruct
oposx
with opos.X
calls.
2021-12-30 09:57:08 +01:00
Mitchell Richters
05a4ad4729
- SW: Replace PLAYERstruct
posz
with pos.Z
calls and eliminate PLAYERstruct
pos
union.
2021-12-30 09:57:08 +01:00
Mitchell Richters
ae3369d2a3
- SW: Replace PLAYERstruct
posy
with pos.Y
calls.
2021-12-30 09:57:08 +01:00
Mitchell Richters
3a0ee322ae
- SW: Replace PLAYERstruct
posx
with pos.X
calls.
2021-12-30 09:57:07 +01:00
Mitchell Richters
3adf81e4f9
- Duke: Replace player_struct
oposz
with opos.Z
calls.
2021-12-30 09:57:07 +01:00
Mitchell Richters
111aa16e64
- Duke: Replace player_struct
oposy
with opos.Y
calls.
2021-12-30 09:57:07 +01:00
Mitchell Richters
0e897c29b0
- Duke: Replace player_struct
oposx
with opos.X
calls.
2021-12-30 09:57:07 +01:00
Mitchell Richters
dd0ff465b0
- Replace spritetypebase
oz
with opos.Z
calls and eliminate spritetypebase
opos
union.
2021-12-30 09:57:07 +01:00
Mitchell Richters
a79b4b5ffc
- Replace spritetypebase
oy
with opos.Y
calls.
2021-12-30 09:57:06 +01:00
Mitchell Richters
e0fb92bb01
- Replace spritetypebase
ox
with opos.X
calls.
2021-12-30 09:57:06 +01:00
Mitchell Richters
baf78848eb
- Replace spritetypebase
z
with pos.Z
calls and eliminate spritetypebase
pos
union.
2021-12-30 09:57:06 +01:00
Mitchell Richters
cecb8dc48e
- Replace spritetypebase
y
with pos.Y
calls.
2021-12-30 09:57:05 +01:00
Mitchell Richters
33ca55023f
- Replace spritetypebase
x
with pos.X
calls.
2021-12-30 09:57:05 +01:00
Mitchell Richters
09e00a69fe
- Replace walltype
y
with pos.Y
calls and eliminate walltype
pos
union.
2021-12-30 09:57:04 +01:00
Mitchell Richters
51b647da87
- Replace walltype
x
with pos.X
calls.
2021-12-30 09:57:04 +01:00
Mitchell Richters
b2ab64bb62
- Capitalise vec3_t
z
variable.
2021-12-30 09:57:03 +01:00
Mitchell Richters
68e2691be7
- Capitalise vec3_t
y
variable.
2021-12-30 09:57:03 +01:00
Mitchell Richters
c549cc5276
- Capitalise vec3_t
x
variable.
2021-12-30 09:57:02 +01:00
Mitchell Richters
118ceb18ca
- Capitalise vec2_t
y
variable.
2021-12-30 09:57:02 +01:00
Mitchell Richters
3c9cd926ba
- Capitalise vec2_t
x
variable.
2021-12-30 09:57:02 +01:00
Christoph Oelckers
e0e6efe0a0
- Exhumed: fixed some sound source issues.
2021-12-30 09:57:01 +01:00
Christoph Oelckers
3221ecf800
- refactored xsprite use in aibat.cpp.
2021-12-30 09:57:01 +01:00
Christoph Oelckers
6f9484a9ee
- fixed compilation on GCC.
...
error: operands to ?: have different types ‘std::nullptr_t’ and ‘TObjPtr<Duke3d::DDukeActor*>’
2021-12-30 09:57:01 +01:00
Christoph Oelckers
33a00869d8
- shortened the name of DBloodActor::xsprite to xspr.
2021-12-30 09:57:01 +01:00
Christoph Oelckers
f8171ac5d9
- eliminate pSprite pointers in aibat.cpp.
2021-12-30 09:57:01 +01:00
Christoph Oelckers
d9d05e90b5
- globally replaced all occurences of '->s().' with '->spr.'
2021-12-30 09:57:00 +01:00
Christoph Oelckers
1240818122
- getting rid of DDukeActor::s, final part.
2021-12-30 09:57:00 +01:00
Christoph Oelckers
f216857f55
- Getting rid of DDukeActor::s, part 1.
2021-12-30 09:57:00 +01:00
Christoph Oelckers
99507ed048
- spawn_d.cpp
2021-12-30 09:57:00 +01:00
Christoph Oelckers
df2fc596f9
- spawn.cpp
2021-12-30 09:56:59 +01:00
Christoph Oelckers
45a2b9766e
- sectors_r.cpp
2021-12-30 09:56:59 +01:00
Christoph Oelckers
d532c496f1
- sectors_d.cpp
2021-12-30 09:56:59 +01:00
Christoph Oelckers
f816f2fb22
- ->s in non-gameplay files.
2021-12-30 09:56:59 +01:00
Christoph Oelckers
edf3fd0f82
- premap_r.cpp + dependencies.
2021-12-30 09:56:59 +01:00
Christoph Oelckers
1f40dfa411
- premap.cpp + premap_d.cpp
2021-12-30 09:56:59 +01:00
Christoph Oelckers
e76e28cdea
- the rest of player_r.cpp
2021-12-30 09:56:58 +01:00
Christoph Oelckers
0768c9e8b6
- non 'actor' parts of player_r.cpp
2021-12-30 09:56:58 +01:00
Christoph Oelckers
de22c8ca26
- 's->' in player_d.cpp
2021-12-30 09:56:58 +01:00
Christoph Oelckers
6b675cc849
- non 'actor' parts of player_d.cpp
2021-12-30 09:56:58 +01:00
Christoph Oelckers
b55e04d455
- game_misc.cpp + gameexec.cpp.
2021-12-30 09:56:58 +01:00
Christoph Oelckers
a982c7e590
- player.cpp + noise.cpp.
2021-12-30 09:56:58 +01:00
Christoph Oelckers
c0ea208ba3
- animatesprites_d.cpp and animatesprites_r.cpp.
2021-12-30 09:56:57 +01:00
Christoph Oelckers
9eb7c536ab
- the rest of actors_r.cpp
2021-12-30 09:56:57 +01:00
Christoph Oelckers
7d5cf6e631
- first third of actors_r.cpp
2021-12-30 09:56:57 +01:00
Christoph Oelckers
8ff53eae7d
- second half of actors_d.cpp
2021-12-30 09:56:57 +01:00
Christoph Oelckers
f1e608685e
- more parts of actor_d.cpp
2021-12-30 09:56:57 +01:00
Christoph Oelckers
b7a4c484e9
- large block of s = actor->s; in actors_d.cpp
2021-12-30 09:56:57 +01:00
Christoph Oelckers
44895411b9
- a large block of 'act->s' in actors_r.cpp.
2021-12-30 09:56:56 +01:00
Christoph Oelckers
8dcc128697
- deal with 'spri = actor->s;'
2021-12-30 09:56:56 +01:00
Christoph Oelckers
0df97f00ec
- the remaining 's's in actor.cpp.
2021-12-30 09:56:56 +01:00
Christoph Oelckers
f5151e31a5
- globally replaced all 's->' with 'actor->spr.' in duke/src/actors.cpp.
2021-12-30 09:56:56 +01:00
Christoph Oelckers
55cb5aaac6
- global search & replace of ->s-> with ->spr.
...
This is the largest part of uses of DDukeActor's 's' pointer.
2021-12-30 09:56:56 +01:00
Christoph Oelckers
0284ec1cb0
- replacement of DDukeActor::s and pointers to DCoreActor::spr, part 3.
2021-12-30 09:56:56 +01:00
Christoph Oelckers
0f7024e70e
- replacement of DDukeActor::s and pointers to DCoreActor::spr, part 2.
2021-12-30 09:56:55 +01:00
Christoph Oelckers
997c12f67a
- replacement of DDukeActor::s and pointers to DCoreActor::spr.
2021-12-30 09:56:55 +01:00
Christoph Oelckers
c16b090fbe
- Exhumed: clear lasthitsect when starting a new level.
2021-12-30 09:56:55 +01:00
Christoph Oelckers
e42c3afbea
- Exhumed: fixed trap setup.
...
Must clear the structure before the first return and iterate over the walls by reference, otherwise bad pointers will get copied.
2021-12-30 09:56:55 +01:00
Christoph Oelckers
6fd4d6d550
- ported slope sorite support from NBlood.
...
For Polymost only so far.
2021-12-30 09:56:54 +01:00
Christoph Oelckers
156369ac8a
- Blood: don't crash when cultists accidentally target themselves.
2021-12-30 09:56:54 +01:00
Christoph Oelckers
785c7d4ceb
- removed numsectors and numwalls entirely.
...
With Blood's Polymost mirror hack the risk of getting out of sync with the arrays was a genuine issue, so now only the array size counts.
2021-12-30 09:56:54 +01:00
Christoph Oelckers
df0c577cf4
- replaced most of numsectors, too.
2021-12-30 09:56:54 +01:00
Christoph Oelckers
f1c0298825
- replaced numwalls with wall.Size in several places.
2021-12-30 09:56:54 +01:00
Christoph Oelckers
65bc6e6aef
- removed the now redundant wall() and sector() interator helper functions.
...
With both wall and sector now being TArrays they are not needed anymore.
2021-12-30 09:56:53 +01:00
Christoph Oelckers
4904466fd6
- SW: forgot to enable the extended sector parts in CallbackSOsink.
...
That bit had somehow gone MiA.
2021-12-30 09:56:53 +01:00
Christoph Oelckers
b021aa9a02
- SW: don't try to render non-existent mirrors with Polymost.
...
We got a counter variable, WTF did this code not use it?
2021-12-30 09:56:53 +01:00
Christoph Oelckers
68c87db6ec
- SW: fixed crash in Polymost with badly set up cameras.
2021-12-30 09:56:52 +01:00
Mitchell Richters
1e63c8305b
- Fix build issues under GCC.
2021-12-30 09:56:51 +01:00
Christoph Oelckers
986fccfddc
- use symbolic constants for all places where globalorientation is checked for the alignment bits.
2021-12-30 09:56:51 +01:00
Christoph Oelckers
5ff36f491e
- fixed the remaining places where the compiler complained about cstat.
2021-12-30 09:56:51 +01:00
Christoph Oelckers
8b427e35c2
- stuff that needs FromInt
2021-12-30 09:56:51 +01:00
Christoph Oelckers
955996dddc
- the rest of Blood's flags, part II
2021-12-30 09:56:50 +01:00
Christoph Oelckers
13186cec6d
- the rest of Blood's flags.
2021-12-30 09:56:50 +01:00
Christoph Oelckers
092cb1e5a3
- second set of Blood flags.
2021-12-30 09:56:50 +01:00
Christoph Oelckers
3bc337264a
- flags in blood's actor.cpp
...
plus a few others caught by search&replace.
2021-12-30 09:56:50 +01:00
Christoph Oelckers
8039d81467
- the remaining Exhumed flags.
2021-12-30 09:56:50 +01:00
Christoph Oelckers
988a91904a
- a large of Exhumed flags, most search& replace plus a few local variable types.
2021-12-30 09:56:49 +01:00
Christoph Oelckers
2d648924e8
- the final Duke flags.
2021-12-30 09:56:49 +01:00
Christoph Oelckers
e02f4d8fd1
- randomFlip stuff.
...
To avoid casting from int to flags.
2021-12-30 09:56:49 +01:00
Christoph Oelckers
8f0f0e8816
- manual sprite flag replacements in Duke.
2021-12-30 09:56:49 +01:00
Christoph Oelckers
8e0b9f7ce6
- some automatic, some manual sprite flag replacements
2021-12-30 09:56:49 +01:00
Christoph Oelckers
ace01d02bc
- alignment flags and a few leftovers.
2021-12-30 09:56:48 +01:00
Christoph Oelckers
82fb03e399
- another batch of search&replace, with smaller results.
2021-12-30 09:56:48 +01:00
Christoph Oelckers
c5ae454207
- another big batch of automatic replacements.
2021-12-30 09:56:48 +01:00
Christoph Oelckers
5b65e214e0
- global search & replace of the more frequent sprite flag patterns.
2021-12-30 09:56:48 +01:00
Christoph Oelckers
8f012d1beb
- made wall flags type safe
2021-12-30 09:56:47 +01:00
Christoph Oelckers
8fab2e1020
- fix bad flag management in usePropertiesChanger
...
Not sure if this is 100% correct, but the old code definitely wasn't.
2021-12-30 09:56:47 +01:00
Christoph Oelckers
76e944053b
- the (few) numeric flag literals in SW handled.
...
Virtually all of this was portal hackery.
2021-12-30 09:56:47 +01:00
Christoph Oelckers
d24b8d9ec8
- most wall flags in Blood.
2021-12-30 09:56:47 +01:00
Christoph Oelckers
1883aad7c2
- flag names in SetupGibWallState and TranslateSector
2021-12-30 09:56:47 +01:00
Christoph Oelckers
adbf5177a7
- flag combo stuff.
2021-12-30 09:56:46 +01:00
Christoph Oelckers
b263c3ac6b
- wall and sprite flags in Duke, just simple cases.
2021-12-30 09:56:46 +01:00
Christoph Oelckers
6e32832428
- made sector ceiling/floor flags type safe.
...
- made sector flags type safe.
2021-12-30 09:56:46 +01:00
Christoph Oelckers
b0e3c6b5ec
- some remaining sector flag stuff
2021-12-30 09:56:45 +01:00
Christoph Oelckers
d0a06ae961
- deal with most of CSTAT_SECTOR_SKY and CSTAT_SECTOR_SLOPE
2021-12-30 09:56:45 +01:00
Christoph Oelckers
98f0886b3d
-Duke/RR: Automatic replacement for CSTAT_SPRITE_INVISIBLE and CSTAT_SPRITE_BLOCK_ALL
2021-12-30 09:56:45 +01:00
Christoph Oelckers
8d0013128e
- Exhumed: use symbolic constant CSTAT_SPRITE_INVISIBLE
2021-12-30 09:56:45 +01:00
Christoph Oelckers
1edccf1423
- added slope setter methods to sectortype.
...
To make sure that setting the slope flags is always done properly. (Why are the flags even needed?)
As a nice side effect, this, plus use of other inlines made the align*slope functions implode into virtually nothing.
2021-12-30 09:53:56 +01:00
Christoph Oelckers
11f41a97d5
- made gotpic a FixedBitArray.
...
gets rid of some inline garbage.
2021-12-30 09:53:56 +01:00
Christoph Oelckers
5f18109371
- consolidated all getslope code into a single function.
...
This also caches a wall's length to avoid taking the square root every single time for a slope calculation.
2021-12-30 09:53:55 +01:00
Christoph Oelckers
bea394a734
- replace SW specific sector flags with the global ones.
2021-12-30 09:53:55 +01:00
Christoph Oelckers
dddf48fd3e
- cleaned up and renamed buildtypes.h.
...
Content was reordered so that the file can contain the inlines belonging to the map data types that previously had to be stored elsewhere.
Also moved out of the Build folder because virtually everything in here can be traced to content available in Duke Nukem 3D's and Shadow Warrior's source releases.
2021-12-30 09:53:46 +01:00
Christoph Oelckers
4a5de6f56e
- make sure that all changes of wall coordinates invalidate associated data.
...
walltype::move should be the preferred function to be used for this, otherwise walltype::moved needs to be called.
2021-12-30 09:53:11 +01:00
Mitchell Richters
95d60deecd
- Rename remaining hw_sections*.*
files to hw_sections.*
.
2021-12-30 09:53:11 +01:00
Christoph Oelckers
46d7487a3b
- SW: clear all pointer variables the player may still hold when terminating a level.
2021-12-30 09:53:10 +01:00
Christoph Oelckers
34bee8116c
- SW: fixed uninitialized variable in FAFhitscan
2021-12-30 09:53:10 +01:00
Christoph Oelckers
d1f088a858
- SW/Exhumed fixed sound relinking on actor destruction.
...
This still passed the sprites instead of the actors. Moved the relinking code to DCoreActor::Destroy because it is the same for all games.
Also did a little bit of sound cleanup to ensure the sound backend does not hold stale actor pointers.
2021-12-30 09:53:10 +01:00
Christoph Oelckers
fc41a2bd85
- renamed sections2 and sections2PerSector.
...
No more need for a '2'.
2021-12-30 09:53:10 +01:00
Christoph Oelckers
f6d852b5a0
- removed the old section builder
2021-12-30 09:53:09 +01:00
Christoph Oelckers
bb9313454d
- removed SectorGeometry class.
2021-12-30 09:53:09 +01:00
Christoph Oelckers
4364e68d05
- automap work to transition to new sections.
2021-12-30 09:53:08 +01:00
Christoph Oelckers
a733de618f
- new section WIP.
2021-12-30 09:53:06 +01:00
Christoph Oelckers
6db1ba47c2
- SW: fixed some savegame issues:
...
* the saveable tables were initialized too late when reading in the actors.
* the abort messages for the saveables did not show. We need to use I_FatalError here, plus some actor list modifications to make this work.
2021-12-26 23:10:07 +01:00
Christoph Oelckers
ae622274bd
- SW: clear pointer holding variables in TerminateLevel.
...
Some survive the level transition and would point to invalid data.
2021-12-26 23:10:07 +01:00
Christoph Oelckers
a4ff7e5bd4
- SW: added some null checks to the SO interpolation code.
...
It looks like this was able to access deleted sprites - by only checking for the index this never registered as a problem, but with pointers it does.
2021-12-26 23:10:07 +01:00
Mitchell Richters
4562a0ca97
- SW: Add some nullptr checks to some inlines to prevent noclip crashes.
2021-12-26 23:10:06 +01:00
Mitchell Richters
3b099e09cd
- SW: Tidy some ‘newsect’ may be used uninitialized
warnings from GCC.
2021-12-26 23:10:06 +01:00
Mitchell Richters
9e51f911ab
- Blood: Clear writing to an object of type ‘class TObjPtr<Blood::DBloodActor*>’ with ‘private’ member ‘TObjPtr<Blood::DBloodActor*>::<anonymous>’
warning under GCC.
2021-12-26 23:10:06 +01:00
Mitchell Richters
2f567bdb74
- Exhumed: Fix two signed/unsigned comparison warnings in PlayFX2()
.
...
* Lines in question:
** 606 | if (chan->SoundID == nSound + 1)
** 621 | if (chan->SoundID == nSound + 1)
* All data sent to `PlayFX2()` and functions that wrap `PlayFX2()` are signed values, so keep signed all the way through.
2021-12-26 23:10:06 +01:00
Mitchell Richters
a4d165a84e
- Tidy some specified bound equals destination size
warnings from GCC.
2021-12-26 23:10:05 +01:00
Christoph Oelckers
b89bba5ed1
- Duke: DDukeActor::setActiveCrane must also clear ownerActor.
...
Apparently something in the crane code can cause a condition where this wasn't cleared before grabbing a player.
Formerly these two were the same variable but had to be separated.
2021-12-26 23:10:05 +01:00
Christoph Oelckers
d8ccfa1a5f
- cleaned up nextsectorneighborz, added a safe variant and use this in all places where the sector pointer is not validated.
2021-12-26 23:10:05 +01:00
Mitchell Richters
18bd2e4d07
- SW: Destroy actor in KillActor()
after clearing the pointed to sprite, not before it.
...
* No idea if it matters but it seems logical that this is how it should be.
2021-12-26 23:10:05 +01:00
Mitchell Richters
65a55d3589
- SW: Tidy up function declarations where return type was on its own line.
2021-12-26 23:10:05 +01:00
Mitchell Richters
953c7e4ed6
- Blood: Fix some collision issues found following refactoring.
...
* Originating from 9a2ca3f392e29fe8df4167c271a7b04ab5e8959c "- use refactored Collision struct and clipmove in Blood, too.".
2021-12-26 23:10:04 +01:00
Christoph Oelckers
b4a968841a
- missing null check in Blood's map loader.
2021-12-26 23:10:04 +01:00
Mitchell Richters
14b8eda436
- Get rid of some now irrelevant comments.
2021-12-26 23:10:03 +01:00
Christoph Oelckers
74da3e5fa7
- added savegame support for the new actor management.
2021-12-26 23:10:03 +01:00
Mitchell Richters
2dda3ee505
- Tidy up some GCC warnings about ininitialised variables, memsetting non-trivial types and some others.
2021-12-26 23:10:02 +01:00
Christoph Oelckers
b8c4354691
- got rid of the MAX... constants and adjusted all places still using them.
2021-12-26 23:10:02 +01:00
Christoph Oelckers
1a3b9f8ac0
- made several arrays holding sector related data dynamic.
2021-12-26 23:10:02 +01:00
Christoph Oelckers
838bed7800
- final cleanup of sectnum related stuff.
...
Made sure that remaining uses of sector indices are safe to be kept and deleted a few redundant functions.
2021-12-26 23:10:01 +01:00
Christoph Oelckers
6d432fca0a
- made spritetype::sectnum a pointer.
2021-12-26 23:10:01 +01:00
Christoph Oelckers
6a43a270fa
- use sectno() access function where we really need a sector index.
2021-12-26 23:10:01 +01:00
Christoph Oelckers
2d913982da
- changed map loader to work without relying on spritetype::sectnum.
...
All access to this field is done through access functions now.
2021-12-26 23:10:01 +01:00
Christoph Oelckers
8ee5d1b0d7
- activated the garbage collector
...
This finally gets rid of all static storage for actors - so no more indices ever! :)
2021-12-26 23:10:00 +01:00
Christoph Oelckers
0dd756fa32
- added GC handling for all backend pointers in the map data.
...
GC is not active yet!
2021-12-26 23:10:00 +01:00
Christoph Oelckers
db240ea2b0
- GC support in SW.
...
- SW GC WIP
2021-12-26 23:10:00 +01:00
Christoph Oelckers
6cb260d916
- SW GC preparation commit noise.
2021-12-26 23:10:00 +01:00
Christoph Oelckers
1d371b8cbf
- clear some data on init.
2021-12-26 23:09:59 +01:00
Christoph Oelckers
8dde6a3074
- Added GC support to Exhumed
2021-12-26 23:09:59 +01:00
Christoph Oelckers
138690d34e
- do not use auto to make local copies of TObjPtr's.
...
This will just copy the object without performing the read barrier on the source data which is not what we want here.
For these assignments the type must be explicit.
2021-12-26 23:09:59 +01:00
Christoph Oelckers
16a8746971
- GC setup for Blood.
2021-12-26 23:09:58 +01:00
Christoph Oelckers
fa62b20d76
- GC setup for Duke.
2021-12-26 23:09:58 +01:00
Christoph Oelckers
5d09748af9
- Duke: added some null pointer checks.
2021-12-26 23:09:58 +01:00
Christoph Oelckers
42e4e9288f
- deleted GetSpriteIndex.
...
It's not needed anymore.
2021-12-26 23:09:58 +01:00
Christoph Oelckers
382689e0a7
- moved the FireProj struct into DDukeActor to avoid the rather expensive TMap code.
...
Later this can be moved to a dedicated subclass.
2021-12-26 23:09:58 +01:00
Christoph Oelckers
30786360bb
- derive spritetype and tspritetype from a common base class to consolidate their common content.
2021-12-26 23:09:57 +01:00
Christoph Oelckers
588f88c9cc
- migrated the actors to DObjects.
...
No GC yet, only the classes have been altered and some GC-related features been added.
Full switchover will require adding GC support to all data in the game.
2021-12-26 23:09:57 +01:00
Christoph Oelckers
8606045689
- Duke: made gamevars type safe and capable of managing actor pointers.
...
Also a few unrelated changes needed to make it compile again.
2021-12-26 23:09:56 +01:00
Christoph Oelckers
d088ab05a9
- eliminate storage of actors in the sector's hitag for some of Duke's sector effectors.
...
Also demoted Blood's upperLink and lowerLink to DCoreActor pointers and use static_cast for access to avoid savegame problems. The core code cannot safely serialize a DBloodActor anymore.
2021-12-26 23:09:56 +01:00
Christoph Oelckers
122a1f009d
- moved gamevar storage to player and actor objects respectively.
...
For actors this eliminates the need to for sprite indices which was the intended goal. It also properly associates the gamevars with their owners.
2021-12-26 23:09:56 +01:00
Christoph Oelckers
fa05cfbaf1
- use a real pointer in DSWActor for owner tracking.
2021-12-26 23:09:56 +01:00
Christoph Oelckers
ca10495d7c
- Blood: back up player state before ending the level, not just before loading the new one.
...
The latter is too late, the player's actor data may already be stale and invalid here.
2021-12-26 23:09:56 +01:00
Christoph Oelckers
8a2385dd89
- actor clearing cleaned up.
...
We still need this until we can get rid of the static arrays...
2021-12-26 23:09:55 +01:00
Christoph Oelckers
d3b1e34d78
- moved sprite[], spriteext[] and spritesmooth[] into DCoreActor.
...
Also removed the last remaining sprite pointer in saveable data.
2021-12-26 23:09:55 +01:00
Christoph Oelckers
4cecb6f955
- removed the old actor savegame code and instead implemented a virtual Serialize function.
...
This isn't hooked up yet, currently savegames are non-functional. They will come back once the global actor arrays are no longer relevant for maintenance.
2021-12-26 23:09:55 +01:00
Christoph Oelckers
e79cd8d87f
- don't store sprite indices in walltype::portalnum
2021-12-26 23:09:54 +01:00
Christoph Oelckers
f855b1020f
- actor lists refactored.
...
No more shorts, no more static arrays.
This was one of the biggest blockers for unlimiting the engine.
2021-12-26 23:09:54 +01:00
Christoph Oelckers
eaff9e359f
- refactored the owner index in tspritetype.
...
This is now a separate type from spritetype which contains an actor pointer instead so that sprite display can be handled without requiring a static sprite array.
2021-12-26 23:09:53 +01:00
Christoph Oelckers
183f554733
- hitscan cleanup.
...
Also removed a bit of leftover TROR code.
2021-12-26 23:09:52 +01:00
Christoph Oelckers
e13a275cfc
- got rid of the sole linear sprite iterator in Exhumed and deleted the iterator code entirely.
2021-12-26 23:09:52 +01:00
Christoph Oelckers
8c298de114
- Duke: replaced DukeLinearSpriteIterator and explicit loops over the sprite[] array.
2021-12-26 23:09:52 +01:00
Christoph Oelckers
6600f55543
- separate map loading from actor spawning for the other games, too.
...
It still uses the horribly messed up original spawn logic, though.
2021-12-26 23:09:51 +01:00
Christoph Oelckers
a3493048e7
- refactoring of spawn code to prepare for the other games.
...
Map hacks do not work in this commit!
2021-12-26 23:09:51 +01:00
Christoph Oelckers
ec888c097c
- Blood: separated actor spawning from map loading.
2021-12-26 23:09:51 +01:00
Christoph Oelckers
e543c70439
- replacement of BloodLinearSpriteIterator
...
Preparation for eliminating sprite[]. This array can later be created by the actual spawn function.
2021-12-26 23:09:51 +01:00
Mitchell Richters
0c6e55d1b8
- Silence all the -Wuninitialized
and -Wmaybe-uninitialized
warnings relating to HitInfo
objects passed through to functions by reference.
2021-12-26 23:09:50 +01:00
Mitch Richters
c6774d5efd
- Duke/RR: Re-add micro-movement cancellation for RR's vehicles that was dropped in 466bc84697
.
2021-12-26 23:09:50 +01:00
Christoph Oelckers
363d062685
- minor sanity check improvements.
2021-12-26 23:09:50 +01:00
Mitch Richters
12a0f587a3
- SW: Add nullptr check inside WarpSectorInfo()
to prevent crashes while noclipping through level.
2021-12-26 23:09:50 +01:00
Mitch Richters
10e28b8a53
- SW: Add nullptr check inside ActorTrackDecide()
for walltype's nextSector()
to prevent crashes while noclipping through level.
2021-12-26 23:09:49 +01:00
Mitch Richters
5085dcd866
- SW: Add nullptr check inside DoPlayerHorizon()
for canslopetilt
to prevent crashes while noclipping through level.
2021-12-26 23:09:49 +01:00
Christoph Oelckers
e223466f4a
- removed Interp_Sprite_Z.
...
This was redundant and interfered with the reworked automatic sprite interpolation.
2021-12-26 23:09:49 +01:00
Christoph Oelckers
2654a19cfd
- got rid of setspritez(x) and moved the implementation to SetActor(Z) without referencing the sprite array.
2021-12-26 23:09:49 +01:00
Christoph Oelckers
6773fa2189
- removed unused InitLists function.
...
# Conflicts:
# source/build/src/engine.cpp
2021-12-26 23:09:49 +01:00
Christoph Oelckers
58cd933d74
- pass sprite array to map hack parser as parameter.
...
This will later allow it to work on temporaries.
2021-12-26 23:09:49 +01:00
Christoph Oelckers
5dfc79bdbe
- MarkSectorSeen
2021-12-26 23:09:48 +01:00
Christoph Oelckers
b663b8ea26
- wallptr reduction.
2021-12-26 23:09:48 +01:00
Christoph Oelckers
eb0f91e26b
- pass sector pointer to render_camtex.
2021-12-26 23:09:47 +01:00
Christoph Oelckers
a22634f228
- sectnum reduction.
2021-12-26 23:09:47 +01:00
Christoph Oelckers
34373e9c70
- fixed use of wrong indexing function.
2021-12-26 23:09:47 +01:00
Christoph Oelckers
73243f95bb
- make Blood's burn source a pointer.
2021-12-26 23:09:46 +01:00
Christoph Oelckers
3a44f168e0
- Blood: Fix DeleteSprite
2021-12-26 23:09:46 +01:00
Christoph Oelckers
9213eae606
- deleted unused functions.
2021-12-26 23:09:46 +01:00
Christoph Oelckers
a59173ac31
- SW: fixed DeleteNoSoundOwner still checking for sprites as sound origins.
2021-12-26 23:09:46 +01:00
Christoph Oelckers
0a9792ac28
- adapted SW's sound system to actors.
2021-12-26 23:09:46 +01:00
Christoph Oelckers
221d9fe28e
- adapted Duke's and Exhumed's sound code to directly work with actors.
...
This was already wrapped so all that needed to be done was removing the wrapper.
2021-12-26 23:09:46 +01:00
Christoph Oelckers
97b19a5cb1
- adapted Blood's sound engine to using actors.
...
Note: Savegames won't work on this commit for the other games!
2021-12-26 23:09:45 +01:00
Christoph Oelckers
75b36cbd1c
- Duke: made player.i a real pointer
...
How could I overlook this one.
2021-12-26 23:09:45 +01:00
Christoph Oelckers
befc4572e9
- minimal backend array removal.
2021-12-26 23:09:45 +01:00
Christoph Oelckers
b7a5ea8ef6
- moved some common utilities into the backend.
2021-12-26 23:09:44 +01:00
Christoph Oelckers
bbb860ccf3
- consolidate the iterators in the backend.
...
Using a template class that can adapt to the game specific types.
2021-12-26 23:09:44 +01:00
Christoph Oelckers
12f6b05cbe
- use access functions, all done by search & replace.
2021-12-26 23:09:44 +01:00
Christoph Oelckers
6748a39c8f
- deprecate the sector index variant of pushmove
2021-12-26 23:09:43 +01:00
Christoph Oelckers
2aefe4398b
- sector[tspr->sectnum] globally replaced.
2021-12-26 23:09:43 +01:00
Christoph Oelckers
02ef323086
- SW: handle getzrangepoint
2021-12-26 23:09:43 +01:00
Christoph Oelckers
53be5d1622
- use a sector pointer in FAFgetzrange.
2021-12-26 23:09:43 +01:00
Christoph Oelckers
70d7e81f4f
- adapted getzrange to the new interface.
...
This was mainly removing game side solutions in favor of a common one in the backend.
2021-12-26 23:09:42 +01:00
Christoph Oelckers
729076b79d
- adapted neartag in SW and Exhumed.
2021-12-26 23:09:42 +01:00
Christoph Oelckers
91e2391911
- adapted neartag in Duke.
2021-12-26 23:09:42 +01:00
Christoph Oelckers
1840ab0d05
- deal with a few ->sectnum's in SW.
2021-12-26 23:09:42 +01:00
Christoph Oelckers
321608e5ac
- made cursectnum et. al. real pointers.
2021-12-26 23:09:41 +01:00
Christoph Oelckers
f19f656dd9
- deal with SW's Warp functions.
2021-12-26 23:09:41 +01:00
Christoph Oelckers
10d0ea29ce
- renamed some sectnum variables.
2021-12-26 23:09:41 +01:00
Christoph Oelckers
ef6bc9db56
- do the remaining clipmove calls.
2021-12-26 23:09:41 +01:00
Christoph Oelckers
bdbb3b4004
- handled the main actor movement functions.
2021-12-26 23:09:40 +01:00
Christoph Oelckers
afd05add96
- adapted several clipmove calls in SW.
2021-12-26 23:09:40 +01:00
Christoph Oelckers
c0b0b00f96
fixed collision access.
2021-12-26 23:09:09 +01:00
Christoph Oelckers
30f36e4871
- use backend's collision struct in SW.
2021-12-26 23:08:58 +01:00
Christoph Oelckers
b3bbf8932e
- same procedure for Exhumed.
2021-12-26 23:08:58 +01:00
Christoph Oelckers
8ce34c7772
- use refactored Collision struct and clipmove in Blood, too.
2021-12-26 23:08:57 +01:00
Christoph Oelckers
4788c7ba5e
- made Collision derive from a common base class and refactored clipmove to a single engine-side entry point.
...
Done for Doom so far.
2021-12-26 23:08:57 +01:00
Christoph Oelckers
96b9572905
- moved parts of the HitInfo subclasses into the backend.
...
All the game code now needs to do is a single 'using' statement.
2021-12-26 23:08:57 +01:00
Christoph Oelckers
a5ccd2ccd2
- adapted FAFhitscan to the new backend API.
...
Lots of search & replace to change the names of the HitInfo struct, no manual edits outside of FAFhitscan.
2021-12-26 23:08:57 +01:00
Christoph Oelckers
3f43f48b57
- adapted all SW hitscan calls outside of FAFhitscan.
2021-12-26 23:08:56 +01:00
Christoph Oelckers
4bfb03b6b3
- adapted hitscan calls in Exhumed.
2021-12-26 23:08:56 +01:00
Christoph Oelckers
10dce7dd2d
- adapted all hitscan calls in Duke/RR.
2021-12-26 23:08:56 +01:00
Christoph Oelckers
129ce0aea8
- migrated Blood's hitscan calls and its global gHitInfo struct.
2021-12-26 23:08:56 +01:00
Christoph Oelckers
9380819e4e
- initialize actorArray for all games.
...
- the foundation for an actor aware backend.
2021-12-26 23:08:56 +01:00
Christoph Oelckers
52c80f187a
- added coreactor.h
2021-12-26 23:08:55 +01:00
Christoph Oelckers
e526686d1e
- the really final ones.
2021-12-26 23:08:55 +01:00
Christoph Oelckers
7dd2f79676
- the final ones before moving to the backend.
2021-12-26 23:08:55 +01:00
Christoph Oelckers
33d2d80c42
- sector references in remote, some cursectnum replacements.
2021-12-26 23:08:55 +01:00
Christoph Oelckers
104e80e34a
- NEAR_TAG_LIST, also deleted useless OperateWall code.
2021-12-26 23:08:55 +01:00
Christoph Oelckers
b7cfb07245
- all sectnums that can trivially be replaced.
...
Most of the rest is in backend calling code and should be done while cleaning up the backend API.
2021-12-26 23:08:54 +01:00
Christoph Oelckers
19f8458f01
- FindCeilingView, FindFloorView and related things.
2021-12-26 23:08:54 +01:00
Christoph Oelckers
db95dc95d1
- FAF_Sector + SpawnQuake
2021-12-26 23:08:54 +01:00
Christoph Oelckers
98c3d57b73
- ->sectnum in ai.cpp and draw.cpp.
2021-12-26 23:08:54 +01:00
Christoph Oelckers
cf6e75ad54
- the final doable sector[] replacements.
...
The rest needs to be done with the backend.
2021-12-26 23:08:54 +01:00
Christoph Oelckers
e2e0f69393
- deleted deprecated Warp... functions.
2021-12-26 23:08:54 +01:00
Christoph Oelckers
c4f29772ae
- SpawnVis
2021-12-26 23:08:53 +01:00
Christoph Oelckers
1457cf2c0d
- track stuff
2021-12-26 23:08:53 +01:00
Christoph Oelckers
b3eceb3b56
- the remaining trivial sector[] replacements
2021-12-26 23:08:53 +01:00
Christoph Oelckers
1a7cc6d782
- FAFgetzrangepoint + ActorDrop
2021-12-26 23:08:53 +01:00
Christoph Oelckers
959c3bc18b
- springboard
2021-12-26 23:08:53 +01:00
Christoph Oelckers
0345615518
- some smaller changes.
2021-12-26 23:08:52 +01:00
Christoph Oelckers
9a6bd0b7e1
- SectorWallBits
2021-12-26 23:08:52 +01:00
Christoph Oelckers
1763fbc7ff
- OperateSector
2021-12-26 23:08:52 +01:00
Christoph Oelckers
df558bd9a2
- GetUpperLowerSector
2021-12-26 23:08:52 +01:00
Christoph Oelckers
0c9d465e4c
- FAF_Connect* functions and related code.
2021-12-26 23:08:52 +01:00
Christoph Oelckers
96915a646b
- SectorZadjust
2021-12-26 23:08:52 +01:00
Christoph Oelckers
b076edcc6f
- PlayerRemoteReset
2021-12-26 23:08:51 +01:00
Christoph Oelckers
75af6966c9
- FAFHitscan cleanup.
2021-12-26 23:08:51 +01:00
Christoph Oelckers
1a7c70cbbd
- use pointers in FAFHitscan
2021-12-26 23:08:51 +01:00
Christoph Oelckers
6ae8e93de8
- hitinfo.hitwall is also gone.
2021-12-26 23:08:51 +01:00
Christoph Oelckers
270a443c88
- hitinfo.hitsect is gone.
2021-12-26 23:08:51 +01:00
Christoph Oelckers
bcc61470a2
- mostly deal with hitinfo.hitsect.
2021-12-26 23:08:50 +01:00
Christoph Oelckers
f495097663
- first step of replacing hitinfo.hitsect with a pointer.
...
This takes care of easy to handle common patterns
2021-12-26 23:08:50 +01:00
Christoph Oelckers
1162442068
- handle most GetOverlapSector callers.
2021-12-26 23:08:50 +01:00
Christoph Oelckers
11d3a660ad
- GetOverlapSector internals.
2021-12-26 23:08:50 +01:00
Christoph Oelckers
4d5c255b08
- adjust a few warp functions.
2021-12-26 23:08:50 +01:00
Christoph Oelckers
c4e388ef56
- merged SpawnActor wrapper.
2021-12-26 23:08:50 +01:00
Christoph Oelckers
d447e3e86f
- make the sector reference in SINE_WAVE_FLOOR a pointer.
2021-12-26 23:08:49 +01:00
Christoph Oelckers
16480ccfcc
- use sector wrappers where applicable.
2021-12-26 23:08:49 +01:00
Christoph Oelckers
52d9451cbc
- SOP::op_main_sector
2021-12-26 23:08:49 +01:00
Christoph Oelckers
f388efc5ef
- eliminated the redundant SOP::sector array.
2021-12-26 23:08:49 +01:00
Christoph Oelckers
c43d594f34
- SectorIsUnderwaterArea
2021-12-26 23:08:49 +01:00
Christoph Oelckers
4149a335a3
- SOP::mid_sector
2021-12-26 23:08:48 +01:00
Christoph Oelckers
b936345e11
- sectnum() cleanup and AnimSet return type.
2021-12-26 23:08:48 +01:00
Christoph Oelckers
f68d17133a
- SectorSetup, SetupSectorObject
2021-12-26 23:08:48 +01:00
Christoph Oelckers
3b16db7a0f
- SectorMidPoint
2021-12-26 23:08:48 +01:00
Christoph Oelckers
da8a5f282d
- CopySectorMatch
2021-12-26 23:08:48 +01:00
Christoph Oelckers
de5377cb2c
- WallBreakPosition
2021-12-26 23:08:48 +01:00
Christoph Oelckers
d6cd291030
- use a wall pointer in SINE_WAVE
2021-12-26 23:08:47 +01:00
Christoph Oelckers
33b3864d14
- final wall not related to hitscan/neartag.
2021-12-26 23:08:47 +01:00
Christoph Oelckers
f0dd018ad4
- use pointers in sparks interface.
2021-12-26 23:08:47 +01:00
Christoph Oelckers
4acca06c71
- the final wall iterators.
2021-12-26 23:08:47 +01:00
Christoph Oelckers
bb315f8148
- more wall cleanup
2021-12-26 23:08:47 +01:00
Christoph Oelckers
031ad6e4a5
- wall[] in wallmove.cpp
2021-12-26 23:08:47 +01:00
Christoph Oelckers
01c8662c3c
- wall[] in track.cpp
2021-12-26 23:08:46 +01:00
Christoph Oelckers
770b242c76
- wall[] in sector.cpp
2021-12-26 23:08:46 +01:00
Christoph Oelckers
5cafd7b591
- QueueHole
2021-12-26 23:08:46 +01:00
Christoph Oelckers
e3ad05d4d7
- quick cursectnum replacements.
2021-12-26 23:08:46 +01:00
Christoph Oelckers
c0496420ec
- LadderSector
2021-12-26 23:08:46 +01:00
Christoph Oelckers
991795df4b
- CollectPortals
2021-12-26 23:08:46 +01:00
Christoph Oelckers
d0eece244b
- got rid of most nextsector references.
2021-12-26 23:08:45 +01:00
Christoph Oelckers
612a9e258e
- auto replacement.
2021-12-26 23:08:45 +01:00
Christoph Oelckers
b7a2687a7b
- all nextwall references removed.
2021-12-26 23:08:45 +01:00
Christoph Oelckers
ca536ce5bd
- quick wall[] replacements.
2021-12-26 23:08:45 +01:00
Christoph Oelckers
ce4a44dd84
- hitinfo.hitwall.
2021-12-26 23:08:45 +01:00
Christoph Oelckers
9f9c01284b
- all wall loops using point2.
2021-12-26 23:08:44 +01:00
Christoph Oelckers
7e6de45e46
- WallSetup + SpriteSetup
2021-12-26 23:08:44 +01:00
Christoph Oelckers
d8893f3521
- DoSlidorInstantClose
2021-12-26 23:08:44 +01:00
Christoph Oelckers
9c21483279
- wall[] in light.cpp and player.cpp
2021-12-26 23:08:44 +01:00
Christoph Oelckers
732aa2023b
- over_sp/under_sp sectnums
2021-12-26 23:08:44 +01:00
Christoph Oelckers
302016956f
- sector parameters in SpawnActor calls.
2021-12-26 23:08:43 +01:00
Christoph Oelckers
e17da708e7
- lots of ->sectnum search & replace.
2021-12-26 23:08:43 +01:00
Christoph Oelckers
d1f156dec3
- most InsertActor calls.
2021-12-26 23:08:43 +01:00
Christoph Oelckers
cab2181ddc
- PrevWall
2021-12-26 23:08:43 +01:00
Christoph Oelckers
5cf776daaa
- sector save struct.
2021-12-26 23:08:43 +01:00
Christoph Oelckers
eb82f60981
- FAFcansee.
2021-12-26 23:08:42 +01:00
Christoph Oelckers
3ccf3ab52d
- pointers in mirror struct.
2021-12-26 23:08:42 +01:00
Christoph Oelckers
4d8434ffd2
- CircleCamera and interpso.cpp
2021-12-26 23:08:42 +01:00
Christoph Oelckers
317aa3f217
- CopySectorWalls
2021-12-26 23:08:42 +01:00
Christoph Oelckers
75d59196fc
- WallBreakPosition (wall pointer only)
2021-12-26 23:08:42 +01:00
Christoph Oelckers
6e018bd056
- DoSlidorMoveWalls
2021-12-26 23:08:42 +01:00
Christoph Oelckers
ac655abc42
- search & replace only.
2021-12-26 23:08:41 +01:00
Christoph Oelckers
82447233a7
- several getangle(delta) blocks.
2021-12-26 23:08:41 +01:00
Christoph Oelckers
0a0cc85407
- renamed HITINFO fields.
2021-12-26 23:08:41 +01:00
Christoph Oelckers
993d460420
- another delta.
2021-12-26 23:08:41 +01:00
Christoph Oelckers
fe3a02420a
- major cleanup and condensing of DoSlidorInterp
...
The logic here still looks very weird but let's keep it to ensure proper functioning.
2021-12-26 23:08:41 +01:00
Christoph Oelckers
a93dbaf5fe
- SW: simplified rotation interpolation functions.
2021-12-26 23:08:40 +01:00
Christoph Oelckers
33c707c708
- Duke: getangle simplification
2021-12-26 23:08:40 +01:00
Christoph Oelckers
5d78b228b7
- the final bits and pieces in Blood
2021-12-26 23:08:40 +01:00
Christoph Oelckers
41506f35db
- calcviewpitch
2021-12-26 23:08:40 +01:00
Christoph Oelckers
879407538e
- several 'sectnum's.
2021-12-26 23:08:40 +01:00
Christoph Oelckers
9388f839b6
- main view render function and dependencies.
2021-12-26 23:08:40 +01:00
Christoph Oelckers
0797e7ac90
- trInit
2021-12-26 23:08:39 +01:00
Christoph Oelckers
7442edc59f
- more trigger stuff
2021-12-26 23:08:39 +01:00
Christoph Oelckers
2967edf827
- triggers.cpp subfunctions.
2021-12-26 23:08:39 +01:00
Christoph Oelckers
8f3c97dde4
- SetSectorState
2021-12-26 23:08:39 +01:00
Christoph Oelckers
7f94eee9bb
- busy interface + unlimiting.
2021-12-26 23:08:00 +01:00
Christoph Oelckers
28840b3afa
- pass sectors to AddBusy and ReverseBusy.
2021-12-26 22:35:08 +01:00
Christoph Oelckers
9d423d19cd
- partial transition of busy interface to sector pointers.
2021-12-26 22:25:59 +01:00
Christoph Oelckers
9017fee74f
- FindSector.
2021-12-25 21:29:17 +01:00
Christoph Oelckers
b8953849ee
- secnum in fx.cpp
2021-12-25 21:29:17 +01:00
Christoph Oelckers
765ff7609d
- all remaining ->sectnum in nnexts.cpp.
2021-12-25 21:29:16 +01:00
Christoph Oelckers
d0376e5485
- nnext sound functions.
2021-12-25 21:29:16 +01:00
Christoph Oelckers
b7c4e4b9fa
- useSlopeChanger
2021-12-25 21:29:16 +01:00
Christoph Oelckers
36d66f14b5
- smaller stuff
2021-12-25 21:29:16 +01:00
Christoph Oelckers
4438c20cb4
- fxProcess
2021-12-25 21:29:16 +01:00
Christoph Oelckers
f52a542fad
- callback interface.
2021-12-25 21:29:15 +01:00
Christoph Oelckers
e4e5bd0966
- CFX::fxSpawnActor
2021-12-25 21:29:15 +01:00
Christoph Oelckers
331a7654bf
- actSpawnThing
2021-12-25 21:29:15 +01:00
Christoph Oelckers
443cfc991c
- actSpawnSprite, ZONE, startsectnum and dbLoadMap
2021-12-25 21:29:15 +01:00
Christoph Oelckers
b187f3c028
- CheckProximity
2021-12-25 21:29:15 +01:00
Christoph Oelckers
e172d0c138
- actRadiusDamage
2021-12-25 21:29:14 +01:00
Christoph Oelckers
3d336c13ac
- GetClosestSpriteSectors
2021-12-25 21:29:14 +01:00
Christoph Oelckers
f9b2b6311f
- slope checks in sprite display code.
2021-12-25 21:29:14 +01:00
Christoph Oelckers
b063e19980
- gFX.fxSpawnActor and a few other simple replacements.
2021-12-25 21:29:14 +01:00
Christoph Oelckers
d99542a678
- get*slope and sfxPlay3DSound
2021-12-25 21:29:14 +01:00
Christoph Oelckers
9343e3f9c4
- handle most cansee calls.
2021-12-25 21:29:13 +01:00
Christoph Oelckers
c8f4caf364
- animatesprite.cpp.
2021-12-25 21:29:13 +01:00
Christoph Oelckers
a34e89c8b7
- debrisMove + getting rid of the index based ClipMove variant.
2021-12-25 21:29:13 +01:00
Christoph Oelckers
94671c5b05
- MoveMissile + GetZRangeXYZ
2021-12-25 21:29:13 +01:00
Christoph Oelckers
9a85ff9bad
- MoveThing
2021-12-25 21:29:13 +01:00
Christoph Oelckers
611d35222e
- MoveDude
2021-12-25 21:29:13 +01:00
Christoph Oelckers
6ee9ae7ec6
- actFloorBounceVector
2021-12-25 21:29:12 +01:00
Christoph Oelckers
38c0bc915d
- get rid of '.sectnum'.
2021-12-25 21:29:12 +01:00
Christoph Oelckers
669aa033e9
- wrap the bit tests for GetClosestSpriteSectors's return.
...
They need to check spritenum which is supposed to go away, so this function avoids keeping obsolete references.
2021-12-25 21:29:12 +01:00
Christoph Oelckers
368a21f75e
- useDataChanger + setDataValueOfObject
2021-12-25 21:29:12 +01:00
Christoph Oelckers
a7fc5d2193
- refactored most wall[] references.
...
What's left is in either setup code or the mirror setup.
2021-12-25 21:29:12 +01:00
Christoph Oelckers
dd1e7dd94f
- use HITINFO to let ActionScan return its result.
2021-12-25 21:29:11 +01:00
Christoph Oelckers
6fcc652111
- usePictureChanger + useIncDecGen
...
# Conflicts:
# source/games/blood/src/nnexts.cpp
2021-12-25 21:29:11 +01:00
Christoph Oelckers
96b6bb21ef
- several smaller places.
...
This gets rid of the less frequent names to look for.
2021-12-25 21:29:11 +01:00
Christoph Oelckers
063e3fb34e
- changed parameters of several modern action functions.
2021-12-25 21:29:11 +01:00
Christoph Oelckers
759a8428fa
- dragPoint
2021-12-25 21:29:11 +01:00
Christoph Oelckers
7bffcad49f
- trMessage* functions.
...
# Conflicts:
# source/games/blood/src/eventq.cpp
2021-12-25 21:29:10 +01:00
Christoph Oelckers
45a8654fc2
- use EventObject in SEQINST
2021-12-25 21:29:10 +01:00
Christoph Oelckers
2721a59dc4
- use wall pointers in gib code.
2021-12-25 21:29:10 +01:00
Christoph Oelckers
f07fafea9c
- use EventObject for OBJECTS_TO_TRACK.
2021-12-25 21:29:10 +01:00
Christoph Oelckers
dbbca2972a
- use EventObject for condition serials.
2021-12-25 21:29:10 +01:00
Christoph Oelckers
da4ec51782
- convert info to an event object in condCheckMixed before doing any checks.
2021-12-25 21:29:09 +01:00
Christoph Oelckers
2b2a8c3ec8
- condPush cleanup in nnexts.cpp.
2021-12-25 21:29:09 +01:00