- Capitalise vec2_t y variable.

This commit is contained in:
Mitchell Richters 2021-12-22 20:28:51 +11:00 committed by Christoph Oelckers
parent 3c9cd926ba
commit 118ceb18ca
46 changed files with 352 additions and 352 deletions

View file

@ -227,7 +227,7 @@ int getslopeval(sectortype* sect, int x, int y, int z, int basez)
{
auto wal = sect->firstWall();
auto delta = wal->delta();
int i = (y - wal->y) * delta.X - (x - wal->x) * delta.y;
int i = (y - wal->y) * delta.X - (x - wal->x) * delta.Y;
return i == 0? 0 : Scale((z - basez) << 8, wal->Length(), i);
}
@ -262,9 +262,9 @@ void GetWallSpritePosition(const tspritetype* spr, vec2_t pos, vec2_t* out, bool
int origin = (width >> 1) + xoff;
out[0].X = pos.X - MulScale(x, origin, 16);
out[0].y = pos.y - MulScale(y, origin, 16);
out[0].Y = pos.Y - MulScale(y, origin, 16);
out[1].X = out[0].X + MulScale(x, width, 16);
out[1].y = out[0].y + MulScale(y, width, 16);
out[1].Y = out[0].Y + MulScale(y, width, 16);
}
@ -308,10 +308,10 @@ void TGetFlatSpritePosition(const spritetypebase* spr, vec2_t pos, vec2_t* out,
int sinangslope = DivScale(sinang, ratio, 12);
out[0].X = pos.X + DMulScale(sinang, sprcenterx, cosangslope, sprcentery, 16);
out[0].y = pos.y + DMulScale(sinangslope, sprcentery, -cosang, sprcenterx, 16);
out[0].Y = pos.Y + DMulScale(sinangslope, sprcentery, -cosang, sprcenterx, 16);
out[1].X = out[0].X - MulScale(sinang, width, 16);
out[1].y = out[0].y + MulScale(cosang, width, 16);
out[1].Y = out[0].Y + MulScale(cosang, width, 16);
vec2_t sub = { MulScale(cosangslope, height, 16), MulScale(sinangslope, height, 16) };
out[2] = out[1] - sub;
@ -323,7 +323,7 @@ void TGetFlatSpritePosition(const spritetypebase* spr, vec2_t pos, vec2_t* out,
{
for (int i = 0; i < 4; i++)
{
int spos = DMulScale(-sinang, out[i].y - spr->y, -cosang, out[i].X - spr->x, 4);
int spos = DMulScale(-sinang, out[i].Y - spr->y, -cosang, out[i].X - spr->x, 4);
outz[i] = MulScale(heinum, spos, 18);
}
}
@ -397,7 +397,7 @@ FSerializer& Serialize(FSerializer& arc, const char* key, vec2_t& c, vec2_t* def
if (arc.BeginObject(key))
{
arc("x", c.X, def ? &def->X : nullptr)
("y", c.y, def ? &def->y : nullptr)
("y", c.Y, def ? &def->Y : nullptr)
.EndObject();
}
return arc;