Skip to content

Commit

Permalink
add patch to clean up scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
sauerbraten committed Nov 27, 2020
1 parent 512612b commit 5abaad1
Show file tree
Hide file tree
Showing 9 changed files with 516 additions and 129 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,26 @@ build: update-src apply-patches

install:
cd src && make install
cp -R data ~/.p1xbraten/

clean:
cd src && make clean
cd src/enet && make clean

apply-patches:
$(PATCH) < patches/moviehud.patch
$(PATCH) < patches/clean_scoreboard.patch
dos2unix src/vcpp/sauerbraten.vcxproj
$(PATCH) < patches/weaponstats.patch
unix2dos src/vcpp/sauerbraten.vcxproj
$(PATCH) < patches/macos-builds.patch
$(PATCH) < patches/macos_builds.patch

undo-patches:
$(PATCH) --reverse < patches/macos-builds.patch
$(PATCH) --reverse < patches/macos_builds.patch
dos2unix src/vcpp/sauerbraten.vcxproj
$(PATCH) --reverse < patches/weaponstats.patch
unix2dos src/vcpp/sauerbraten.vcxproj
$(PATCH) --reverse < patches/clean_scoreboard.patch
$(PATCH) --reverse < patches/moviehud.patch

clean-sauer: check-env
Expand All @@ -32,7 +35,7 @@ clean-sauer: check-env

update-src: clean-sauer
rm --recursive --force src/
rsync --recursive --times --exclude=".*" $(SAUER_DIR)/src .
rsync --recursive --ignore-times --times --exclude=".*" $(SAUER_DIR)/src .

check-env:
ifndef SAUER_DIR
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,11 @@ make install
- `showkpd`: when 1, shows the players' frags/death ratio
- `showaccuracy`: when 1, shows the players' overall accuracy
- `showdamage`: when 1, shows the players' overall damage dealt; when 2, shows the players' overall net damage (= dealt - received)

### [clean_scoreboard.patch](./patches/clean_scoreboard.patch)

- filename says it all:

![ectf](https://i.imgur.com/6DXW4Pj.jpg)
![duel](https://i.imgur.com/cbGUTxk.jpg)
![multiple teams](https://i.imgur.com/aC8rHms.jpg)
Loading

0 comments on commit 5abaad1

Please sign in to comment.