Ignore:
Timestamp:
03/08/16 13:19:59 (9 years ago)
Author:
epyon
Message:
  • temporary Lua 5.1 hardcode
File:
1 edited

Legend:

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

    r452 r490  
    2121                return map->string_to_id( lua_tostring( L, index ) );
    2222        else
    23                 return lua_tounsigned( L, index );
     23                return nlua_tounsigned( L, index );
    2424}
    2525
     
    4949bool nv::lua::detail::is_map_area( lua_State* L, int index )
    5050{
    51         return luaL_testudata( L, index, NLUA_MAP_AREA_METATABLE ) != 0;
     51        return nlua_testudata( L, index, NLUA_MAP_AREA_METATABLE ) != 0;
    5252}
    5353
     
    151151{
    152152        nv::map_area* ma = to_map_area( L, 1 );
    153         lua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) );
     153        nlua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) );
    154154        return 1;
    155155}
     
    158158{
    159159        nv::map_area* ma = to_map_area( L, 1 );
    160         ma->set_cell( to_coord( L, 2 ), lua_tounsigned( L, 3 ) );
     160        ma->set_cell( to_coord( L, 2 ), nlua_tounsigned( L, 3 ) );
    161161        return 0;
    162162}
     
    173173        else
    174174        {
    175                 lua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) );
     175                nlua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) );
    176176        }
    177177        return 1;
     
    181181{
    182182        nv::map_area* ma = to_map_area( L, 1 );
    183         ma->set_cell( to_coord( L, 2 ), lua_tounsigned( L, 3 ) );
     183        ma->set_cell( to_coord( L, 2 ), nlua_tounsigned( L, 3 ) );
    184184        return 0;
    185185}
Note: See TracChangeset for help on using the changeset viewer.