]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a few redundant lines of code
authorterencehill <piuntn@gmail.com>
Sat, 11 Sep 2021 22:01:53 +0000 (00:01 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 11 Sep 2021 22:01:53 +0000 (00:01 +0200)
qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc

index c7ba4198462e299c5b07cba7cfbe7049ea6f6584..abdfe030eebd088fba76fc219b1acc73e04a0501 100644 (file)
@@ -227,14 +227,6 @@ MUTATOR_HOOKFUNCTION(ca, reset_map_players)
        return true;
 }
 
-MUTATOR_HOOKFUNCTION(ca, ClientConnect)
-{
-       entity player = M_ARGV(0, entity);
-
-       TRANSMUTE(Observer, player);
-       return true;
-}
-
 MUTATOR_HOOKFUNCTION(ca, reset_map_global)
 {
        allowed_to_spawn = true;
index 556f76294d23b5dbd1fb15f4af905e9e1aea30c9..4c2fd6f5c45e3072fa6c0241e885e9c6739f660b 100644 (file)
@@ -335,9 +335,7 @@ MUTATOR_HOOKFUNCTION(lms, MakePlayerObserver)
 MUTATOR_HOOKFUNCTION(lms, ClientConnect)
 {
        entity player = M_ARGV(0, entity);
-       TRANSMUTE(Observer, player);
        player.frags = FRAGS_SPECTATOR;
-       player.lms_spectate_warning = 0;
 }
 
 MUTATOR_HOOKFUNCTION(lms, PlayerPreThink)