mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- SW: Replace REMOTE_CONTROL
pos*
variables with a vector.
This commit is contained in:
parent
287351e678
commit
424b9c5f34
3 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue