Browse Source

- Fixed a visual bug in mail when sending Zeny.
- Fixed bug pet loosing loot on logout. Bug Report 1291.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12449 54d463be-8e91-2dee-dedb-b68131a5f0ec

zephyrus 17 years ago
parent
commit
96acc86869
2 changed files with 4 additions and 1 deletions
  1. 1 1
      src/map/clif.c
  2. 3 0
      src/map/map.c

+ 1 - 1
src/map/clif.c

@@ -2231,7 +2231,7 @@ int clif_updatestatus(struct map_session_data *sd,int type)
 
 	case SP_ZENY:
 		WFIFOW(fd,0)=0xb1;
-		WFIFOL(fd,4)=sd->status.zeny - sd->mail.zeny;
+		WFIFOL(fd,4)=sd->status.zeny;
 		break;
 	case SP_BASEEXP:
 		WFIFOW(fd,0)=0xb1;

+ 3 - 0
src/map/map.c

@@ -1617,6 +1617,9 @@ int map_quit(struct map_session_data *sd)
 		}
 	}
 	
+	// Return loot to owner
+	if( sd->pd ) pet_lootitem_drop(sd->pd, sd);
+
 	unit_remove_map_pc(sd,3);
 	pc_makesavestatus(sd);
 	pc_clean_skilltree(sd);