Client: Fix the parameter order on a few classes' ReceiveEntity methods
This commit is contained in:
parent
724523ce2c
commit
c314e880fd
7 changed files with 6 additions and 24 deletions
|
@ -204,7 +204,7 @@ env_fog_controller::RendererRestarted(void)
|
|||
}
|
||||
|
||||
void
|
||||
env_fog_controller::ReceiveEntity(float flSendFlags, float flNew)
|
||||
env_fog_controller::ReceiveEntity(float flNew, float flSendFlags)
|
||||
{
|
||||
if (flSendFlags & ENVFOGCTRL_CHANGED_ACTIVE)
|
||||
m_iFogActive = readbyte();
|
||||
|
|
|
@ -127,7 +127,7 @@ func_tankmortar::PredictPostFrame(void)
|
|||
}
|
||||
|
||||
void
|
||||
func_tankmortar::ReceiveEntity(float fChanged, float new)
|
||||
func_tankmortar::ReceiveEntity(float new, float fChanged)
|
||||
{
|
||||
if (fChanged & VEHFL_CHANGED_ORIGIN) {
|
||||
origin[0] = readcoord();
|
||||
|
|
|
@ -882,7 +882,7 @@ func_vehicle::RunVehiclePhysics(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
void
|
||||
func_vehicle::ReceiveEntity(float flChanged, float flNew)
|
||||
func_vehicle::ReceiveEntity(float flNew, float flChanged)
|
||||
{
|
||||
if (flChanged & FNCVEHNET_DRIVER) {
|
||||
driver_entnum = readentitynum();
|
||||
|
|
|
@ -167,7 +167,7 @@ prop_rope::predraw(void)
|
|||
}
|
||||
|
||||
void
|
||||
prop_rope::ReceiveEntity(float flSendFlags, float new)
|
||||
prop_rope::ReceiveEntity(float new, float flSendFlags)
|
||||
{
|
||||
if (flSendFlags & PROPROPE_CHANGED_MAT)
|
||||
m_strShader = readstring();
|
||||
|
|
|
@ -738,7 +738,7 @@ prop_vehicle_driveable::Respawn(void)
|
|||
|
||||
#ifdef CLIENT
|
||||
void
|
||||
prop_vehicle_driveable::ReceiveEntity(float flSendFlags, float flNew)
|
||||
prop_vehicle_driveable::ReceiveEntity(float flNew, float flSendFlags)
|
||||
{
|
||||
if (flSendFlags & VEHFL_DRIVER) {
|
||||
driver_entnum = readentitynum();
|
||||
|
|
|
@ -89,7 +89,3 @@ enumflags
|
|||
VHF_FROZEN,
|
||||
VHF_NOATTACK
|
||||
};
|
||||
|
||||
#ifdef CLIENT
|
||||
void basevehicle_readentity(float isnew);
|
||||
#endif
|
||||
|
|
|
@ -173,7 +173,7 @@ NSVehicle::PredictPostFrame(void)
|
|||
}
|
||||
|
||||
void
|
||||
NSVehicle::ReceiveEntity(float fChanged, float new)
|
||||
NSVehicle::ReceiveEntity(float new, float fChanged)
|
||||
{
|
||||
if (fChanged & VEHFL_CHANGED_ORIGIN) {
|
||||
origin[0] = readcoord();
|
||||
|
@ -470,17 +470,3 @@ NSVehicle::PlayerLeave(NSClientPlayer pl)
|
|||
|
||||
SetSendFlags(VEHFL_CHANGED_DRIVER);
|
||||
}
|
||||
|
||||
#ifdef CLIENT
|
||||
void
|
||||
basevehicle_readentity(float isnew)
|
||||
{
|
||||
NSVehicle veh = (NSVehicle)self;
|
||||
float flags = readfloat();
|
||||
|
||||
if (isnew)
|
||||
spawnfunc_NSVehicle();
|
||||
|
||||
veh.ReceiveEntity(flags, isnew);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue