Ignore:
Timestamp:
05/26/15 17:35:06 (10 years ago)
Author:
epyon
Message:
  • MASSIVE commit
  • common.hh - size_t, ptrdiff_t, nv:: namespace, NV_ALIGN_OF and basic template tools
  • STL - algorithm.hh, iterator.hh, limits.hh, numeric.hh and type_info.hh
  • STL - updates to memory, array and string
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_map_tile.cc

    r369 r374  
    77#include "nv/lua/lua_map_tile.hh"
    88
    9 #include <numeric>
    109#include "nv/lua/lua_map_area.hh"
    1110#include "nv/stl/flags.hh"
     11#include "nv/stl/numeric.hh"
     12#include "nv/stl/algorithm.hh"
    1213#include "nv/core/random.hh"
    1314#include "nv/lua/lua_area.hh"
     
    5960        map_tile tile;
    6061
    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 );
    6263        tile.size_x = (nv::uint16)( code.find( '\n' ) );
    6364        if ( tile.size_x == 0 )
     
    236237        nv::uint16 org_x = tile->size_x;
    237238        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 );
    240241
    241242        nv::uint8* data = new nv::uint8[ new_x * new_y ];
Note: See TracChangeset for help on using the changeset viewer.