| 1205 | static HullExistsCache hull_exists_cache; |
| 1206 | |
| 1207 | bool DoesHullFileExist(const std::string& hull_path) { |
| 1208 | HullExistsCache::const_iterator iter = hull_exists_cache.find(hull_path); |
| 1209 | bool hull_file_exists = false; |
| 1210 | if (iter != hull_exists_cache.end()) { |
| 1211 | hull_file_exists = iter->second; |
| 1212 | } else { |
| 1213 | hull_file_exists = FileExists(hull_path.c_str(), kDataPaths | kModPaths); |
| 1214 | hull_exists_cache[hull_path] = hull_file_exists; |
| 1215 | } |
| 1216 | return hull_file_exists; |
| 1217 | } |
| 1218 | |
| 1219 | int EnvObject::GetCollisionModelID() { |
| 1220 | if (ofr->bush_collision) { |
no test coverage detected