23.09.2010, 16:24
The fastest method will surely be array lookup, but it will take a lot of memory.
Код:
new
g_WeaponSlotTable[] = { /* ... */ };
#define WEAPON_SLOT_LOOKUP(%1) g_WeaponSlotTable[(%1)]

