Shared: nil out the base_client predraw. Get rid of the .pitch attribute of

base_player. Fix some angle networking typos.
This commit is contained in:
Marco Cawthorne 2022-02-01 09:33:28 -08:00
parent 04fe9ae215
commit eb3eb567ca
Signed by: eukara
GPG key ID: C196CD8BA993248A
4 changed files with 17 additions and 5 deletions

View file

@ -4,5 +4,10 @@ class
base_client:NSSurfacePropEntity
{
void(void) base_client;
virtual void(void) ClientInputFrame;
#ifdef CLIENT
virtual float(void) predraw;
#endif
};

View file

@ -4,6 +4,14 @@ base_client::ClientInputFrame(void)
}
#ifdef CLIENT
float
base_client::predraw(void)
{
return (PREDRAW_NEXT);
}
#endif
void
base_client::base_client(void)
{

View file

@ -86,7 +86,6 @@ base_player:base_client
#ifdef CLIENT
int sequence;
float pitch;
virtual void(float, float) ReceiveEntity;
virtual void(void) PredictPreFrame;

View file

@ -114,14 +114,14 @@ base_player::ReceiveEntity(float new, float fl)
if (fl & PLAYER_ORIGIN_Z)
origin[2] = readcoord();
if (fl & PLAYER_ANGLES_X) {
v_angle[0] = pitch = readshort() / (32767 / 360);
v_angle[1] = pitch = readshort() / (32767 / 360);
v_angle[2] = pitch = readshort() / (32767 / 360);
v_angle[0] = readshort() / (32767 / 360);
v_angle[1] = readshort() / (32767 / 360);
v_angle[2] = readshort() / (32767 / 360);
}
if (fl & PLAYER_ANGLES_Y) {
angles[0] = readshort() / (32767 / 360);
angles[1] = readshort() / (32767 / 360);
angles[1] = readshort() / (32767 / 360);
angles[2] = readshort() / (32767 / 360);
}
if (fl & PLAYER_COLORMAP)
colormap = readbyte();