mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- floatified remote.pos.
This commit is contained in:
parent
837b31c672
commit
bd497a7e68
2 changed files with 3 additions and 5 deletions
|
@ -570,7 +570,7 @@ struct REMOTE_CONTROL
|
|||
sectortype* cursectp, * lastcursectp;
|
||||
int pang;
|
||||
vec2_t vect, ovect, slide_vect;
|
||||
vec3_t pos;
|
||||
DVector3 pos;
|
||||
SECTOR_OBJECT* sop_control;
|
||||
};
|
||||
|
||||
|
|
|
@ -5004,9 +5004,7 @@ void PlayerToRemote(PLAYER* pp)
|
|||
pp->remote.cursectp = pp->cursector;
|
||||
pp->remote.lastcursectp = pp->lastcursector;
|
||||
|
||||
pp->remote.pos.X = pp->int_ppos().X;
|
||||
pp->remote.pos.Y = pp->int_ppos().Y;
|
||||
pp->remote.pos.Z = pp->int_ppos().Z;
|
||||
pp->remote.pos = pp->pos;
|
||||
|
||||
pp->remote.vect.X = pp->vect.X;
|
||||
pp->remote.vect.Y = pp->vect.Y;
|
||||
|
@ -5021,7 +5019,7 @@ void RemoteToPlayer(PLAYER* pp)
|
|||
pp->setcursector(pp->remote.cursectp);
|
||||
pp->lastcursector = pp->remote.lastcursectp;
|
||||
|
||||
pp->set_int_ppos(pp->remote.pos);
|
||||
pp->pos = pp->remote.pos;
|
||||
|
||||
pp->vect.X = pp->remote.vect.X;
|
||||
pp->vect.Y = pp->remote.vect.Y;
|
||||
|
|
Loading…
Reference in a new issue