Some fields comments for ChrClass and ChrRace. Also optimize code (set MAX_RACES to max_player_race+1).

Note: MAX_* moved out of enum. This is not nice include value _not_ belong to enum values into enum.
Maybe in C this not make sense (enum range = int anyway) but in C++ enum values checked at assigning/etc.
(cherry picked from commit f157c4e3d5e18878c7ab0dae383acb7704c3ed90)
This commit is contained in:
VladimirMangos 2008-12-14 20:51:27 +03:00
parent 08a3105312
commit 5113af643e
2 changed files with 21 additions and 11 deletions

View file

@ -128,9 +128,9 @@ struct ChrClassesEntry
// 4, unused
//char* name[16]; // 5-20 unused
// 21 string flag, unused
//char* string1[16]; // 21-36 unused
//char* nameFemale[16]; // 21-36 unused, if different from base (male) case
// 37 string flag, unused
//char* string2[16]; // 38-53 unused
//char* nameNeutralGender[16]; // 38-53 unused, if different from base (male) case
// 54 string flag, unused
// 55, unused
uint32 spellfamily; // 56
@ -151,9 +151,9 @@ struct ChrRacesEntry
uint32 startmovie; // 13 id from CinematicCamera.dbc
char* name[16]; // 14-29 used for DBC language detection/selection
// 30 string flags, unused
//char* string1[16]; // 31-46 used for DBC language detection/selection
//char* nameFemale[16]; // 31-46, if different from base (male) case
// 47 string flags, unused
//char* string2[16]; // 48-63 used for DBC language detection/selection
//char* nameNeutralGender[16]; // 48-63, if different from base (male) case
// 64 string flags, unused
// 65-67 unused
uint32 addon; // 68 (0 - original race, 1 - tbc addon, ...)