From a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 7 Jul 2013 15:09:05 +0000 Subject: Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore. Fixes FS #409. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1662 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/World.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/World.cpp') diff --git a/source/World.cpp b/source/World.cpp index 53c60bb69..b632fe7f9 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -2354,6 +2354,7 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, int a_EntityTy } } Monster->SetPosition(a_PosX, a_PosY, a_PosZ); + Monster->SetHealth(Monster->GetMaxHealth()); Monster->Initialize(this); BroadcastSpawnEntity(*Monster); return Monster->GetUniqueID(); -- cgit v1.2.3