Skip to content

Commit 7a06a78

Browse files
committed
Attempt to fix misleading indentation warning
1 parent a24441b commit 7a06a78

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/game/game.cpp

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,14 +700,25 @@ namespace game
700700

701701
bool tvmode(bool check, bool force)
702702
{
703-
if(!m_edit(gamemode) && (!check || !cameras.empty()))
703+
if (!m_edit(gamemode) && (!check || !cameras.empty()))
704704
{
705-
if(!gs_playing(gamestate) && intermmode) return true;
705+
if (!gs_playing(gamestate) && intermmode)
706+
{
707+
return true;
708+
}
706709
else switch(player1.state)
707710
{
708-
case CS_SPECTATOR: if(specmode || (force && focus != &player1 && followmode && followaim())) return true; break;
709-
case CS_WAITING: if((waitmode && (!player1.lastdeath || lastmillis-player1.lastdeath >= 500)) || (force && focus != &player1 && followmode && followaim())) return true; break;
710-
default: break;
711+
case CS_SPECTATOR:
712+
if (specmode || (force && focus != &player1 && followmode && followaim()))
713+
return true;
714+
break;
715+
case CS_WAITING:
716+
if ((waitmode && (!player1.lastdeath || lastmillis-player1.lastdeath >= 500)) ||
717+
(force && focus != &player1 && followmode && followaim()))
718+
return true;
719+
break;
720+
default:
721+
break;
711722
}
712723
}
713724
return false;

0 commit comments

Comments
 (0)