Mitchell Richters
828e46a8da
- Remove the TVector2 (const TVector3<vec_t> &other)
constructor.
...
* This narrowing constructor was causing a problem with a `clamp()` overload in the next commit.
* Believe this is a product of a by-gone time before we had the `XY()` method on `TVector3<T>` objects.
2023-10-03 23:07:44 +11:00
Christoph Oelckers
dd2ea96d6c
turn players into DObjects and fix several bugs with bad memory access.
...
* DObjects may not be memset to 0.
* There was still code trying to retrieve the player index with pointer artithmetic. With an array of pointers this does not work.
2023-10-02 21:03:59 +02:00
Mitchell Richters
dbb11eed4d
- SW: Rename PLAYER
struct to SWPlayer
.
2023-10-02 15:42:55 +11:00
Mitchell Richters
a20e2b64f9
- SW: Wrap access to player's actor pointer.
2023-10-02 15:30:35 +11:00
Mitchell Richters
2a284c73c9
- SW: Remove all remaining angle wrapper usage and the wrappers themselves.
2022-12-11 18:42:00 +01:00
Mitchell Richters
be466fec8d
- Wrap access to current yaw.
2022-12-11 18:41:57 +01:00
Mitchell Richters
b9f5bb71cc
- Merge PlayerHorizon
and PlayerAngle
structs into PlayerAngles
struct.
2022-12-11 18:41:56 +01:00
Mitchell Richters
bd063de5f5
- Rename PlayerAngle::ang
in preparation for replacement work.
2022-12-11 18:41:54 +01:00
Mitchell Richters
703db0e3c3
- SW: Remove PLAYER::posGet()
.
2022-12-11 18:41:49 +01:00
Mitchell Richters
be06582062
- SW: Remove PLAYER::posAdd()
.
2022-12-11 18:41:49 +01:00
Mitchell Richters
0917434888
- SW: Remove PLAYER::posXY()
.
2022-12-11 18:41:49 +01:00
Mitchell Richters
a54d0f7639
- SW: Wrap calls that get PLAYER::PlayerNowPosition
.
2022-12-11 18:41:46 +01:00
Mitchell Richters
964557ab6b
- SW: Wrap calls that add to PLAYER::PlayerNowPosition
.
2022-12-11 18:41:46 +01:00
Mitchell Richters
7d0b2fba69
- SW: Wrap calls to PLAYER::PlayerNowPosition.XY()
.
2022-12-11 18:41:45 +01:00
Mitchell Richters
cf25884675
- SW: Rename Player::pos
to Player::PlayerNowPosition
to make it easier to search upon.
2022-12-11 18:41:45 +01:00
Christoph Oelckers
f45acdc2a8
- floatified two SOP clipdist variables
2022-10-30 16:51:08 +01:00
Christoph Oelckers
9257fe0078
- fixed clipmove factors.
2022-10-30 16:51:08 +01:00
Christoph Oelckers
600c2a0243
- map all clipmove calls to the version with a full float interface.
2022-10-30 16:50:48 +01:00
Christoph Oelckers
116ba340b2
- further hitscan overhaul.
...
* added floating point sprite intersect handlers for all sprite types. Hopefully this code is more understandable than Build's original variant.
* cleaned up intersectSprite a bit and moved the geometry math into the utility header.
* made some minor corrections to neartag.
* moved SW's testpointinquad to the backend because it was useful here.
2022-10-22 20:41:26 +02:00
Christoph Oelckers
ef6ba17dfd
- more cleanup.
2022-10-17 17:03:52 +02:00
Christoph Oelckers
f683f89580
- comment cleanup
2022-10-16 23:54:18 +02:00
Christoph Oelckers
22bd451872
- minor math cleanup
2022-10-15 18:22:08 +02:00
Christoph Oelckers
608c964f02
- unwrap all places where the vect vectors were just used in their native form.
2022-10-15 17:52:07 +02:00
Christoph Oelckers
4547372d4d
- use access functions for reading _vect.
2022-10-15 17:52:07 +02:00
Christoph Oelckers
9d101a4f73
- renamed player vector variables
2022-10-15 17:52:06 +02:00
Christoph Oelckers
fd5cf15e0e
- function separators
2022-10-15 17:16:57 +02:00
Christoph Oelckers
398e66f359
- migrated all uses outside of track.cpp.
2022-10-15 13:31:57 +02:00
Christoph Oelckers
a3521c0b7e
- added wrappers, part 2
2022-10-15 13:31:56 +02:00
Christoph Oelckers
d4a0972733
- added wrappers, part 1
2022-10-15 13:31:56 +02:00
Christoph Oelckers
d2253a3aec
- renamed angle stuff.
2022-10-15 13:31:56 +02:00
Christoph Oelckers
caa41e312d
- floating point MultiClip API.
2022-10-15 13:31:55 +02:00
Christoph Oelckers
d80b39d184
- floatified clipbox/MultiClip of SW
2022-10-15 13:31:55 +02:00
Christoph Oelckers
17b117e86b
- renamed another set of variables.
2022-10-15 13:31:55 +02:00
Christoph Oelckers
0b642dc631
- floatified large parts of SO movement code.
2022-10-15 13:30:09 +02:00
Christoph Oelckers
72869304ea
- add_int_ppos_XY
2022-10-06 20:50:46 +02:00
Christoph Oelckers
5db79fecd7
- more int_ppos
2022-10-06 20:50:45 +02:00
Christoph Oelckers
8e966fc575
- int_ppos replacements
2022-10-06 20:50:45 +02:00
Christoph Oelckers
da73d2bba4
- renamed player position variables.
2022-10-06 20:50:45 +02:00
Mitchell Richters
b23e77d9c7
- Replace player's ang
with DAngle
object.
...
* This commit does not build. Committed items are everything that's been done by find and replace.
* Next commit has hand-performed changes that are better separated out for clarity.
2022-10-05 00:36:27 +02:00
Christoph Oelckers
d1be430fbf
- eliminated PLAYERp
2021-12-31 15:59:11 +01:00
Christoph Oelckers
392397c2b0
- replaced SECTOR_OBJECTp
2021-12-31 15:50:44 +01: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
bf7437c827
- SW: Remove ON
pre-processor define and eliminate mytypes.h
.
2021-12-30 09:58:46 +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
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