mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[9386] Store some config values in Rate emun.
This commit is contained in:
parent
6e5b74e0ca
commit
5368751c13
33 changed files with 163 additions and 164 deletions
|
|
@ -537,7 +537,7 @@ void Creature::DoFleeToGetAssistance()
|
|||
if (!getVictim())
|
||||
return;
|
||||
|
||||
float radius = sWorld.getConfig(CONFIG_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS);
|
||||
float radius = sWorld.getRate(RATE_CREATURE_FAMILY_FLEE_ASSISTANCE_RADIUS);
|
||||
if (radius >0)
|
||||
{
|
||||
Creature* pCreature = NULL;
|
||||
|
|
@ -1509,7 +1509,7 @@ void Creature::CallAssistance()
|
|||
{
|
||||
SetNoCallAssistance(true);
|
||||
|
||||
float radius = sWorld.getConfig(CONFIG_CREATURE_FAMILY_ASSISTANCE_RADIUS);
|
||||
float radius = sWorld.getRate(RATE_CREATURE_FAMILY_ASSISTANCE_RADIUS);
|
||||
if(radius > 0)
|
||||
{
|
||||
std::list<Creature*> assistList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue