X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Ftests.qc;h=2f7dc88ba1436fffc693778aba98ddcdfad4100e;hb=e0012447bfce1b551df3dc01b043655aa93dafad;hp=7bbf00dc51c335262f6b3a757b3d97188d5692c5;hpb=d271f27a5ac351a3a7b39636932f6d661492be1d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/tests.qc b/qcsrc/server/tests.qc index 7bbf00dc5..2f7dc88ba 100644 --- a/qcsrc/server/tests.qc +++ b/qcsrc/server/tests.qc @@ -2,9 +2,9 @@ void test_weapons_hurt(entity this) { - EXPECT_NE(100, this.health); - remove(this.enemy); - remove(this); + EXPECT_NE(100, GetResource(this, RES_HEALTH)); + delete(this.enemy); + delete(this); } TEST(Weapons, Hurt) @@ -26,7 +26,7 @@ TEST(Weapons, Hurt) it.items |= IT_UNLIMITED_AMMO; Weapon wep = WEP_VORTEX; W_GiveWeapon(it, wep.m_id); - W_SwitchWeapon_Force(it, wep); + W_SwitchWeapon_Force(it, wep, weaponentities[0]); it = b; PHYS_INPUT_BUTTON_JUMP(it) = true;