Christoph Oelckers
9f08abc90e
- eliminate the only use of zvel in tspritetype.
...
Since this never gets manipulated on the tsprite size, better get it directly from the actor so that the final velocity vector does not need to be in spritetype et.al.
2022-10-14 20:31:57 +02:00
Christoph Oelckers
05f488ce3c
- add more wrappers and use 'inittype' where the actual zvel member of spritetype is wanted.
...
This will avoid problems with search&replace later.
2022-10-14 20:31:56 +02:00
Christoph Oelckers
8946a66350
- handle zvel multiplications with a wrapper.
...
This completes wrapping of zvel.
2022-10-14 20:31:56 +02:00
Christoph Oelckers
8bfedc327f
- add_int_zvel
2022-10-14 20:31:56 +02:00
Christoph Oelckers
81fc066a5e
- use zvel's alias inittype where it's not being used for velocity.
2022-10-14 20:31:55 +02:00
Christoph Oelckers
70d0d0622b
- wrapped 0 assignments to zvel
2022-10-14 20:31:55 +02:00
Christoph Oelckers
3f7b423a4a
- zvel wrapping, part 1.
2022-10-14 20:31:55 +02:00
Mitchell Richters
d63fb33dd0
- Pass DVector2
objects directly through to F2DDrawer::AddLine()
and F2DDrawer::AddThickLine()
.
...
* Since all the external code calling through to these methods are built on vectors, makes sense to pass them around by reference.
2022-10-14 18:19:04 +02:00
Mitchell Richters
5407de6924
- Use MaxSmoothRatio
everywhere so refactoring is easier later on.
2022-10-14 18:19:03 +02:00
Christoph Oelckers
463e1a8047
- account for stupid GCC limitation.
2022-10-14 18:19:03 +02:00
Mitchell Richters
681bd640ed
- Make drawlinergb()
use twod->AddThickLine()
for when am_linethickness
is greater than 1, not 2.
2022-10-14 18:19:02 +02:00
Mitchell Richters
7d85acac13
- Clean up remaining automap interfaces to finish the floatification.
...
* Even though we pre-calculate the sine/cosine needed in `DrawOverheadMap()`, Duke and SW require the full angle for their more mature automaps.
2022-10-14 18:19:02 +02:00
Mitchell Richters
986466de67
- Commence updating gi->DrawAutomapPlayer()
for floatification, beginning with Duke's CSTAT_SPRITE_ALIGNMENT_FACING
code.
2022-10-14 18:13:49 +02:00
Mitchell Richters
d9f8ac4d2a
- Convert automap's follow_x
/follow_y
variables into a proper vector.
...
* Should have done this from the start, but anyhow...
2022-10-14 18:13:49 +02:00
Mitchell Richters
059f15c786
- Refactor floatified vector math to use inline wrapped around TVector2's Rotated()
method.
...
* This will be used extensively in Duke and the other game as we finalise this conversion.
2022-10-14 18:13:49 +02:00
Mitchell Richters
e9d5cd2a3a
- Flatten automap's zoom values from Q20.10 to floating point.
2022-10-14 18:13:49 +02:00
Christoph Oelckers
2838fa3e72
- floatified sectortype::ang
2022-10-14 17:17:37 +02:00
Christoph Oelckers
3ac4e7ed2d
- eliminated player_int_ceiling_dist, player_int_floor_dist wrappers
2022-10-14 00:06:30 +02:00
Christoph Oelckers
81c7e7671f
- fixed Clang warnings
2022-10-13 22:54:43 +02:00
Christoph Oelckers
785575604b
- no need to use int_delta when all we want is the angle.
2022-10-13 22:54:43 +02:00
Christoph Oelckers
05a7fe8f36
- renamed walltype::fdelta and fcenter
2022-10-13 22:54:43 +02:00
Christoph Oelckers
6ce01e24d2
- renamed walltype::delta and walltype::center
2022-10-13 22:54:42 +02:00
Christoph Oelckers
1d28ebec98
- eliminated add_int_z and add_int_y wrappers
2022-10-13 22:54:42 +02:00
Christoph Oelckers
681784fdf8
- removed set_int_pos wrapper
2022-10-13 22:54:42 +02:00
Christoph Oelckers
f4d8ccf7b9
- floatified WarpToCoords
2022-10-13 20:58:12 +02:00
Christoph Oelckers
978c35fda1
- mess reduction in Blood’s TranslateSector
...
We can also get rid of set_int_xy now.
2022-10-13 20:42:29 +02:00
Christoph Oelckers
ad648676b1
- floatified SPREXT_AWAY handler
2022-10-13 19:59:16 +02:00
Christoph Oelckers
23bd9918af
- pass a DVector3 to updatesectorneighbor
2022-10-13 19:59:15 +02:00
Christoph Oelckers
07826c7791
- eliminated DCoreActor::copyXY
2022-10-13 00:59:05 +02:00
Mitchell Richters
bff9856bf3
- Floatified DrawPlayerArrow()
.
2022-10-13 00:59:05 +02:00
Mitchell Richters
61e70fefbd
- Floatified drawwhitelines()
.
2022-10-13 00:59:05 +02:00
Mitchell Richters
bb3959fb0f
- Floatified drawredlines()
.
2022-10-13 00:59:05 +02:00
Mitchell Richters
60f5d9b67c
- Rework some automap functions in prep for floatification.
2022-10-13 00:59:04 +02:00
Mitchell Richters
85f7297ad3
- Floatified renderDrawMapView()
.
2022-10-13 00:59:04 +02:00
Mitchell Richters
8a8fb3c658
- Floatified automap's follow_x
/follow_y` variables.
2022-10-13 00:59:04 +02:00
Mitchell Richters
4d04a4dd3a
- Floatified automap's gZoom
.
...
* Also use the global directly in automap functions instead of passing it around as function variables.
2022-10-13 00:59:04 +02:00
Mitchell Richters
f5116dd787
- Pass a DAngle through to all the automap code.
2022-10-13 00:59:04 +02:00
Mitchell Richters
01ed871239
- Optimise spritetypebase::backupvec2()
and remove now-unused backupx/y() methods.
2022-10-13 00:59:04 +02:00
Mitchell Richters
e970ed0f27
- Migrate spritetypebase::interpolatedvec3()
to backend solution.
...
* Also eliminate unused `interpolatedvec2() method from class.
2022-10-13 00:59:03 +02:00
Mitchell Richters
1e36aa0e7f
- Move TAngle<>
interpolation function to common and add ones for TVector<>
classes.
2022-10-13 00:59:03 +02:00
Mitchell Richters
bdf35ac3a9
- Eliminate spritetypebase::__interpolatedvec2()
.
2022-10-13 00:59:03 +02:00
Mitchell Richters
0dcd209d91
- Fixed a missed interpolatedvaluef()
fix.
2022-10-13 00:59:03 +02:00
Mitchell Richters
92b16907d2
- Use getincangle()
in more places so it can be refactored easier later on.
2022-10-13 00:59:02 +02:00
Christoph Oelckers
d573ba4cad
- pass map start as DVector3
2022-10-13 00:59:01 +02:00
Christoph Oelckers
40312d64c8
-coordinates
2022-10-13 00:59:01 +02:00
Christoph Oelckers
54cf1aea6f
- got rid of CGibPosition
2022-10-13 00:59:00 +02:00
Christoph Oelckers
2f896b859b
- made the code mostly signed-char safe.
...
This eliminates all char function parameters that are not really ASCII characters and casts all char argument to the ctype is... functions.
2022-10-12 22:12:30 +02:00
Christoph Oelckers
dc1c6976e2
- removed OSD_StripColors.
...
This was handling color control sequences in EDuke32 format which are totally irrelevant for Raze.
2022-10-12 22:10:37 +02:00
Christoph Oelckers
f269ceff64
slope functions with position vectors
2022-10-12 22:10:37 +02:00
Christoph Oelckers
a5a3669238
- eliminated the SetActor/Z function receiving a vec3_t pointer.
...
The only one left is the one with a DVector3 now.
2022-10-12 22:10:36 +02:00