OpenTTD: fixed host compilation

This commit is contained in:
pelya
2021-01-25 21:55:21 +02:00
parent ae8b343156
commit d502c0acb1
2 changed files with 5 additions and 4 deletions

View File

@@ -14,14 +14,15 @@ export CXXFLAGS=-O0
[ -e Makefile ] || cmake ../src || exit 1
make -j8 VERBOSE=1 || exit 1
cd bin
cp -f ../baseset/opntitle.dat opntitle.sav
if [ -z "$1" ]; then
./openttd -d 2 -m null -g opntitle.sav -r 854x480
../openttd -d 2 -m null -g opntitle.sav -r 854x480
elif [ -n "$2" ]; then
valgrind --track-fds=yes --log-file=../../valgrind.log --leak-check=full \
./openttd -d 0 -m null # -g opntitle.sav
../openttd -d 0 -m null # -g opntitle.sav
else
#valgrind --track-fds=yes --log-file=valgrind.log --leak-check=full \
gdb -ex run --args \
./openttd -d 0 -m null -g opntitle.sav -r 854x480
../openttd -d 0 -m null -g opntitle.sav -r 854x480
fi