summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 23:18:40 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 23:18:40 +0000
commit4b2e025ed2bfd1d23dba095e828da403cf82663f (patch)
tree3857b70a8379055a90909071d3a53076389b2555 /src/map/clif.c
parenta75f13f9a36ad91cf2fd07257beccbf5bd189c75 (diff)
downloadhercules-4b2e025ed2bfd1d23dba095e828da403cf82663f.tar.gz
hercules-4b2e025ed2bfd1d23dba095e828da403cf82663f.tar.bz2
hercules-4b2e025ed2bfd1d23dba095e828da403cf82663f.tar.xz
hercules-4b2e025ed2bfd1d23dba095e828da403cf82663f.zip
minor code improvement, moved some "hidden" configs to config/Core.h
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15329 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 73f97cdb0..3e2a20514 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3766,18 +3766,13 @@ static void clif_getareachar_pc(struct map_session_data* sd,struct map_session_d
struct block_list *d_bl;
int i;
- if(dstsd->chatID)
- {
- struct chat_data *cd;
- cd=(struct chat_data*)map_id2bl(dstsd->chatID);
- if(cd && cd->usersd[0]==dstsd)
+ if( dstsd->chatID ) {
+ struct chat_data *cd = NULL;
+ if( (cd = (struct chat_data*)map_id2bl(dstsd->chatID)) && cd->usersd[0]==dstsd)
clif_dispchat(cd,sd->fd);
- }
-
- if( dstsd->state.vending )
+ } else if( dstsd->state.vending )
clif_showvendingboard(&dstsd->bl,dstsd->message,sd->fd);
-
- if( dstsd->state.buyingstore )
+ else if( dstsd->state.buyingstore )
clif_buyingstore_entry_single(sd, dstsd);
if(dstsd->spiritball > 0)