summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 04:13:21 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 04:13:21 +0000
commit0f706ea86d7972f88c2b7d06dfc35e178911070e (patch)
treeb89bc2d0a2c1e340581b3b70fd1a9aadd31f02ac /src/map/clif.c
parent4db583138b9556f72b13df7f66eeeace6a67ce3e (diff)
downloadhercules-0f706ea86d7972f88c2b7d06dfc35e178911070e.tar.gz
hercules-0f706ea86d7972f88c2b7d06dfc35e178911070e.tar.bz2
hercules-0f706ea86d7972f88c2b7d06dfc35e178911070e.tar.xz
hercules-0f706ea86d7972f88c2b7d06dfc35e178911070e.zip
- Clones can't be class-changed now
- Readded the class == -1 distance check in npc_checknear - Replaced check sd->trade_partner for sd->state.trading in clif.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6356 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 849db4008..08bfd598c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9113,7 +9113,7 @@ void clif_parse_NpcClicked(int fd,struct map_session_data *sd)
void clif_parse_NpcBuySellSelected(int fd,struct map_session_data *sd)
{
RFIFOHEAD(fd);
- if (sd->trade_partner != 0)
+ if (sd->state.trading)
return;
npc_buysellsel(sd,RFIFOL(fd,2),RFIFOB(fd,6));
}
@@ -9133,7 +9133,7 @@ void clif_parse_NpcBuyListSend(int fd,struct map_session_data *sd)
n = (RFIFOW(fd,2)-4) /4;
item_list = (unsigned short*)RFIFOP(fd,4);
- if (sd->trade_partner || !sd->npc_shopid){
+ if (sd->state.trading|| !sd->npc_shopid){
fail = 1;
}else{
if((nd = ((struct npc_data *)map_id2bl(sd->npc_shopid))->master_nd)){
@@ -9171,7 +9171,7 @@ void clif_parse_NpcSellListSend(int fd,struct map_session_data *sd)
n = (RFIFOW(fd,2)-4) /4;
item_list = (unsigned short*)RFIFOP(fd,4);
- if (sd->trade_partner || !sd->npc_shopid){
+ if (sd->state.trading|| !sd->npc_shopid){
fail = 1;
}else{
if((nd = ((struct npc_data *)map_id2bl(sd->npc_shopid))->master_nd)){
@@ -9787,7 +9787,7 @@ void clif_parse_AutoSpell(int fd,struct map_session_data *sd)
void clif_parse_UseCard(int fd,struct map_session_data *sd)
{
RFIFOHEAD(fd);
- if (sd->trade_partner != 0)
+ if (sd->state.trading!= 0)
return;
clif_use_card(sd,RFIFOW(fd,2)-2);
}
@@ -9798,7 +9798,7 @@ void clif_parse_UseCard(int fd,struct map_session_data *sd)
void clif_parse_InsertCard(int fd,struct map_session_data *sd)
{
RFIFOHEAD(fd);
- if (sd->trade_partner != 0)
+ if (sd->state.trading!= 0)
return;
pc_insert_card(sd,RFIFOW(fd,2)-2,RFIFOW(fd,4)-2);
}