Changes related to ray-collision, and luprex global variable stuff
This commit is contained in:
@@ -87,8 +87,8 @@ void AIntegrationGameModeBase::ResetToInitialState()
|
||||
PlayerId = 0;
|
||||
|
||||
// Clear the look-at state;
|
||||
PreviousLookAt = nullptr;
|
||||
CurrentLookAt = nullptr;
|
||||
PreviousLookAt.Init();
|
||||
CurrentLookAt.Init();
|
||||
|
||||
// Reset the clocks.
|
||||
EngineSeconds = 0.0;
|
||||
@@ -349,8 +349,8 @@ AIntegrationGameModeBase *AIntegrationGameModeBase::GetFromContext(UObject *cont
|
||||
void AIntegrationGameModeBase::UpdateLookAt() {
|
||||
// Rotate the variables.
|
||||
PreviousLookAt = CurrentLookAt;
|
||||
CurrentLookAt = nullptr;
|
||||
|
||||
CurrentLookAt.Init();
|
||||
|
||||
// Make sure the world is fully configured before we attempt to cast rays.
|
||||
UlxTangible *possessed = TangibleManager->GetPossessedTangible();
|
||||
if (possessed == nullptr) return;
|
||||
|
||||
Reference in New Issue
Block a user