]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Split a too long line of code
authorterencehill <piuntn@gmail.com>
Sat, 3 Sep 2016 18:42:12 +0000 (20:42 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 3 Sep 2016 18:42:12 +0000 (20:42 +0200)
qcsrc/server/command/cmd.qc

index ce6592408cb4a3fa50af5cf90d0a19eee5271f4a..af8d60310c6cbdded900a82aae82f83df35ad04b 100644 (file)
@@ -488,9 +488,11 @@ void ClientCommand_spectate(entity caller, float request)
 
                                if (mutator_returnvalue == MUT_SPECCMD_RETURN) return;
 
-                               if ((IS_PLAYER(caller) || mutator_returnvalue == MUT_SPECCMD_FORCE) && autocvar_sv_spectate == 1) ClientKill_TeamChange(caller, -2); // observe
+                               if ((IS_PLAYER(caller) || mutator_returnvalue == MUT_SPECCMD_FORCE))
+                               if (autocvar_sv_spectate == 1)
+                                       ClientKill_TeamChange(caller, -2); // observe
                        }
-                       return;                                                                                                                        // never fall through to usage
+                       return; // never fall through to usage
                }
 
                default: