From b5735b90f5ec847a89acd80509e8ba2ce23a3905 Mon Sep 17 00:00:00 2001 From: celest Date: Tue, 22 Mar 2005 16:31:56 +0000 Subject: Check changelog ^^ git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1267 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/storage.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/map/storage.c') 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 #include -#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); -- cgit v1.2.3-60-g2f50