Make TangibleManager a GameInstance subsystem

This commit is contained in:
2026-02-25 14:59:54 -05:00
parent b149714f20
commit 199a6bb813
5 changed files with 18 additions and 48 deletions

View File

@@ -291,7 +291,7 @@ void UlxTangible::SetTangiblePlane(AActor* target, const FString& plane) {
bool UlxTangible::IsCurrentPlayer(AActor* target) {
UlxTangible *tan = GetActorTangibleQuiet(target);
if (tan == nullptr) return false;
ALuprexGameModeBase *gamemode = tan->Manager->GetGameMode();
ALuprexGameModeBase *gamemode = ALuprexGameModeBase::FromContext(target);
return (tan->TangibleId == gamemode->PlayerId);
}