Working on camera ray stuff, not working right now

This commit is contained in:
2024-09-11 16:07:47 -04:00
parent fabbc55b86
commit 6556efed10
5 changed files with 97 additions and 27 deletions

View File

@@ -77,17 +77,14 @@ TanArray UlxTangibleManager::GetAllTangibles() const {
return result;
}
UlxTangible *UlxTangibleManager::SetPossessedTangible(int64 id) {
bool UlxTangibleManager::SetPossessedTangible(int64 id) {
UlxTangible *t = GetTangible(id);
if ((t == nullptr) || (t->GetActor() == nullptr)) {
PossessedTangible = nullptr;
return nullptr;
} else if (t == PossessedTangible) {
return nullptr;
} else {
PossessedTangible = t;
return t;
t = nullptr;
}
bool changed = (t != PossessedTangible);
PossessedTangible = t;
return changed;
}
#pragma optimize("", off)