summaryrefslogtreecommitdiff
path: root/src/char/int_mercenary.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-19 12:43:43 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:33 +0100
commit1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca (patch)
tree179bca6aa45cf1f1db7139ab7e7b806669587905 /src/char/int_mercenary.c
parent9ee166316cded9aad0ace7e13f43a406f0e5400c (diff)
downloadhercules-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_mercenary.c')
-rw-r--r--src/char/int_mercenary.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/char/int_mercenary.c b/src/char/int_mercenary.c
index 0c3a7fdf8..0bc3c0909 100644
--- a/src/char/int_mercenary.c
+++ b/src/char/int_mercenary.c
@@ -260,11 +260,10 @@ int inter_mercenary_parse_frommap(int fd)
{
unsigned short cmd = RFIFOW(fd,0);
- switch( cmd )
- {
+ switch (cmd) {
case 0x3070: mapif->parse_mercenary_create(fd, RFIFOP(fd,4)); break;
- case 0x3071: mapif->parse_mercenary_load(fd, (int)RFIFOL(fd,2), (int)RFIFOL(fd,6)); break;
- case 0x3072: mapif->parse_mercenary_delete(fd, (int)RFIFOL(fd,2)); break;
+ case 0x3071: mapif->parse_mercenary_load(fd, RFIFOL(fd,2), RFIFOL(fd,6)); break;
+ case 0x3072: mapif->parse_mercenary_delete(fd, RFIFOL(fd,2)); break;
case 0x3073: mapif->parse_mercenary_save(fd, RFIFOP(fd,4)); break;
default:
return 0;