Changeset 183
- Timestamp:
- 11/19/08 13:44:12 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Player.cpp
r178 r183 17248 17248 { 17249 17249 // Units far than max visible distance for creature or not in our map are not visible too 17250 if (!target->IsWithinDistInMap(u, target->isActive()17250 if (!target->IsWithinDistInMap(u, u->isActive() 17251 17251 ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) 17252 17252 : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f))))