about summary refs log tree commit diff
path: root/datasrc/network.py
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-26 22:06:29 +0100
committeroy <Tom_Adams@web.de>2011-03-26 22:06:29 +0100
commit5b328e54842b128881237ed608705b596f310ce8 (patch)
tree6700438579549faf9295bd5622826145c2976284 /datasrc/network.py
parent6e1b6b102a623d1e9b93566491bd9dc525fdcbaa (diff)
downloadzcatch-5b328e54842b128881237ed608705b596f310ce8.tar.gz
zcatch-5b328e54842b128881237ed608705b596f310ce8.zip
added a limit for the number of votes that can be added to the server and send options as lists when a client joins. Closes #459
Diffstat (limited to 'datasrc/network.py')
-rw-r--r--datasrc/network.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/datasrc/network.py b/datasrc/network.py
index 797815bd..f84f0adb 100644
--- a/datasrc/network.py
+++ b/datasrc/network.py
@@ -261,6 +261,15 @@ Messages = [
 	NetMessage("Sv_VoteClearOptions", [
 	]),
 	
+	NetMessage("Sv_VoteOptionListAdd", [
+		NetIntRange("m_NumOptions", 1, 15),
+		NetStringStrict("m_pDescription0"), NetStringStrict("m_pDescription1"),	NetStringStrict("m_pDescription2"),
+		NetStringStrict("m_pDescription3"),	NetStringStrict("m_pDescription4"),	NetStringStrict("m_pDescription5"),
+		NetStringStrict("m_pDescription6"), NetStringStrict("m_pDescription7"), NetStringStrict("m_pDescription8"),
+		NetStringStrict("m_pDescription9"), NetStringStrict("m_pDescription10"), NetStringStrict("m_pDescription11"),
+		NetStringStrict("m_pDescription12"), NetStringStrict("m_pDescription13"), NetStringStrict("m_pDescription14"),
+	]),
+
 	NetMessage("Sv_VoteOptionAdd", [
 		NetStringStrict("m_pDescription"),
 	]),