1.1 --- a/plugins/basevotes.sp Wed Aug 08 23:44:56 2007 +0000
1.2 +++ b/plugins/basevotes.sp Wed Aug 08 23:45:24 2007 +0000
1.3 @@ -328,13 +328,24 @@
1.4 }
1.5 else if (action == MenuAction_Display)
1.6 {
1.7 + decl String:display[64];
1.8 + GetMenuItem(menu, param2, "", 0, _, display, sizeof(display));
1.9 +
1.10 + if (g_voteType != voteType:question)
1.11 + {
1.12 + decl String:buffer[255];
1.13 + Format(buffer, sizeof(buffer), "%T", display, param1);
1.14 +
1.15 + return RedrawMenuItem(buffer);
1.16 + }
1.17 +
1.18 }
1.19 else if (action == MenuAction_DisplayItem)
1.20 {
1.21 decl String:display[64];
1.22 GetMenuItem(menu, param2, "", 0, _, display, sizeof(display));
1.23
1.24 - if(strcmp(display, "No") == 0 || strcmp(display, "Yes") == 0)
1.25 + if (strcmp(display, "No") == 0 || strcmp(display, "Yes") == 0)
1.26 {
1.27 decl String:buffer[255];
1.28 Format(buffer, sizeof(buffer), "%T", display, param1);
1.29 @@ -367,7 +378,7 @@
1.30
1.31 percent = GetVotePercent(votes, totalVotes);
1.32
1.33 - switch(g_voteType)
1.34 + switch (g_voteType)
1.35 {
1.36 case (voteType:map):
1.37 limit = GetConVarFloat(g_Cvar_VoteMap);
1.38 @@ -389,7 +400,7 @@
1.39 {
1.40 PrintToChatAll("[SM] %t", "Vote Successful", RoundToNearest(100.0*percent), totalVotes);
1.41
1.42 - switch(g_voteType)
1.43 + switch (g_voteType)
1.44 {
1.45 case (voteType:question):
1.46 {