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
1e938e2b44
- deleted redundant sprite inlines.
...
All calls have been transitioned to actors.
2021-12-30 09:57:44 +01:00
Christoph Oelckers
7bea7cdae1
- handle all wp referencing actor->s().
2021-12-30 09:57:42 +01:00
Christoph Oelckers
0175d27ffa
- handle all 'np->' not referencing actorNew.
2021-12-30 09:57:41 +01:00
Christoph Oelckers
b488361639
- more macros in weapons.cpp converted into functions.
2021-12-30 09:57:40 +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
49cc2b3cad
- quake.cpp plus SP_TAG13/14 cleanup
2021-12-30 09:57:39 +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
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
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
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
395a269feb
- globally replaced ->u()->.
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
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
09634c4993
- use actors instead of sprites in the new renderer's API.
2021-12-30 09:57:15 +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
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
Christoph Oelckers
d9d05e90b5
- globally replaced all occurences of '->s().' with '->spr.'
2021-12-30 09:57:00 +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
Mitchell Richters
4562a0ca97
- SW: Add some nullptr checks to some inlines to prevent noclip crashes.
2021-12-26 23:10:06 +01:00
Christoph Oelckers
db240ea2b0
- GC support in SW.
...
- SW GC WIP
2021-12-26 23:10:00 +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
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
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
0a9792ac28
- adapted SW's sound system to actors.
2021-12-26 23:09:46 +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
321608e5ac
- made cursectnum et. al. real pointers.
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
afd05add96
- adapted several clipmove calls in SW.
2021-12-26 23:09:40 +01:00
Christoph Oelckers
30f36e4871
- use backend's collision struct in SW.
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