- removed all occurences of FVector2 and FVector3 from the playsim code.
This commit is contained in:
parent
64dabc3c0b
commit
584147b8bb
4 changed files with 25 additions and 25 deletions
|
|
@ -804,7 +804,7 @@ static void CreateStartSpot (fixed_t *pos, FMapThing *start)
|
|||
|
||||
static void CalcPlane (SlopeWork &slope, secplane_t &plane)
|
||||
{
|
||||
FVector3 pt[3];
|
||||
TVector3<double> pt[3];
|
||||
long j;
|
||||
|
||||
slope.x[0] = slope.wal->x; slope.y[0] = slope.wal->y;
|
||||
|
|
@ -823,8 +823,8 @@ static void CalcPlane (SlopeWork &slope, secplane_t &plane)
|
|||
-slope.dy, slope.x[2]-slope.wal->x);
|
||||
slope.z[2] += Scale (slope.heinum, j, slope.i);
|
||||
|
||||
pt[0] = FVector3(slope.dx, -slope.dy, 0);
|
||||
pt[1] = FVector3(slope.x[2] - slope.x[0], slope.y[0] - slope.y[2], (slope.z[2] - slope.z[0]) / 16);
|
||||
pt[0] = TVector3<double>(slope.dx, -slope.dy, 0);
|
||||
pt[1] = TVector3<double>(slope.x[2] - slope.x[0], slope.y[0] - slope.y[2], (slope.z[2] - slope.z[0]) / 16);
|
||||
pt[2] = (pt[0] ^ pt[1]).Unit();
|
||||
|
||||
if ((pt[2][2] < 0 && plane.c > 0) || (pt[2][2] > 0 && plane.c < 0))
|
||||
|
|
@ -832,10 +832,10 @@ static void CalcPlane (SlopeWork &slope, secplane_t &plane)
|
|||
pt[2] = -pt[2];
|
||||
}
|
||||
|
||||
plane.a = fixed_t(pt[2][0]*65536.f);
|
||||
plane.b = fixed_t(pt[2][1]*65536.f);
|
||||
plane.c = fixed_t(pt[2][2]*65536.f);
|
||||
plane.ic = fixed_t(65536.f/pt[2][2]);
|
||||
plane.a = FLOAT2FIXED(pt[2][0]);
|
||||
plane.b = FLOAT2FIXED(pt[2][1]);
|
||||
plane.c = FLOAT2FIXED(pt[2][2]);
|
||||
plane.ic = DivScale32(1, plane.c);
|
||||
plane.d = -TMulScale8
|
||||
(plane.a, slope.x[0]<<4, plane.b, (-slope.y[0])<<4, plane.c, slope.z[0]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue