From 2c7555366f26b50d089b7ba1c94bd25b2cfcf590 Mon Sep 17 00:00:00 2001 From: Fyren Date: Fri, 6 Mar 2009 14:40:30 -0500 Subject: [PATCH] Fixed SetEntityHealth (bug 3693, r+a12=dvander). --- gamedata/core.games/common.games.txt | 5 ----- plugins/include/entity_prop_stocks.inc | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gamedata/core.games/common.games.txt b/gamedata/core.games/common.games.txt index 02853156..05657594 100644 --- a/gamedata/core.games/common.games.txt +++ b/gamedata/core.games/common.games.txt @@ -36,11 +36,6 @@ "engine" "original" } - "Keys" - { - "m_iHealth" "m_fHealth" - } - "Offsets" { "GetDataDescMap" diff --git a/plugins/include/entity_prop_stocks.inc b/plugins/include/entity_prop_stocks.inc index aac12315..81865f5d 100644 --- a/plugins/include/entity_prop_stocks.inc +++ b/plugins/include/entity_prop_stocks.inc @@ -491,7 +491,7 @@ stock SetEntityHealth(entity, amount) if (!exists) { - strcopy(prop, sizeof(prop), "m_iHeath"); + strcopy(prop, sizeof(prop), "m_iHealth"); } gotconfig = true;