Closed WinterPhoenix closed 11 years ago
Oh...So they are. I thought they were only Server-side. I could change that in my Commit if you'd like.
I think that would be best.
Fixed.
One more thing, you need to change your logic to handle the case when the queue mode is chronological and then handle all other cases.
if queueMode == QUEUE_CHRONOLOGICAL then
-- handle chronological sort
else
-- handle vote sort and all other cases
end
The reason for this is that users may accidentally enter an invalid queue mode for the convar. If that's the case, we still need to do something.
Does that look suitable?
Looks good, thanks. :+1:
Ah, this is something I had overlooked when I implemented queue modes. One thing about your code, is there any reason you didn't use the actual enums? They're shared in the global scope.