Browse Source

Merge branch 'travis' into asheep

asheep
Night Owl 7 years ago
parent
commit
be3b780815
  1. 18
      .travis.yml
  2. 22
      cl_dll/scoreboard.cpp

18
.travis.yml

@ -5,10 +5,20 @@ compiler: @@ -5,10 +5,20 @@ compiler:
os:
- linux
- osx
sudo: true
addons:
apt:
packages:
- gcc-multilib
- g++-multilib
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gcc-multilib g++-multilib; fi
- curl http://libsdl.org/release/SDL2-devel-2.0.7-mingw.tar.gz | tar xzf -
- mv SDL2-2.0.7/i686-w64-mingw32/include/SDL2 cl_dll/
script:
- mkdir -p build && cd build
- cmake ../ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VOICEMGR=0 && make -j3 && rm -rf *
- cmake ../ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VOICEMGR=1 && make -j3 && rm -rf *
- cmake ../ -DCMAKE_C_FLAGS="-O2 -pipe -DNDEBUG -fvisibility=hidden -fomit-frame-pointer" -DCMAKE_CXX_FLAGS="-fno-exceptions -fno-rtti" -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined -Wl,--strip-all" -DGOLDSOURCE_SUPPORT=1 -DUSE_VOICEMGR=0 && make -j3
- mkdir -p $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC/cl_dlls
- mkdir -p $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC/dlls
- cp cl_dll/client.* $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC/cl_dlls
- cp dlls/hl.* $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC/dlls
- tar -J -cf $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC.txz $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC
- curl --upload-file $TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC.txz https://transfer.sh/$TRAVIS_BRANCH-$TRAVIS_OS_NAME-$CC.txz

22
cl_dll/scoreboard.cpp

@ -92,17 +92,17 @@ We have a minimum width of 1-320 - we could have the field widths scale with it? @@ -92,17 +92,17 @@ We have a minimum width of 1-320 - we could have the field widths scale with it?
// X positions
// relative to the side of the scoreboard
#define NAME_RANGE_MIN -100
#define NAME_RANGE_MAX 145
#define KILLS_RANGE_MIN 130
#define KILLS_RANGE_MAX 170
#define DIVIDER_POS 180
#define DEATHS_RANGE_MIN 185
#define DEATHS_RANGE_MAX 210
#define PING_RANGE_MIN 245
#define PING_RANGE_MAX 295
#define PL_RANGE_MIN 315
#define PL_RANGE_MAX 375
#define NAME_RANGE_MIN -65
#define NAME_RANGE_MAX 180
#define KILLS_RANGE_MIN 165
#define KILLS_RANGE_MAX 205
#define DIVIDER_POS 215
#define DEATHS_RANGE_MIN 220
#define DEATHS_RANGE_MAX 245
#define PING_RANGE_MIN 280
#define PING_RANGE_MAX 330
#define PL_RANGE_MIN 350
#define PL_RANGE_MAX 410
int SCOREBOARD_WIDTH = 320;

Loading…
Cancel
Save