06.12.2018, 16:12
Quote:
I don’t know why y_hooks altered it, but I don’t think this code does what you think. Your enum can also be written as:
Код:
enum { Player_Name = 0, Player_Password = Player_Name + MAX_PLAYER_NAME, Player_Salt = Player_Password + PASSWORD_LENGTH, e_PlayerInfo = Player_Salt + SALT_LENGTH, }; |
I guess I'll have to re-read some documentation on the subject and try to figure it out.
Thanks for the help!