From 52791b39f1b145b8b6a285cbdc5c808953e1f76d Mon Sep 17 00:00:00 2001 From: Daveo Date: Thu, 16 Aug 2001 18:34:51 +0000 Subject: [PATCH] --- source/game/game.cpp | 6 ++++++ source/game/game.h | 1 + source/level/level.cpp | 1 + 3 files changed, 8 insertions(+) diff --git a/source/game/game.cpp b/source/game/game.cpp index c1bc689bf..3620448ab 100644 --- a/source/game/game.cpp +++ b/source/game/game.cpp @@ -839,6 +839,12 @@ void CGameScene::initLevel() } +/*****************************************************************************/ +void CGameScene::initHealth() +{ + m_HealthManager->init(); +} + /*****************************************************************************/ void CGameScene::dropHealth(DVECTOR const &Pos,int Amount,int Vel) { diff --git a/source/game/game.h b/source/game/game.h index aed6a1830..9e86ebcc8 100644 --- a/source/game/game.h +++ b/source/game/game.h @@ -67,6 +67,7 @@ static ACTOR_TYPE getActorType( int actorNum ) {return actorType[actorNum];} static void setBossHasBeenKilled(); static int getBossHasBeenKilled() {return s_bossHasBeenKilled;} +static void initHealth(); static void dropHealth(DVECTOR const &Pos,int Amount,int Vel); diff --git a/source/level/level.cpp b/source/level/level.cpp index 38c4b9b2b..aa9077328 100644 --- a/source/level/level.cpp +++ b/source/level/level.cpp @@ -633,6 +633,7 @@ void CLevel::initThings(int _respawningLevel) CThingManager::matchWheelsAndWeights(); CThingManager::matchPressureSwitches(); CThingManager::matchGaryTriggers(); + GameScene.initHealth(); }