Ignore:
Timestamp:
08/19/13 06:37:47 (12 years ago)
Author:
epyon
Message:
  • lua - major refactoring of the lua state/table
  • lua - added state_wrapper common to state/table
  • lua_values - fixed returning of simple types
  • lua_area - fixed area.coords and area.edges
  • lua_map_area - "fixed" case when object is used as base
File:
1 edited

Legend:

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

    r204 r206  
    150150static int nlua_area_coords( lua_State* L )
    151151{
    152         nv::rectangle* a( nlua_to_parea( L, lua_upvalueindex(1) ) );
     152        nv::rectangle* a( nlua_to_parea( L, 1 ) );
    153153        nv::ivec2      c( a->ul );
    154154        c.x--;
     
    184184static int nlua_area_edges( lua_State* L )
    185185{
    186         nv::rectangle*   a( nlua_to_parea( L, lua_upvalueindex(1) ) );
     186        nv::rectangle*   a( nlua_to_parea( L, 1 ) );
    187187        nv::ivec2 c( a->ul );
    188188        c.x--;
Note: See TracChangeset for help on using the changeset viewer.