X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ftests.qc;h=e52d4fcf1111c67ddd6c17f53b95feed83d605b7;hb=5d36c4af90925223244be05529c0152f5011e7ce;hp=96674db702943a933786ca954c4ec20498839ae8;hpb=5c9dd3786d57cbbbca67043ba8076548c1d486ef;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/tests.qc b/qcsrc/server/tests.qc index 96674db70..e52d4fcf1 100644 --- a/qcsrc/server/tests.qc +++ b/qcsrc/server/tests.qc @@ -2,7 +2,7 @@ void test_weapons_hurt(entity this) { - EXPECT_NE(100, this.health); + EXPECT_NE(100, GetResourceAmount(this, RESOURCE_HEALTH)); delete(this.enemy); delete(this); } @@ -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;