From b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 20 Feb 2008 16:21:37 +0000 Subject: 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 --- src/map/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/storage.c') 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; } -- cgit v1.2.3-60-g2f50