]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
More work on vote commands
authorSamual <samual@xonotic.org>
Mon, 28 Nov 2011 18:59:12 +0000 (13:59 -0500)
committerSamual <samual@xonotic.org>
Mon, 28 Nov 2011 18:59:12 +0000 (13:59 -0500)
qcsrc/server/clientcommands.qc
qcsrc/server/vote.qc

index 552dc2ff3fc538fb0b33796642a31074efef2ecd..23bb261cd9d153d2faedea89016d56c120d1a852 100644 (file)
@@ -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)
 
index dcc2da1b145235c2a213d7a41df8d2b7e6ca3984..f8ed689478ef1b0fed3b1524bab69498105a39f1 100644 (file)
@@ -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))