Changeset 374 for trunk/src/lua/lua_map_tile.cc
- Timestamp:
- 05/26/15 17:35:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_map_tile.cc
r369 r374 7 7 #include "nv/lua/lua_map_tile.hh" 8 8 9 #include <numeric>10 9 #include "nv/lua/lua_map_area.hh" 11 10 #include "nv/stl/flags.hh" 11 #include "nv/stl/numeric.hh" 12 #include "nv/stl/algorithm.hh" 12 13 #include "nv/core/random.hh" 13 14 #include "nv/lua/lua_area.hh" … … 59 60 map_tile tile; 60 61 61 tile.size_y = (nv::uint16)( std::count( code.begin(), code.end(), '\n' ) + 1 );62 tile.size_y = (nv::uint16)( nv::count( code.begin(), code.end(), '\n' ) + 1 ); 62 63 tile.size_x = (nv::uint16)( code.find( '\n' ) ); 63 64 if ( tile.size_x == 0 ) … … 236 237 nv::uint16 org_x = tile->size_x; 237 238 nv::uint16 org_y = tile->size_y; 238 nv::uint16 new_x = ( nv::uint16)std::accumulate( sizes_x.begin(), sizes_x.end(), 0 );239 nv::uint16 new_y = ( nv::uint16)std::accumulate( sizes_y.begin(), sizes_y.end(), 0 );239 nv::uint16 new_x = ( nv::uint16 )nv::accumulate( sizes_x.begin(), sizes_x.end(), 0 ); 240 nv::uint16 new_y = ( nv::uint16 )nv::accumulate( sizes_y.begin(), sizes_y.end(), 0 ); 240 241 241 242 nv::uint8* data = new nv::uint8[ new_x * new_y ];
Note: See TracChangeset
for help on using the changeset viewer.