- SW: Replace REMOTE_CONTROL pos* variables with a vector.

This commit is contained in:
Mitchell Richters 2021-12-31 00:15:01 +11:00
parent 287351e678
commit 424b9c5f34
3 changed files with 10 additions and 10 deletions

View file

@ -595,7 +595,7 @@ typedef struct
sectortype* cursectp, * lastcursectp;
int pang;
vec2_t vect, ovect, slide_vect;
int posx,posy,posz;
vec3_t pos;
SECTOR_OBJECTp sop_control;
} REMOTE_CONTROL, *REMOTE_CONTROLp;

View file

@ -5049,9 +5049,9 @@ void PlayerToRemote(PLAYERp pp)
pp->remote.cursectp = pp->cursector;
pp->remote.lastcursectp = pp->lastcursector;
pp->remote.posx = pp->pos.X;
pp->remote.posy = pp->pos.Y;
pp->remote.posz = pp->pos.Z;
pp->remote.pos.X = pp->pos.X;
pp->remote.pos.Y = pp->pos.Y;
pp->remote.pos.Z = pp->pos.Z;
pp->remote.vect.X = pp->vect.X;
pp->remote.vect.Y = pp->vect.Y;
@ -5066,9 +5066,9 @@ void RemoteToPlayer(PLAYERp pp)
pp->setcursector(pp->remote.cursectp);
pp->lastcursector = pp->remote.lastcursectp;
pp->pos.X = pp->remote.posx;
pp->pos.Y = pp->remote.posy;
pp->pos.Z = pp->remote.posz;
pp->pos.X = pp->remote.pos.X;
pp->pos.Y = pp->remote.pos.Y;
pp->pos.Z = pp->remote.pos.Z;
pp->vect.X = pp->remote.vect.X;
pp->vect.Y = pp->remote.vect.Y;

View file

@ -396,9 +396,9 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, REMOTE_CONTROL& w,
("yvect", w.vect.Y)
("slide_xvect", w.slide_vect.X)
("slide_yvect", w.slide_vect.Y)
("x", w.posx)
("y", w.posy)
("z", w.posz)
("x", w.pos.X)
("y", w.pos.Y)
("z", w.pos.Z)
("sop_control", w.sop_control)
.EndObject();
}