aboutsummaryrefslogtreecommitdiff
path: root/games/thudboard/files/patch-battles.py
diff options
context:
space:
mode:
Diffstat (limited to 'games/thudboard/files/patch-battles.py')
-rw-r--r--games/thudboard/files/patch-battles.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/games/thudboard/files/patch-battles.py b/games/thudboard/files/patch-battles.py
new file mode 100644
index 000000000000..a4b35ff1aec9
--- /dev/null
+++ b/games/thudboard/files/patch-battles.py
@@ -0,0 +1,14 @@
+--- battle.py.orig Tue Jan 13 17:49:47 2004
++++ battle.py Tue Jan 13 17:50:54 2004
+@@ -411,9 +411,9 @@
+ filename = self.filename
+ if not filename:
+ filename = self.name
+- filename = os.sep.join([os.getcwd(), "battles", filename+".thud"])
++ filename = os.sep.join(["~/.thudboard/", "battles", filename+".thud"])
+ if not self.name or filename=='<anonymous battle>':
+- filename = os.sep.join([os.getcwd(), "battles", ""])
++ filename = os.sep.join(["~/.thudboard/", "battles", ""])
+ return filename
+
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#