mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-30 18:24:04 +03:00
4583dac399
And add a convenient script to diff changed maps. (Motivated by preserving the fixpoint behavior in Montlake)
17 lines
368 B
Bash
Executable File
17 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
# If `updater --dry` says a mapchanged, call this to launch a UI and compare.
|
|
# This only works if you have a copy of the S3 directory in ~/s3_abst_data.
|
|
|
|
set -e
|
|
|
|
FILE=$1
|
|
if [ "$FILE" == "" ]; then
|
|
echo Missing args;
|
|
exit 1;
|
|
fi
|
|
|
|
rm -f old.bin
|
|
cp ~/s3_abst_data/dev/${FILE}.gz old.bin.gz
|
|
gunzip old.bin.gz
|
|
./target/release/game --dev $FILE --diff old.bin
|