Changeset 228 for trunk/src/lua


Ignore:
Timestamp:
02/04/14 03:50:28 (11 years ago)
Author:
epyon
Message:
  • various untracked changes
Location:
trunk/src/lua
Files:
2 edited

Legend:

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

    r221 r228  
    130130                {
    131131                        nv::uint8 c = tile->data[ y * tile->size_x + x ];
    132                         if ( c != 0 ) area->set_cell( coord + nv::ivec2( x, y ), tile->data[ y * tile->size_x + x ] );
     132                        if ( c != 0 ) area->set_cell( coord + nv::ivec2( x, y ), c );
    133133                }
    134134
  • trunk/src/lua/lua_state.cc

    r217 r228  
    234234                for(; lib->func != NULL; lib++)
    235235                {
    236                         lib->func( m_state );
     236                        lua_pushcfunction( m_state, lib->func );
     237                        lua_call(m_state, 0, 1);
     238                        lua_setglobal( m_state, lib->name );
    237239                }
    238240                register_nova( this );
Note: See TracChangeset for help on using the changeset viewer.