From 71b07786ac49c28e907fe3836216fea7346a4f02 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Jun 2016 16:58:12 +0300 Subject: Add shared file with server code for change constants. --- build.sh | 8 +++++--- tools/vars.sh | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 tools/vars.sh diff --git a/build.sh b/build.sh index 1affb18..b5920c0 100755 --- a/build.sh +++ b/build.sh @@ -6,6 +6,8 @@ if [[ -z "${CMD}" ]]; then export CMD="default" fi +source tools/vars.sh + mkdir build # this need for some outdated os mkdir m4 @@ -13,12 +15,12 @@ autoreconf -i cd build if [[ "${CMD}" == "default" ]]; then export CC=gcc - ../configure --enable-sanitize --enable-lto + ../configure --enable-sanitize --enable-lto CPPFLAGS="${VARS}" elif [[ "${CMD}" == "old" ]]; then - ../configure + ../configure CPPFLAGS="${VARS}" elif [[ "${CMD}" == "gprof" ]]; then export CC=gcc - ../configure --enable-gprof + ../configure --enable-gprof CPPFLAGS="${VARS}" fi make -j3 export RET=$? diff --git a/tools/vars.sh b/tools/vars.sh new file mode 100755 index 0000000..e69e0ee --- /dev/null +++ b/tools/vars.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# MAX_SKILL 1478 + 22 = 1500 +# MAX_SKILL_ID 10015 + 22 = 10037 + +# can be used for custom skill id: 10016 - 10036 + +export VARS="-DMAX_SKILL=1500 -DMAX_SKILL_ID=10037" -- cgit v1.2.3-60-g2f50