]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove intialization of .dmg for players as it isn't used anywhere
authorterencehill <piuntn@gmail.com>
Sat, 16 Sep 2017 13:48:36 +0000 (15:48 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 16 Sep 2017 13:48:36 +0000 (15:48 +0200)
qcsrc/server/client.qc
qcsrc/server/sv_main.qc

index 7acd7bb5eaeac4c6b4540b6e689752ffa4c7f088..517e0c98f8e0bcab065ec5f91655a352efeff079 100644 (file)
@@ -537,7 +537,6 @@ void PutPlayerInServer(entity this)
                this.flags |= FL_NOTARGET;
        this.takedamage = DAMAGE_AIM;
        this.effects = EF_TELEPORT_BIT | EF_RESTARTANIM_BIT;
-       this.dmg = 2; // WTF
 
        if (warmup_stage) {
                this.ammo_shells = warmup_start_ammo_shells;
@@ -2664,7 +2663,6 @@ void DrownPlayer(entity this)
                if(this.air_finished < time)
                        PlayerSound(this, playersound_gasp, CH_PLAYER, VOL_BASE, VOICETYPE_PLAYERSOUND);
                this.air_finished = time + autocvar_g_balance_contents_drowndelay;
-               this.dmg = 2;
        }
        else if (this.air_finished < time)
        {       // drown!
index 18706028fcec4dbf8a7ade0c898355e90b2b90dd..97299ffeffa7e4a7c114ad53bf7885ca7585ed79 100644 (file)
@@ -88,7 +88,6 @@ void CreatureFrame_Liquids(entity this)
                        this.dmgtime = 0;
                }
                this.air_finished = time + 12;
-               this.dmg = 2;
        }
 }