Skip to content

Commit

Permalink
Attempt to fix misleading indentation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
voidanix committed Jun 18, 2022
1 parent 70815bf commit 569c089
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,14 +700,25 @@ namespace game

bool tvmode(bool check, bool force)
{
if(!m_edit(gamemode) && (!check || !cameras.empty()))
if (!m_edit(gamemode) && (!check || !cameras.empty()))
{
if(!gs_playing(gamestate) && intermmode) return true;
if (!gs_playing(gamestate) && intermmode)
{
return true;
}
else switch(player1.state)
{
case CS_SPECTATOR: if(specmode || (force && focus != &player1 && followmode && followaim())) return true; break;
case CS_WAITING: if((waitmode && (!player1.lastdeath || lastmillis-player1.lastdeath >= 500)) || (force && focus != &player1 && followmode && followaim())) return true; break;
default: break;
case CS_SPECTATOR:
if (specmode || (force && focus != &player1 && followmode && followaim()))
return true;
break;
case CS_WAITING:
if ((waitmode && (!player1.lastdeath || lastmillis-player1.lastdeath >= 500)) ||
(force && focus != &player1 && followmode && followaim()))
return true;
break;
default:
break;
}
}
return false;
Expand Down

0 comments on commit 569c089

Please sign in to comment.