- Timestamp:
- 06/25/09 16:06:29 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgPlugins/bsp/VBSPEntity.cpp
r9475 r10413 182 182 Vec3f VBSPEntity::getVector(std::string str) 183 183 { 184 doublex, y, z;184 float x, y, z; 185 185 186 186 // Look for the first non-whitespace … … 191 191 192 192 if ((end > start) && (start != std::string::npos)) 193 x = atof(str.substr(start, end-start).c_str());193 x = osg::asciiToFloat(str.substr(start, end-start).c_str()); 194 194 else 195 195 return Vec3f(); … … 202 202 203 203 if ((end > start) && (start != std::string::npos)) 204 y = atof(str.substr(start, end-start).c_str());204 y = osg::asciiToFloat(str.substr(start, end-start).c_str()); 205 205 else 206 206 return Vec3f(); … … 215 215 216 216 if ((end > start) && (start != std::string::npos)) 217 z = atof(str.substr(start, end-start).c_str());217 z = osg::asciiToFloat(str.substr(start, end-start).c_str()); 218 218 else 219 219 return Vec3f();
