summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-13 16:33:44 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-13 16:33:44 +0000
commit81fe0ffc594681ce2fe497b6e23bcc9005ec87b9 (patch)
tree95c7561a029c7b0f270626d6d6ec7fef51c35b28 /src/map/storage.c
parent747ed75edefe7c74f3f0d848db5685158b94480b (diff)
downloadhercules-81fe0ffc594681ce2fe497b6e23bcc9005ec87b9.tar.gz
hercules-81fe0ffc594681ce2fe497b6e23bcc9005ec87b9.tar.bz2
hercules-81fe0ffc594681ce2fe497b6e23bcc9005ec87b9.tar.xz
hercules-81fe0ffc594681ce2fe497b6e23bcc9005ec87b9.zip
- Fixed @storeall and @charstoreall failing when the target character already had the storage open.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7656 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index a6bf5e026..4b2dff0ed 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -118,7 +118,10 @@ int storage_delete(int account_id)
}
/*==========================================
- * カプラ倉庫を開く
+ * Opens a storage. Returns:
+ * 0 - success
+ * 1 - fail
+ * 2 - Storage requested from char-server (will open automatically later)
*------------------------------------------
*/
int storage_storageopen(struct map_session_data *sd)
@@ -141,7 +144,7 @@ int storage_storageopen(struct map_session_data *sd)
if((stor = idb_get(storage_db,sd->status.account_id)) == NULL)
{ //Request storage.
intif_request_storage(sd->status.account_id);
- return 1;
+ return 2;
}
if (stor->storage_status)