Changeset 378 for trunk/src/lua/lua_map_tile.cc
- Timestamp:
- 05/29/15 12:12:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_map_tile.cc
r374 r378 55 55 nv::map_area* map_area = nv::lua::detail::to_map_area( L, 3 ); 56 56 lua_settop( L, 2 ); 57 std::string code = nv::trimmed( lua_tostring( L, 1 ) ); 58 nv::remove_chars( code, " \r\t" ); 57 std::string code = nv::trimmed( lua_tostring( L, 1 ) ).to_string(); 58 std::string chars( " \r\t" ); 59 code.erase( nv::remove_if( code.begin(), code.end(), 60 [&chars] ( const char& c ) 61 { 62 return chars.find( c ) != std::string::npos; 63 } ), code.end() ); 59 64 60 65 map_tile tile;
Note: See TracChangeset
for help on using the changeset viewer.