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:
parent
04fe9ae215
commit
eb3eb567ca
4 changed files with 17 additions and 5 deletions
|
@ -4,5 +4,10 @@ class
|
|||
base_client:NSSurfacePropEntity
|
||||
{
|
||||
void(void) base_client;
|
||||
|
||||
virtual void(void) ClientInputFrame;
|
||||
|
||||
#ifdef CLIENT
|
||||
virtual float(void) predraw;
|
||||
#endif
|
||||
};
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -86,7 +86,6 @@ base_player:base_client
|
|||
|
||||
#ifdef CLIENT
|
||||
int sequence;
|
||||
float pitch;
|
||||
|
||||
virtual void(float, float) ReceiveEntity;
|
||||
virtual void(void) PredictPreFrame;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue