Changeset 1205
- Timestamp:
- 03/04/2010 03:29:07 PM (6 months ago)
- Location:
- Trunk/src/LuaEngine
- Files:
-
- 3 modified
-
GlobalFunctions.h (modified) (1 diff)
-
LUAEngine.cpp (modified) (3 diffs)
-
UnitFunctions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/src/LuaEngine/GlobalFunctions.h
r1204 r1205 607 607 int GetPlatform(lua_State * L) 608 608 { 609 #ifdef WIN32 610 lua_pushliteral(L,"windows"); 611 #else 612 lua_pushliteral(L,"linux"); 613 #endif 609 lua_pushliteral(L,PLATFORM_TEXT); 614 610 return 1; 615 611 } -
Trunk/src/LuaEngine/LUAEngine.cpp
r1204 r1205 554 554 uint16 functionRef = 0; 555 555 uint32 entry = luaL_checkint(L, 1); 556 const char * typeName = luaL_ checkstring(L, 2);556 const char * typeName = luaL_typename(L, 2); 557 557 lua_settop(L,2); 558 558 … … 941 941 } 942 942 if(functionRef) 943 sLuaMgr.RegisterEvent(REGTYPE_ UNIT_GOSSIP,entry,ev,functionRef);943 sLuaMgr.RegisterEvent(REGTYPE_ITEM_GOSSIP,entry,ev,functionRef); 944 944 return 0; 945 945 } … … 1002 1002 } 1003 1003 if(functionRef) 1004 sLuaMgr.RegisterEvent(REGTYPE_ UNIT_GOSSIP,entry,ev,functionRef);1004 sLuaMgr.RegisterEvent(REGTYPE_GO_GOSSIP,entry,ev,functionRef); 1005 1005 return 0; 1006 1006 } -
Trunk/src/LuaEngine/UnitFunctions.h
r1204 r1205 1880 1880 TEST_UNIT() 1881 1881 ptr->WipeHateList(); 1882 ptr->GetAIInterface()->WipeHateList(); 1882 1883 return 0; 1883 1884 }
![(please configure the [header_logo] section in trac.ini)](/trac/arcscripts/chrome/site/your_project_logo.png)