diff options
author | Haru <haru@dotalux.com> | 2014-01-23 18:40:29 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-01 10:11:39 +0200 |
commit | 42e1df9e61f8efb6340ed1c9238cd247d553d9b8 (patch) | |
tree | 2a465b7468b438b200f011fb7994023f4113c33b /src/char/inter.c | |
parent | 0a54d25ccfd891814cbdada8589b48c6b9da23fd (diff) | |
download | hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.gz hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.bz2 hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.tar.xz hercules-42e1df9e61f8efb6340ed1c9238cd247d553d9b8.zip |
Replaced some of the hardcoded values with constants (char)
- Replaced several hardcoded values with the appropriate enums.
- Added documentation for some hardcoded values that haven't been
replaced by enums (yet)
- Minor code legibility improvements.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/inter.c')
-rw-r--r-- | src/char/inter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/inter.c b/src/char/inter.c index ec06df0f9..3571a3e2e 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -1219,9 +1219,9 @@ int mapif_parse_Registry(int fd) int mapif_parse_RegistryRequest(int fd) { //Load Char Registry - if (RFIFOB(fd,12)) mapif->account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),3); + if (RFIFOB(fd,12)) mapif->account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),3); // 3: char reg //Load Account Registry - if (RFIFOB(fd,11)) mapif->account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),2); + if (RFIFOB(fd,11)) mapif->account_reg_reply(fd,RFIFOL(fd,2),RFIFOL(fd,6),2); // 2: account reg //Ask Login Server for Account2 values. if (RFIFOB(fd,10)) chr->request_accreg2(RFIFOL(fd,2),RFIFOL(fd,6)); return 1; |