diff options
author | Haru <haru@dotalux.com> | 2016-02-19 12:43:43 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:00:33 +0100 |
commit | 1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca (patch) | |
tree | 179bca6aa45cf1f1db7139ab7e7b806669587905 /src/char/int_homun.c | |
parent | 9ee166316cded9aad0ace7e13f43a406f0e5400c (diff) | |
download | hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.gz hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.bz2 hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.xz hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.zip |
Removed various redundant typecasts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_homun.c')
-rw-r--r-- | src/char/int_homun.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/char/int_homun.c b/src/char/int_homun.c index f084b9709..e5fde2330 100644 --- a/src/char/int_homun.c +++ b/src/char/int_homun.c @@ -345,13 +345,12 @@ int inter_homunculus_parse_frommap(int fd) { unsigned short cmd = RFIFOW(fd,0); - switch( cmd ) - { - case 0x3090: mapif->parse_homunculus_create(fd, (int)RFIFOW(fd,2), (int)RFIFOL(fd,4), RFIFOP(fd,8)); break; - case 0x3091: mapif->parse_homunculus_load (fd, (int)RFIFOL(fd,2), (int)RFIFOL(fd,6)); break; - case 0x3092: mapif->parse_homunculus_save (fd, (int)RFIFOW(fd,2), (int)RFIFOL(fd,4), RFIFOP(fd,8)); break; - case 0x3093: mapif->parse_homunculus_delete(fd, (int)RFIFOL(fd,2)); break; - case 0x3094: mapif->parse_homunculus_rename(fd, (int)RFIFOL(fd,2), (int)RFIFOL(fd,6), RFIFOP(fd,10)); break; + switch (cmd) { + case 0x3090: mapif->parse_homunculus_create(fd, RFIFOW(fd,2), RFIFOL(fd,4), RFIFOP(fd,8)); break; + case 0x3091: mapif->parse_homunculus_load (fd, RFIFOL(fd,2), RFIFOL(fd,6)); break; + case 0x3092: mapif->parse_homunculus_save (fd, RFIFOW(fd,2), RFIFOL(fd,4), RFIFOP(fd,8)); break; + case 0x3093: mapif->parse_homunculus_delete(fd, RFIFOL(fd,2)); break; + case 0x3094: mapif->parse_homunculus_rename(fd, RFIFOL(fd,2), RFIFOL(fd,6), RFIFOP(fd,10)); break; default: return 0; } |