From: terencehill Date: Sat, 11 Sep 2021 22:01:53 +0000 (+0200) Subject: Remove a few redundant lines of code X-Git-Tag: xonotic-v0.8.5~350^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9aa7298ef4d34355994bce23d917dac921715cf3;p=xonotic%2Fxonotic-data.pk3dir.git Remove a few redundant lines of code --- 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)