# HG changeset patch # User unc0rr # Date 1383513800 -14400 # Node ID 6e95617988c90134acb9e61759528f3ac0926fc4 # Parent 1954f692e8c61e1617dac2ac0a307c7207accfdd Only toggle afk mode when it's not your turn diff -r 1954f692e8c6 -r 6e95617988c9 hedgewars/uCommandHandlers.pas --- a/hedgewars/uCommandHandlers.pas Sun Nov 03 22:39:00 2013 +0400 +++ b/hedgewars/uCommandHandlers.pas Mon Nov 04 01:23:20 2013 +0400 @@ -643,7 +643,10 @@ if gameType <> gmtNet then isPaused:= not isPaused else - isAFK:= not isAFK; + if (CurrentTeam^.ExtDriven) or (CurrentHedgehog^.BotLevel > 0) then + isAFK:= not isAFK + else + isAFK:= false; // for real ninjas if isPaused or isAFK then SDL_ShowCursor(1)