Refactor cfp to currently_fleeing for readability

This commit is contained in:
Akkadius
2015-11-01 16:02:41 -06:00
parent 53c8d63981
commit 624c7341c5
8 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -759,7 +759,7 @@ void Client::AI_Process()
}
if(RuleB(Combat, EnableFearPathing)){
if(curfp) {
if(currently_fleeing) {
if(IsRooted()) {
//make sure everybody knows were not moving, for appearance sake
if(IsMoving())
@@ -955,7 +955,7 @@ void Mob::AI_Process() {
// Begin: Additions for Wiz Fear Code
//
if(RuleB(Combat, EnableFearPathing)){
if(curfp) {
if(currently_fleeing) {
if(IsRooted() || (IsBlind() && CombatRange(hate_list.GetClosestEntOnHateList(this)))) {
//make sure everybody knows were not moving, for appearance sake
if(IsMoving())