}
void ReplicateVars_Start()
{
- ReplicateVars_time = time;
- ReplicateVars(REPLICATEVARS_SEND_ALL);
+ if (!ReplicateVars_time) // make sure it gets executed only once
+ {
+ ReplicateVars_time = time;
+ ReplicateVars(REPLICATEVARS_SEND_ALL);
+ }
}
#endif