View Single Post
  #25  
Old 06-20-2009, 02:03 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Have we thought about using a bitmask instead of a number for clientver? Since we're only working with 3 clients (6.2, Titanium, & SoF), it would only use 3 bits (values 0-7), and allow for more flexibility (and fewer ORs in our IF statements):
Code:
0: None
1: 6.2
2: Titanium
3: 6.2 & Titanium
4: SoF
5: 6.2 & SoF
6: Titanium & SoF
7: 6.2, Titanium, & SoF
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote