TrueAim_Init();
+ // this can't be called in CSQC_Init as it'd send cvars too early
+ ReplicateVars_Start();
+
postinit = true;
}
spectatee_status = newspectatee_status;
// we could get rid of spectatee_status, and derive it from player_localentnum and player_localnum
-
- // this can't be called in CSQC_Init as it'd send cvars too early
- ReplicateVars_Start();
}
NET_HANDLE(ENT_CLIENT_NAGGER, bool isnew)
}
void ReplicateVars_Start()
{
- ReplicateVars_time = time;
- ReplicateVars(REPLICATEVARS_SEND_ALL);
+ if (!ReplicateVars_time) // make sure it gets executed only once
+ {
+ ReplicateVars(REPLICATEVARS_SEND_ALL);
+ ReplicateVars_time = time;
+ }
}
#endif