Commit graph

4380 commits

Author SHA1 Message Date
Christoph Oelckers
48cbdeb697 - replaced all possible __int_pmid with access functions. 2022-10-06 20:50:44 +02:00
Christoph Oelckers
819297a409 - SW: renamed SECTOR_OBJECT::pmid 2022-10-06 20:50:44 +02:00
Christoph Oelckers
eef7802111 - SW: floatify some set_int_pos calls 2022-10-06 20:50:44 +02:00
Christoph Oelckers
049c6f948d - deleted unused SpawnWallHole function. 2022-10-06 20:50:43 +02:00
Christoph Oelckers
e8d18e42d1 - SW: QueueHole 2022-10-06 20:50:43 +02:00
Christoph Oelckers
661655fb67 - SW: use a DVector3 in SpawnVis 2022-10-06 20:50:43 +02:00
Christoph Oelckers
89816f4582 - dumped broken and useless xyrand function.
Didn't work, wasn't used anywhere else, so a properly done local inline is preferable.
2022-10-06 20:44:52 +02:00
Christoph Oelckers
3a9f9988f4 - redid clipinsidebox* functions.
* Completely rewritten to be less obtuse.
* Consolidated the two variants.
* Renamed to be clearer about what they do.
2022-10-05 18:31:45 +02:00
Christoph Oelckers
b9d0c9d6ba - simplified slope sprite code a bit and got rid of clipinsidebox overload. 2022-10-05 18:29:30 +02:00
Christoph Oelckers
e6f1d92567 - use floats for spawning Exhumed actors 2022-10-05 18:25:57 +02:00
Christoph Oelckers
21944d5ac2 - updatesectorz with DVector3. 2022-10-05 18:22:07 +02:00
Christoph Oelckers
643d3e7eba - SW’s BulletHitSprite 2022-10-05 18:19:56 +02:00
Christoph Oelckers
b3d9320d54 - Distance in SW 2022-10-05 18:18:27 +02:00
Christoph Oelckers
84f690654e - hitpos replacements in spawn calls 2022-10-05 18:17:15 +02:00
Christoph Oelckers
5505c362e2 - floatified hitpos 2022-10-05 18:11:59 +02:00
Christoph Oelckers
1f96b4eac6 - Warp wrappers 2022-10-05 18:11:12 +02:00
Christoph Oelckers
55ade2eda4 - use int_hitpos() access function where applicable 2022-10-05 18:10:44 +02:00
Christoph Oelckers
296b5d7edd - renamed HitInfo::hitpos 2022-10-05 18:03:41 +02:00
Christoph Oelckers
086c699df0 - use float coords for spawning some SW actors. 2022-10-05 18:01:57 +02:00
Christoph Oelckers
0c8ed75d54 - SW: SpawnActor with float vector 2022-10-05 18:01:21 +02:00
Christoph Oelckers
8f4c418a1b - pos simplifications 2022-10-05 18:00:25 +02:00
Christoph Oelckers
46aa695b54 - add a float version of ActorZOfMiddle. 2022-10-05 17:59:32 +02:00
Christoph Oelckers
cdff2b12cc - renamed ActorZOfMiddle 2022-10-05 17:58:37 +02:00
Christoph Oelckers
360e01a778 another batch of set_int_pos in Exhumed. 2022-10-05 17:38:44 +02:00
Christoph Oelckers
f485f9d42e - batch of set_int_pos in Exhumed 2022-10-05 17:36:31 +02:00
Christoph Oelckers
64391c52f9 - large batch of set_int_pos, minus Exhumed 2022-10-05 17:33:01 +02:00
Mitchell Richters
478e7a6801 - Eliminate some TAngle floating point Build method usage. 2022-10-05 00:36:31 +02:00
Mitchell Richters
d28d6cd4cf - Utilise actor sprite's full precision in instances where angle was converted to Build and back again. 2022-10-05 00:36:30 +02:00
Mitchell Richters
5c84f93c08 - Use the static constexpr nullAngle everywhere possible. 2022-10-05 00:36:30 +02:00
Mitchell Richters
02dfe2cb62 - Repair interpolation issues following change of sprite angles from integer to DAngle types. 2022-10-05 00:36:30 +02:00
Christoph Oelckers
fe6fcdff1f - use DAngle for actors
Note that intangle needs to be kept - primarily for SW's ST tags.
2022-10-05 00:36:29 +02:00
Christoph Oelckers
6aaee85875 - leftover binangle uses from the coordinate refactoring. 2022-10-05 00:36:29 +02:00
Christoph Oelckers
02ce593f06 -removed leftover binangles in Blood's animatesprites.cpp 2022-10-05 00:36:28 +02:00
Mitchell Richters
abb8b87be1 - Eliminate last remaining binangle inline utilities. 2022-10-05 00:36:28 +02:00
Mitchell Richters
c25493762b - Eliminate bvectangbam(). 2022-10-05 00:36:28 +02:00
Mitchell Richters
ad908719ec - Remaining manual changes to replace player's ang with DAngle object. 2022-10-05 00:36:27 +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
Mitchell Richters
7a6f5c0864 - Replace binangle usage in PlayerHorizon::calcviewpitch() with DAngle object. 2022-10-05 00:36:27 +02:00
Mitchell Richters
dbc46e2a75 - Change out PlayerAngle::settarget()'s input from binangle to DAngle. 2022-10-05 00:36:27 +02:00
Mitchell Richters
a090f31bc4 - Change out PlayerAngle::addadjustment()'s input from binangle to DAngle. 2022-10-05 00:36:26 +02:00
Mitchell Richters
782fb08209 - SW: Make better use of some TAngle backend utilities. 2022-10-05 00:36:26 +02:00
Mitchell Richters
13ea55b4cb - Replace player's rotscrnang and look_ang angles with DAngle objects.
* Went the el cheapo route and added some floating point Build angle methods. As these and the integer build methods are really just refactoring aids, we'll come back to this in due course.
2022-10-05 00:36:26 +02:00
Mitchell Richters
d3022947eb - Replace use of binangle in gi->processSprites() with DAngle object. 2022-10-05 00:36:24 +02:00
Mitchell Richters
d6f405c229 - Blood: Remove leftover Polymost draw code prototype. 2022-10-05 00:36:24 +02:00
Mitchell Richters
6167448f27 - Blood: Replace all uses of binangle with DAngle objects. 2022-10-05 00:36:24 +02:00
Mitchell Richters
0b33f39fcd - Duke: Replace all uses of binangle with DAngle objects. 2022-10-05 00:36:24 +02:00
Mitchell Richters
aee102ba73 - Exhumed: Replace all uses of binangle with DAngle objects.
# Conflicts:
#	source/games/exhumed/src/view.cpp
2022-10-05 00:36:23 +02:00
Mitchell Richters
8912d7d6cc - SW: Change RevolveAng, RevolveDeltaAng and GlobSpeedSO to DAngle objects.
* For now, SW is as `binangle` free as it can be until other backend parts are changed.
2022-10-05 00:36:23 +02:00
Mitchell Richters
3242b8fd81 - SW: Remove leftover Polymost draw code prototype. 2022-10-05 00:36:23 +02:00
Mitchell Richters
2f76ca100f - SW: Replace last uses of binangle in game's draw code with DAngle objects.
* Easiest done in one hit since we had pointers and things to deal with.
2022-10-05 00:36:23 +02:00