summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-20 16:21:37 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-20 16:21:37 +0000
commitb5bcd3c54bfe30e7602a92d4b39ee15973f3c46f (patch)
treefb12351bc05dea4dea9158a427724b8b89a467c0 /src/map/storage.c
parent85db367d556b31b432b2e3b2c909cca14d6248f2 (diff)
downloadhercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.gz
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.bz2
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.tar.xz
hercules-b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f.zip
Changed pc_can_give_items() to use standard boolean logic instead of the inverted 1/0 one (bugreport:396)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12220 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/storage.c')
-rw-r--r--src/map/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index e4ff030b3..50024fbbe 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -138,7 +138,7 @@ int storage_storageopen(struct map_session_data *sd)
if(sd->state.storage_flag)
return 1; //Already open?
- if(pc_can_give_items(pc_isGM(sd)))
+ if( !pc_can_give_items(pc_isGM(sd)) )
{ //check is this GM level is allowed to put items to storage
clif_displaymessage(sd->fd, msg_txt(246));
return 1;
@@ -508,7 +508,7 @@ int storage_guild_storageopen(struct map_session_data *sd)
if(sd->state.storage_flag)
return 1; //Can't open both storages at a time.
- if( pc_can_give_items(pc_isGM(sd)) ) { //check is this GM level can open guild storage and store items [Lupus]
+ if( !pc_can_give_items(pc_isGM(sd)) ) { //check is this GM level can open guild storage and store items [Lupus]
clif_displaymessage(sd->fd, msg_txt(246));
return 1;
}