about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 14:04:02 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 14:04:02 +0000
commit6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c (patch)
treecc8a72be53f461ca06dda2f15cc0b56679a9e417 /scripts
parentf96be4eb0ed4430013c8ecfcb043c049d5103479 (diff)
downloadzcatch-6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c.tar.gz
zcatch-6d44adb7114a0be6ecb1b0fabc6fe69d308cad1c.zip
fixed keybindings. reworked the voting a bit. added vote spamming protection. added ingame voting hud.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_keys.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_keys.py b/scripts/gen_keys.py
index 42fa69ac..5a2e8f7f 100644
--- a/scripts/gen_keys.py
+++ b/scripts/gen_keys.py
@@ -5,7 +5,7 @@ glfw = "src/engine/external/glfw/include/GL/glfw.h"
 lines = [line.strip() for line in file(glfw).readlines()]
 
 # genereate keys.h file
-f = file("src/engine/keys.h", "w")
+f = file("src/engine/e_keys.h", "w")
 
 keynames = {}
 KEY_MOUSE_FIRST = 256+128
@@ -69,7 +69,7 @@ f.close()
 
 
 # generate keynames.c file
-f = file("src/engine/keynames.c", "w")
+f = file("src/engine/e_keynames.c", "w")
 print >>f, '/* AUTO GENERATED! DO NOT EDIT MANUALLY! */'
 print >>f, ''
 print >>f, "#include <string.h>"
@@ -77,7 +77,7 @@ print >>f, ""
 print >>f, "static const char key_strings[512][16] ="
 print >>f, "{"
 for i in range(0, 512):
-	n = "#%d"%i
+	n = "&%d"%i
 	if i >= 48 and i <= 57 or i >= 65 and i <= 90:
 		n = chr(i).lower()
 	elif i in keynames: