about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 15:20:18 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 15:20:18 +0000
commitfe5a7105c49c29c3a922aaa9b69781c411321f8e (patch)
treed6d43adf2943bc48d1fb702adf7eb51348fb4dd9 /scripts
parent4c0886f087352f006b88dc80bb28e16ecd07b530 (diff)
downloadzcatch-fe5a7105c49c29c3a922aaa9b69781c411321f8e.tar.gz
zcatch-fe5a7105c49c29c3a922aaa9b69781c411321f8e.zip
fixed the automatic versioning
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmd5.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/cmd5.py b/scripts/cmd5.py
index 85d3045b..5eaab34a 100644
--- a/scripts/cmd5.py
+++ b/scripts/cmd5.py
@@ -28,4 +28,10 @@ f = ""
 for filename in sys.argv[1:]:
 	f += cstrip([l.strip() for l in file(filename)])
 
-print '#define GAME_NETVERSION_HASH "%s"' % hashlib.md5(f).hexdigest().lower()[16:]
+
+hash = hashlib.md5(f).hexdigest().lower()[16:]
+# TODO: refactor hash that is equal to the 0.5 hash, remove when we 
+# TODO: remove when we don't need it any more
+if hash == "7e33344691ca8a61":
+	hash = "b67d1f1a1eea234e"
+print '#define GAME_NETVERSION_HASH "%s"' % hash