Changeset 361 for trunk/src/engine/particle_engine.cc
- Timestamp:
- 05/15/15 12:01:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/particle_engine.cc
r353 r361 300 300 void nv::particle_engine::load( lua::table_guard& table ) 301 301 { 302 std::string id = table.get_st ring( "id" );302 std::string id = table.get_std_string( "id" ); 303 303 if ( id == "" ) 304 304 { … … 317 317 data.affector_count = 0; 318 318 319 std::string orientation = table.get_string( "orientation", "point" );319 const_string orientation = table.get_string( "orientation", "point" ); 320 320 if ( orientation == "point" ) { data.orientation = particle_orientation::POINT; } 321 321 else if ( orientation == "oriented" ) { data.orientation = particle_orientation::ORIENTED; } … … 329 329 } 330 330 331 std::string origin = table.get_string( "origin", "center" );331 const_string origin = table.get_string( "origin", "center" ); 332 332 if ( origin == "center" ) { data.origin = particle_origin::CENTER; } 333 333 else if ( origin == "top_left" ) { data.origin = particle_origin::TOP_LEFT; } … … 353 353 { 354 354 lua::table_guard element( table, i+1 ); 355 std::string type = element.get_string("type");356 std::string sub_type = element.get_st ring("sub_type");355 const_string type = element.get_string("type"); 356 std::string sub_type = element.get_std_string("sub_type"); 357 357 if ( type == "emmiter" ) 358 358 {
Note: See TracChangeset
for help on using the changeset viewer.