| 198 | } |
| 199 | |
| 200 | ForestWindAccumulator* ForestWindMgr::getLocalWind( ForestItemKey key ) |
| 201 | { |
| 202 | PROFILE_SCOPE( ForestWindMgr_getLocalWind ); |
| 203 | |
| 204 | ForestWindAccumulator *accumulator = NULL; |
| 205 | IdToWindMap::Iterator iter = mSources->find( key ); |
| 206 | if ( iter != mSources->end() ) |
| 207 | accumulator = iter->value; |
| 208 | |
| 209 | if ( accumulator ) |
| 210 | return accumulator; |
| 211 | else |
| 212 | { |
| 213 | /* |
| 214 | ForestWindEmitterList::iterator iter = mEmitters.begin(); |
| 215 | for ( ; iter != mEmitters.end(); iter++ ) |
| 216 | { |
| 217 | if ( (*iter)->getWind() && |
| 218 | (*iter)->isEnabled() && |
| 219 | !(*iter)->isLocalWind() ) |
| 220 | { |
| 221 | return (*iter)->getWind(); |
| 222 | } |
| 223 | } |
| 224 | */ |
| 225 | return NULL; |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | ForestWindEmitter* ForestWindMgr::getGlobalWind() |
| 230 | { |
no test coverage detected