Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8386 in orxonox.OLD for branches/script_engine


Ignore:
Timestamp:
Jun 14, 2006, 2:59:08 PM (18 years ago)
Author:
snellen
Message:

executor removes the userdata after getting it from lua

Location:
branches/script_engine/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/util/executor/executor_lua.cc

    r8385 r8386  
    2020std::string temp;
    2121
    22 template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); return obj;};
     22template<typename type> type* fromLua(lua_State* state, int index) { type *obj = Lunar<type>::check(state, 1); lua_remove(L, 1); return obj;};
    2323template<> bool fromLua<bool>(lua_State* state, int index) { return lua_toboolean(state, index); };
    2424template<> int fromLua<int>(lua_State* state, int index) { return (int)lua_tonumber(state, index); };
  • branches/script_engine/src/world_entities/space_ships/helicopter.cc

    r8385 r8386  
    3535
    3636CREATE_FACTORY(Helicopter, CL_HELICOPTER);
    37 
    38 //CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER);
     37#include "script_class.h"
     38CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER);
    3939
    4040
Note: See TracChangeset for help on using the changeset viewer.