From 2928cb6853f1e007e98f174c37d75c793a0c09cc Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 16 Feb 2012 17:45:26 +0000 Subject: cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively. cChunk fix - setting a block to the same value doesn't mark chunk dirty (resulted in un-unloadable chunks) git-svn-id: http://mc-server.googlecode.com/svn/trunk@279 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cMonsterConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cMonsterConfig.cpp') diff --git a/source/cMonsterConfig.cpp b/source/cMonsterConfig.cpp index 43c2ca689..7f4389e5f 100644 --- a/source/cMonsterConfig.cpp +++ b/source/cMonsterConfig.cpp @@ -105,7 +105,7 @@ void cMonsterConfig::AssignAttributes(cMonster *m, const char* n) m->SetAttackRange (itr->m_AttackRange); m->SetSightDistance(itr->m_SightDistance); m->SetAttackRate ((int)itr->m_AttackRate); - m->SetMaxHealth ((int)itr->m_MaxHealth); + m->SetMaxHealth ((short)itr->m_MaxHealth); } } // for itr - m_pState->AttributesList[] } -- cgit v1.2.3