From 43d82332dbfde84bf0348ef6c2921aaaef24634e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 7 May 2013 22:15:05 -0300 Subject: Fixed Bug #7223 http://hercules.ws/board/tracker/issue-7223-homunculus-s-max-level-overshooting/ src/map/homunculus.c Hercules Renewal Phase One complete. http://hercules.ws/board/topic/237-hercules-renewal/ Signed-off-by: shennetsind --- src/map/intif.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/map/intif.c') diff --git a/src/map/intif.c b/src/map/intif.c index 102dbf84e..bab8470a4 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -810,16 +810,15 @@ int intif_homunculus_create(int account_id, struct s_homunculus *sh) return 0; } -int intif_homunculus_requestload(int account_id, int homun_id) -{ +bool intif_homunculus_requestload(int account_id, int homun_id) { if (CheckForCharServer()) - return 0; + return false; WFIFOHEAD(inter_fd, 10); WFIFOW(inter_fd,0) = 0x3091; WFIFOL(inter_fd,2) = account_id; WFIFOL(inter_fd,6) = homun_id; WFIFOSET(inter_fd, 10); - return 1; + return true; } int intif_homunculus_requestsave(int account_id, struct s_homunculus* sh) @@ -1334,7 +1333,7 @@ int intif_parse_ChangeNameOk(int fd) pet_change_name_ack(sd, (char*)RFIFOP(fd,12), RFIFOB(fd,11)); break; case 2: //Hom - merc_hom_change_name_ack(sd, (char*)RFIFOP(fd,12), RFIFOB(fd,11)); + homun->change_name_ack(sd, (char*)RFIFOP(fd,12), RFIFOB(fd,11)); break; } return 0; @@ -1352,7 +1351,7 @@ int intif_parse_CreateHomunculus(int fd) ShowError("intif: create homun data: data size error %d != %d\n",sizeof(struct s_homunculus),len); return 0; } - merc_hom_recv_data(RFIFOL(fd,4), (struct s_homunculus*)RFIFOP(fd,9), RFIFOB(fd,8)) ; + homun->recv_data(RFIFOL(fd,4), (struct s_homunculus*)RFIFOP(fd,9), RFIFOB(fd,8)) ; return 0; } @@ -1367,7 +1366,7 @@ int intif_parse_RecvHomunculusData(int fd) ShowError("intif: homun data: data size error %d %d\n",sizeof(struct s_homunculus),len); return 0; } - merc_hom_recv_data(RFIFOL(fd,4), (struct s_homunculus*)RFIFOP(fd,9), RFIFOB(fd,8)); + homun->recv_data(RFIFOL(fd,4), (struct s_homunculus*)RFIFOP(fd,9), RFIFOB(fd,8)); return 0; } -- cgit v1.2.3-70-g09d2