Client: Fix the parameter order on a few classes' ReceiveEntity methods

This commit is contained in:
Marco Cawthorne 2023-09-20 15:40:13 -07:00
parent 724523ce2c
commit c314e880fd
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
7 changed files with 6 additions and 24 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -89,7 +89,3 @@ enumflags
VHF_FROZEN,
VHF_NOATTACK
};
#ifdef CLIENT
void basevehicle_readentity(float isnew);
#endif

View File

@ -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