X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Ftests.qc;h=50dc5a35bca7cd130b7732fe141819539bc64e01;hp=7bbf00dc51c335262f6b3a757b3d97188d5692c5;hb=d865de7a9a17c5a1d9286aec40f68c3530697660;hpb=3cfb64730d883ae9ccf0315f365da19345270890 diff --git a/qcsrc/server/tests.qc b/qcsrc/server/tests.qc index 7bbf00dc5..50dc5a35b 100644 --- a/qcsrc/server/tests.qc +++ b/qcsrc/server/tests.qc @@ -3,8 +3,8 @@ void test_weapons_hurt(entity this) { EXPECT_NE(100, this.health); - remove(this.enemy); - remove(this); + 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;