void FPredictionKey::GenerateDependentPredictionKey() { if (bIsServerInitiated) { // Can't have dependent keys on server keys, use same key return; } KeyType Previous = 0; if (Base == 0) { Base = Current; } else { Previous = Current; } GenerateNewPredictionKey(); if (Previous > 0) { FPredictionKeyDelegates::AddDependency(Current, Previous); } }
void FPredictionKey::GenerateDependentPredictionKey() { KeyType Previous = 0; if (Base == 0) { Base = Current; } else { Previous = Current; } GenerateNewPredictionKey(); if (Previous > 0) { FPredictionKeyDelegates::AddDependency(Current, Previous); } }