- floatification of g_shared.

- rewrote FraggleScript's movecamera function because it was utterly incomprehensible.
This commit is contained in:
Christoph Oelckers 2016-03-24 01:46:11 +01:00
commit 4a79602325
30 changed files with 281 additions and 416 deletions

View file

@ -6457,12 +6457,12 @@ int AActor::SpawnHealth() const
}
else if (flags & MF_FRIENDLY)
{
int adj = FixedMul(defhealth, G_SkillProperty(SKILLP_FriendlyHealth));
int adj = int(defhealth * G_SkillProperty(SKILLP_FriendlyHealth));
return (adj <= 0) ? 1 : adj;
}
else
{
int adj = FixedMul(defhealth, G_SkillProperty(SKILLP_MonsterHealth));
int adj = int(defhealth * G_SkillProperty(SKILLP_MonsterHealth));
return (adj <= 0) ? 1 : adj;
}
}