]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Update the types of some voting related globals and fields
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / vote.qc
index 23656d2f756716f5a9fcd87ee168bfa031864b8b..4b42b5667ea90e682fe74b5e3996ea4ff73e596c 100644 (file)
@@ -158,7 +158,7 @@ void VoteAccept()
 {
        bprint("\{1}^2* ^3", OriginalCallerName(), "^2's vote for ^1", vote_called_display, "^2 was accepted\n");
 
-       if ((vote_called == VOTE_MASTER) && vote_caller) vote_caller.vote_master = 1;
+       if ((vote_called == VOTE_MASTER) && vote_caller) vote_caller.vote_master = true;
        else localcmd(strcat(vote_called_command, "\n"));
 
        if (vote_caller)   vote_caller.vote_waittime = 0;  // people like your votes, you don't need to wait to vote again