Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
make brains that are live but not in sim still allow game control
Browse files Browse the repository at this point in the history
  • Loading branch information
pawnishoovy committed Nov 13, 2023
1 parent 1d4d3ae commit cd20566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Activities/GameActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ void GameActivity::Update()
// Assure that Controlled Actor is a safe pointer

// Only allow this if player's brain is intact
if (g_MovableMan.IsActor(m_Brain[player]))
if (m_Brain[player] && !m_Brain[player]->IsDead() )
{
// Note that we have now had a brain
m_HadBrain[player] = true;
Expand Down

0 comments on commit cd20566

Please sign in to comment.