Migrate vec to OFVector3D
FossilOrigin-Name: 2e931ae3e1bb8a3ac23d368cfacc7394d07f295bd0bc56a40e0c70190d019d8b
This commit is contained in:
parent
4ce99636d3
commit
6f64252d65
15 changed files with 141 additions and 136 deletions
|
@ -240,7 +240,7 @@ moveplayer(dynent *pl, int moveres, bool local, int curtime)
|
|||
const bool water = hdr.waterlevel > pl->o.z - 0.5f;
|
||||
const bool floating = (editmode && local) || pl->state == CS_EDITING;
|
||||
|
||||
vec d; // vector of direction we ideally want to move in
|
||||
OFVector3D d; // vector of direction we ideally want to move in
|
||||
|
||||
d.x = (float)(pl->move * cos(rad(pl->yaw - 90)));
|
||||
d.y = (float)(pl->move * sin(rad(pl->yaw - 90)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue