mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
[Bug Fix] Fix CMakeLists.txt so compile works. (#1387)
* [Bug Fix] Fix CMakeLists.txt so compile works. * Typo. * Add ifdefs to bot files so they're not used unless bots are enabled.
This commit is contained in:
parent
6e61f6d0ba
commit
cc46297b32
@ -45,6 +45,7 @@ SET(zone_sources
|
|||||||
horse.cpp
|
horse.cpp
|
||||||
inventory.cpp
|
inventory.cpp
|
||||||
loottables.cpp
|
loottables.cpp
|
||||||
|
lua_bot.cpp
|
||||||
lua_bit.cpp
|
lua_bit.cpp
|
||||||
lua_corpse.cpp
|
lua_corpse.cpp
|
||||||
lua_client.cpp
|
lua_client.cpp
|
||||||
@ -102,6 +103,7 @@ SET(zone_sources
|
|||||||
pathfinder_nav_mesh.cpp
|
pathfinder_nav_mesh.cpp
|
||||||
pathfinder_null.cpp
|
pathfinder_null.cpp
|
||||||
pathing.cpp
|
pathing.cpp
|
||||||
|
perl_bot.cpp
|
||||||
perl_client.cpp
|
perl_client.cpp
|
||||||
perl_doors.cpp
|
perl_doors.cpp
|
||||||
perl_entity.cpp
|
perl_entity.cpp
|
||||||
@ -195,6 +197,7 @@ SET(zone_headers
|
|||||||
hate_list.h
|
hate_list.h
|
||||||
heal_rotation.h
|
heal_rotation.h
|
||||||
horse.h
|
horse.h
|
||||||
|
lua_bot.h
|
||||||
lua_bit.h
|
lua_bit.h
|
||||||
lua_client.h
|
lua_client.h
|
||||||
lua_corpse.h
|
lua_corpse.h
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#ifdef BOTS
|
||||||
#ifdef LUA_EQEMU
|
#ifdef LUA_EQEMU
|
||||||
|
|
||||||
#include "lua.hpp"
|
#include "lua.hpp"
|
||||||
@ -11,3 +12,4 @@ luabind::scope lua_register_bot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
#ifdef BOTS
|
||||||
#ifndef EQEMU_LUA_BOT_H
|
#ifndef EQEMU_LUA_BOT_H
|
||||||
#define EQEMU_LUA_BOT_H
|
#define EQEMU_LUA_BOT_H
|
||||||
#ifdef LUA_EQEMU
|
#ifdef LUA_EQEMU
|
||||||
@ -28,3 +29,4 @@ public:
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software
|
|||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef BOTS
|
||||||
#include "../common/features.h"
|
#include "../common/features.h"
|
||||||
#ifdef EMBPERL_XS_CLASSES
|
#ifdef EMBPERL_XS_CLASSES
|
||||||
#include "../common/global_define.h"
|
#include "../common/global_define.h"
|
||||||
@ -81,4 +82,5 @@ XS(boot_Bot)
|
|||||||
XSRETURN_YES;
|
XSRETURN_YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //EMBPERL_XS_CLASSES
|
#endif //EMBPERL_XS_CLASSES
|
||||||
|
#endif //BOTS
|
||||||
Loading…
x
Reference in New Issue
Block a user