Changeset 228 for trunk/src/lua
- Timestamp:
- 02/04/14 03:50:28 (11 years ago)
- Location:
- trunk/src/lua
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_map_tile.cc
r221 r228 130 130 { 131 131 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 ); 133 133 } 134 134 -
trunk/src/lua/lua_state.cc
r217 r228 234 234 for(; lib->func != NULL; lib++) 235 235 { 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 ); 237 239 } 238 240 register_nova( this );
Note: See TracChangeset
for help on using the changeset viewer.