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
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
Christoph Oelckers
5dfc79bdbe
- MarkSectorSeen
2021-12-26 23:09:48 +01:00
Christoph Oelckers
a22634f228
- sectnum reduction.
2021-12-26 23:09:47 +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
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
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
b3bbf8932e
- same procedure for Exhumed.
2021-12-26 23:08:58 +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
4bfb03b6b3
- adapted hitscan calls in Exhumed.
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
624ad6a2ad
- cleanup stuff.
...
Removed unneeded prototypes, renamed some variables; no logic changes.
2021-12-25 21:29:05 +01:00
Christoph Oelckers
943641d18e
- renamed all nSector pointers to pSector
...
No logic changes!
2021-12-25 21:29:04 +01:00
Christoph Oelckers
a3ecbe6371
- MoveQS
2021-12-25 21:29:04 +01:00
Christoph Oelckers
b1b7608cf7
- most remaining sectnum references.
2021-12-25 21:29:04 +01:00
Christoph Oelckers
2027c6ebaf
- the last sector[]
2021-12-25 21:29:04 +01:00
Christoph Oelckers
6e786fcf1e
- RadialDamage + DimSector
2021-12-25 21:29:04 +01:00
Christoph Oelckers
24d4680f6e
- sector[] in move.cpp
2021-12-25 21:29:03 +01:00
Christoph Oelckers
80f80ed5e5
- initsect
2021-12-25 21:29:03 +01:00
Christoph Oelckers
f09e7ed32f
- spawn functions.
2021-12-25 21:29:03 +01:00
Christoph Oelckers
40ae38c173
- calcChaseCamPos.
2021-12-25 21:29:03 +01:00
Christoph Oelckers
a3f1821670
- nPlayerViewSect
2021-12-25 21:29:03 +01:00
Christoph Oelckers
eaa155d52e
- various sectnums,
2021-12-25 21:29:02 +01:00
Christoph Oelckers
9b19845dfb
- AddMovingSector/CheckPushBlock
2021-12-25 21:29:02 +01:00
Christoph Oelckers
63d66e95c5
- runlist_ProcessSectorTag
2021-12-25 21:29:02 +01:00
Christoph Oelckers
1163a79da9
- renamed sectp in runlist_ProcessSectorTag
2021-12-25 21:29:02 +01:00
Christoph Oelckers
a58548c2f9
- AIElev
2021-12-25 21:29:02 +01:00
Christoph Oelckers
7713723045
- Bullets and bobs.
2021-12-25 21:29:02 +01:00
Christoph Oelckers
b191bca49e
- BuildAnim
2021-12-25 21:29:01 +01:00
Christoph Oelckers
2394420f48
- quick replacements
2021-12-25 21:29:01 +01:00
Christoph Oelckers
109ff8c3cb
- Above and Below
2021-12-25 21:29:01 +01:00
Christoph Oelckers
7b84a1464c
- don't access invalid sector in DrawView.
...
Old bug exposed by having operator[] assert on bad access to sector[].
2021-12-25 21:29:01 +01:00
Christoph Oelckers
aee560624d
- some more sectors.
2021-12-25 21:29:01 +01:00
Christoph Oelckers
78d9b78193
- most of the rest of the walls.
2021-12-25 21:29:00 +01:00
Christoph Oelckers
5374dafb56
- switches
2021-12-25 21:29:00 +01:00
Christoph Oelckers
ec12eb11f6
- palette loops for renderer.
2021-12-25 21:29:00 +01:00
Christoph Oelckers
cdef530597
- PlayerPushSect
2021-12-25 21:29:00 +01:00
Christoph Oelckers
5e01841f1e
- MoveSector et.al.
2021-12-25 21:29:00 +01:00
Christoph Oelckers
0b254255e2
- sector ambience
2021-12-25 21:28:59 +01:00
Christoph Oelckers
c933eff59f
- Traps
2021-12-25 21:28:59 +01:00
Christoph Oelckers
e57f9e08e9
- slides.
2021-12-25 21:28:59 +01:00
Christoph Oelckers
44639faabb
- Flickers
2021-12-25 21:28:59 +01:00
Christoph Oelckers
e90d1266ae
- Glows.
2021-12-25 21:28:59 +01:00
Christoph Oelckers
dfbb5192fb
- addFlash at.al.
2021-12-25 21:28:59 +01:00
Christoph Oelckers
20891f276d
- use pointers in runlist_ProcessWallTag and all its subfunctions.
2021-12-25 21:28:58 +01:00
Christoph Oelckers
2d937891ac
- 3x twoSided
2021-12-25 21:28:58 +01:00
Christoph Oelckers
2d1f5fc576
- Exhumed: some cleanup.
2021-12-25 21:28:58 +01:00
Christoph Oelckers
61d5680950
more wall loops
2021-12-25 21:28:58 +01:00
Christoph Oelckers
269bac76cd
loop cleanup in SnapSectors
2021-12-25 21:28:58 +01:00
Christoph Oelckers
9203ca425e
Exhumed: ExplodeEnergyBlock
2021-12-25 21:28:57 +01:00
Christoph Oelckers
e179b9332d
- all shorts reviewed.
...
Should be all clear now - the biggest limiter in Exhumed is the run list with ~25000 entries which may need more work if it is to be extended.
2021-12-25 21:28:53 +01:00
Christoph Oelckers
83a928adde
- next 100 shorts reviewed.
...
seq.cpp/seq.h was just renamed to int16_t.
2021-12-25 21:28:52 +01:00
Christoph Oelckers
d73c7aa543
- short review and disasm variable renaming
...
(down to 200 shorts)
2021-12-25 21:28:52 +01:00
Christoph Oelckers
033a73bce0
- Exhumed short review, part 2.
...
Down to 350.
2021-12-25 21:28:52 +01:00
Christoph Oelckers
1790ced1f8
- Exhumed: renamed disassembly fields in player struct.
2021-12-25 21:28:52 +01:00
Christoph Oelckers
30b42d24a0
- Exhumed short review
...
(down to < 550)
2021-12-25 21:28:52 +01:00
Christoph Oelckers
d5c27e6239
- unlimited the bit arrays for the automap and the bunch drawer, removed some leftover constants/declarations.
2021-12-25 21:28:50 +01:00
Christoph Oelckers
a21f6b6240
- migrated Exhumed's sector extensions to the actual struct.
2021-12-25 21:28:49 +01:00
Mitch Richters
c6f2aaf1b7
- Miscellaneous fixes to commit to change sector checks over to validSectorIndex()
.
...
* Fix missed changeover in Blood's `actSpawnSprite()`.
* Fix non-negated check on a `validSectorIndex()` call in Blood's `debrisMove()`.
* Removed a superfluous terminator in Duke's `actor.cpp`.
* Fixed bad call to `validSectorIndex()` in Exhumed's `AIAnim::Tick()`.
2021-12-25 21:28:37 +01:00
Christoph Oelckers
999ec3c95a
use validSectorIndex checks where appropriate.
...
Let’s hope that this sloppiness doesn’t have negative effects with broken maps.
# Conflicts:
# source/games/sw/src/sprite.cpp
# Conflicts:
# source/games/duke/src/prediction.cpp
# source/games/duke/src/render.cpp
2021-12-25 21:28:37 +01:00
Christoph Oelckers
7c4233bcf7
- replaced fallthrough__ with [[fallthrough]] as we are requiring C++17 and don't need workarounds for that.
2021-12-14 12:27:28 +01:00
Christoph Oelckers
7daa501a4d
- removed all #include "compat.h" except the one in build.h
...
Still all compiles fine.
2021-12-14 12:24:10 +01:00
Christoph Oelckers
e104316e75
- fixed bad parameter to getzrange.
...
This originated from 1d39bb371e
where the getzrange_old function was removed
2021-12-13 09:39:57 +01:00
Christoph Oelckers
5bb114ba6e
- fixed two bad actor references in Exhumed's radial damage code.
...
The radial source is passed through pRadialActor, not pObjActor.
2021-11-30 22:44:54 +01:00
Christoph Oelckers
71dfe7ecfe
- fixed handling for cl_capfps and cl_nointerpolate to never use any smoothratio value other than 1.0.
2021-11-29 00:57:11 +01:00
Christoph Oelckers
cd3288860a
- fixed automap player drawing for follpw mode off in all games.
2021-11-29 00:56:32 +01:00
Christoph Oelckers
4e31360fe4
- cleaned up dragpoint
...
This still contained some code for EDuke32's TROR and used a shared static global array.
It now uses the BFSSearch class to manage its bit array to unlimit the size of its working set and to avoid reallocation.
2021-11-29 00:56:25 +01:00
Christoph Oelckers
33a3e0d8bf
- deleted some unused global variables, code simplification plus extended wall index field in Trap
...
Todo: give fields more meaningful names!
2021-11-29 00:56:25 +01:00
Christoph Oelckers
c1c59006bc
- Exhumed: cleaned up disassembly-like code in SnapSectors
2021-11-29 00:56:25 +01:00
Christoph Oelckers
e6682f4489
- Exhumed: some simple wall stuff
2021-11-29 00:56:25 +01:00
Christoph Oelckers
7b1345d3e5
- Exhumed: wall stuff in AddFlash
2021-11-29 00:56:24 +01:00
Christoph Oelckers
6fc43287b3
- redid Exhumed's BelowNear function.
...
Use BFSSearch, only run one iteration of the search and only run the search if the result is actually used.
2021-11-29 00:55:44 +01:00
Christoph Oelckers
269f2580b9
- obsolete prototypes in Exhumed
2021-11-29 00:55:43 +01:00
Christoph Oelckers
4f493d3de1
- Exhumed: made all nPlayer variables ints
...
This looks safe
2021-11-29 00:55:43 +01:00
Christoph Oelckers
b9b4f1e037
- shorts replaced in Exhumed
...
only a small part, the easy stuff
2021-11-29 00:55:42 +01:00
Christoph Oelckers
d63b6cda37
- exhumed: made all nAngle variables full ints
2021-11-29 00:55:42 +01:00
Christoph Oelckers
2fdc2ec00f
- small stuff
2021-11-29 00:55:32 +01:00
Christoph Oelckers
01abe7b2ac
- addressed most unused/uninitialized variable warnings from MSVC.
2021-11-29 00:55:30 +01:00
Christoph Oelckers
c6bd5c04c7
- fixed most warnings GCC pointed out in game code.
2021-11-29 00:55:29 +01:00
Mitch Richters
e491d15ff9
- Move InputScale()
out of inputstate.cpp and into i_time.cpp
as I_GetInputFrac()
to make it available to GZDoom for potential future requirements.
...
* As part of this, feed the output of `I_GetInputFrac()` to `gi->GetInput()` instead of having each game's virtual override calling it locally.
2021-11-29 00:55:01 +01:00
Christoph Oelckers
5a6d4f88d5
- Exhumed: eliminate all remaining MAXSECTORS references
2021-11-11 23:46:50 +01:00
Christoph Oelckers
794c4483ca
-Exhumed: better handling of BuildNear/BelowNear.
...
BuildNear was only called right before calling BelowNear - now both functions are merged and use the global GlobalSectorList array for storage.
Since the data in this is local to this function it is also unnecessary to write it out to a savegame as it will get recereate each time before it is used.
2021-11-11 23:45:59 +01:00
Christoph Oelckers
d70e76e5c6
- Exhumed: use dynamic arrays for the palette backup in DrawView.
2021-11-11 23:34:03 +01:00
Christoph Oelckers
f2e344a235
- removed magic flags added to sector indices in Polymost.
...
These are better done as separate function arguments.
2021-11-11 21:28:53 +01:00
Christoph Oelckers
5465c9976c
- replaced a few chars in Exhumed
2021-11-09 17:46:39 +01:00
Christoph Oelckers
baa3e531d4
- Exhumed: more ints for shorts
2021-11-09 17:32:50 +01:00
Christoph Oelckers
9b52b3b451
- made all nSector variables full ints.
...
This already takes care of most sector[] accesses in Exhumed
2021-11-09 17:27:54 +01:00
Christoph Oelckers
366df9d4b6
- Exhumed: use the sprite's sector() member where possible.
2021-11-09 00:26:46 +01:00
Christoph Oelckers
ef241acda2
- Exhumed: some quick sector[] substitution
2021-11-09 00:12:18 +01:00
Christoph Oelckers
94b2b0af31
- widen sector index in engineLoadBoard to 32 bit
2021-11-09 00:07:00 +01:00
Christoph Oelckers
2d91786516
- changed all sector variables being passed to pushmove to full ints
2021-11-08 23:18:40 +01:00
Christoph Oelckers
3811147f70
- use proper clipmove variant in Blood and Exhumed
...
This merely extends some shorts to full ints to match the desired parameter's size.
2021-11-08 23:11:30 +01:00
Christoph Oelckers
477a2a23e6
- nextSector in runlist
2021-11-08 18:37:21 +01:00