Changeset 490 for trunk/src/lua/lua_map_area.cc
- Timestamp:
- 03/08/16 13:19:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_map_area.cc
r452 r490 21 21 return map->string_to_id( lua_tostring( L, index ) ); 22 22 else 23 return lua_tounsigned( L, index );23 return nlua_tounsigned( L, index ); 24 24 } 25 25 … … 49 49 bool nv::lua::detail::is_map_area( lua_State* L, int index ) 50 50 { 51 return luaL_testudata( L, index, NLUA_MAP_AREA_METATABLE ) != 0;51 return nlua_testudata( L, index, NLUA_MAP_AREA_METATABLE ) != 0; 52 52 } 53 53 … … 151 151 { 152 152 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 ) ) ); 154 154 return 1; 155 155 } … … 158 158 { 159 159 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 ) ); 161 161 return 0; 162 162 } … … 173 173 else 174 174 { 175 lua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) );175 nlua_pushunsigned( L, ma->get_cell( to_coord( L, 2 ) ) ); 176 176 } 177 177 return 1; … … 181 181 { 182 182 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 ) ); 184 184 return 0; 185 185 }
Note: See TracChangeset
for help on using the changeset viewer.