mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
*Added configurable options for large cells - by XTZGZoReX
--HG-- branch : trunk
This commit is contained in:
16
configure.ac
16
configure.ac
@@ -216,6 +216,22 @@ AC_ARG_ENABLE(ra,
|
||||
])
|
||||
AC_MSG_RESULT($TRINITYD_ENABLE_RA)
|
||||
|
||||
# Enable large cells?
|
||||
AC_MSG_CHECKING(whether we use large cells)
|
||||
TRINITYD_ENABLE_LC=no
|
||||
AC_ARG_ENABLE(lc,
|
||||
[ --enable-lc Enable large cells (more CPU usage)],
|
||||
[
|
||||
if test "$enableval" = "yes" ; then
|
||||
CFLAGS="-DLARGE_CELL $CFLAGS"
|
||||
CXXFLAGS="-DLARGE_CELL $CXXFLAGS"
|
||||
TRINITYD_ENABLE_LC=yes
|
||||
elif test "$withval" != "no" ; then
|
||||
AC_MSG_ERROR(Please choose yes or no)
|
||||
fi
|
||||
])
|
||||
AC_MSG_RESULT($TRINITYD_ENABLE_LC)
|
||||
|
||||
## Check for required header files.
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_DIRENT
|
||||
|
||||
@@ -33,10 +33,6 @@ class GameObject;
|
||||
class Pet;
|
||||
class Player;
|
||||
|
||||
//comment the next line if CPU usage is too high
|
||||
//uncomment it otherwise
|
||||
//#define LARGE_CELL
|
||||
|
||||
#ifdef LARGE_CELL
|
||||
#define MAX_NUMBER_OF_CELLS 4
|
||||
#define CENTER_GRID_CELL_ID 128
|
||||
|
||||
Reference in New Issue
Block a user