diff options
Diffstat (limited to '')
| -rw-r--r-- | src/chestnut.cpp | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/src/chestnut.cpp b/src/chestnut.cpp index 7ebfc4d..ff653c0 100644 --- a/src/chestnut.cpp +++ b/src/chestnut.cpp @@ -159,9 +159,11 @@ float daEnChestnut_c::nearestPlayerDistance() {  	for (int i = 0; i < 4; i++) {  		if (dAcPy_c *player = dAcPy_c::findByID(i)) { -			float thisDist = abs(player->pos.x - pos.x); -			if (thisDist < bestSoFar) -				bestSoFar = thisDist; +			if (strcmp(player->states2.getCurrentState()->getName(), "dAcPy_c::StateID_Balloon")) { +				float thisDist = abs(player->pos.x - pos.x); +				if (thisDist < bestSoFar) +					bestSoFar = thisDist; +			}  		}  	}  | 
