From 5b328e54842b128881237ed608705b596f310ce8 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 26 Mar 2011 22:06:29 +0100 Subject: 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 --- datasrc/network.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'datasrc/network.py') 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"), ]), -- cgit 1.4.1