From 9aa7298ef4d34355994bce23d917dac921715cf3 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 12 Sep 2021 00:01:53 +0200 Subject: [PATCH] Remove a few redundant lines of code --- qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc | 8 -------- qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc | 2 -- 2 files changed, 10 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index c7ba41984..abdfe030e 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -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; diff --git a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc index 556f76294..4c2fd6f5c 100644 --- a/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc +++ b/qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc @@ -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) -- 2.39.2