From: Samual Date: Mon, 28 Nov 2011 18:59:12 +0000 (-0500) Subject: More work on vote commands X-Git-Tag: xonotic-v0.6.0~188^2~28^2~201 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c391a4df061d936d9cbd49e3715078f3842dd399;p=xonotic%2Fxonotic-data.pk3dir.git More work on vote commands --- diff --git a/qcsrc/server/clientcommands.qc b/qcsrc/server/clientcommands.qc index 552dc2ff3..23bb261cd 100644 --- a/qcsrc/server/clientcommands.qc +++ b/qcsrc/server/clientcommands.qc @@ -11,6 +11,7 @@ .float checkfail; .float lms_spectate_warning; +float VoteCommand(entity caller, float argc); string MapVote_Suggest(string m); //void MapVote_SendPicture(float id) diff --git a/qcsrc/server/vote.qc b/qcsrc/server/vote.qc index dcc2da1b1..f8ed68947 100644 --- a/qcsrc/server/vote.qc +++ b/qcsrc/server/vote.qc @@ -631,6 +631,26 @@ float VoteCommand_macro_usage(float argc) // Main function handling vote commands // ====================================== +void VoteCommand(float request, entity caller, float argc) +{ + switch(request) + { + case VC_REQUEST_COMMAND: + { + + return; + } + + default: + case VC_REQUEST_USAGE: + { + print("\nUsage:^3 vote \n"); + print(" No arguments required.\n"); + return; + } + } +} + float VoteCommand(entity caller, float argc) { if(VoteCommand_macro_command(argc))