X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fclient.qc;h=1211e8988ea98b65c5fb90ac8f952a3c0e540067;hb=deb4c0dce1468665f6328aea364ab570b93490f8;hp=ea2a62977a331981e2d98809bab83a40a35bd2c8;hpb=edc317efa7b44478e7bd5c2ba46eff432c603ea6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index ea2a62977..1211e8988 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -20,6 +20,7 @@ #include "clientkill.qh" #include "cheats.qh" #include "g_world.qh" +#include #include "race.qh" #include "antilag.qh" #include "campaign.qh" @@ -38,6 +39,7 @@ #include #include "../common/mapobjects/func/conveyor.qh" +#include #include "../common/mapobjects/teleporters.qh" #include "../common/mapobjects/target/spawnpoint.qh" #include @@ -690,6 +692,9 @@ void PutPlayerInServer(entity this) IL_REMOVE(g_swamped, this); this.swampslug = NULL; this.swamp_interval = 0; + if(this.ladder_entity) + IL_REMOVE(g_ladderents, this); + this.ladder_entity = NULL; IL_EACH(g_counters, it.realowner == this, { delete(it); @@ -2712,6 +2717,9 @@ void PlayerPostThink (entity this) this.solid = SOLID_NOT; this.takedamage = DAMAGE_NO; set_movetype(this, MOVETYPE_NONE); + CS(this).teamkill_complain = 0; + CS(this).teamkill_soundtime = 0; + CS(this).teamkill_soundsource = NULL; } if (IS_PLAYER(this)) {