summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-22 16:31:56 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-22 16:31:56 +0000
commitb5735b90f5ec847a89acd80509e8ba2ce23a3905 (patch)
treec784ba41982fe5370eee9245d9fe65063b389328 /src/map/storage.c
parente52e5e17df12881d87065106a96ed48a9d302555 (diff)
downloadhercules-b5735b90f5ec847a89acd80509e8ba2ce23a3905.tar.gz
hercules-b5735b90f5ec847a89acd80509e8ba2ce23a3905.tar.bz2
hercules-b5735b90f5ec847a89acd80509e8ba2ce23a3905.tar.xz
hercules-b5735b90f5ec847a89acd80509e8ba2ce23a3905.zip
Check changelog ^^
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index b78510a92..5e3797740 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -3,15 +3,18 @@
#include <stdlib.h>
#include <string.h>
-#include "db.h"
+#include "../common/db.h"
+#include "../common/nullpo.h"
+#include "../common/malloc.h"
+
#include "itemdb.h"
#include "clif.h"
#include "intif.h"
#include "pc.h"
#include "storage.h"
#include "guild.h"
-#include "nullpo.h"
-#include "malloc.h"
+#include "battle.h"
+#include "atcommand.h"
#ifdef MEMWATCH
#include "memwatch.h"
@@ -124,6 +127,10 @@ int storage_storageopen(struct map_session_data *sd)
nullpo_retr(0, sd);
+ if(pc_isGM(sd) && pc_isGM(sd) < battle_config.gm_can_drop_lv) {
+ clif_displaymessage(sd->fd, msg_txt(246));
+ return 1;
+ }
if((stor = numdb_search(storage_db,sd->status.account_id)) != NULL) {
if (stor->storage_status == 0) {
stor->storage_status = 1;
@@ -132,7 +139,7 @@ int storage_storageopen(struct map_session_data *sd)
clif_storageequiplist(sd,stor);
clif_updatestorageamount(sd,stor);
return 0;
- }
+ }
} else
intif_request_storage(sd->status.account_id);