summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-01 10:57:31 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-01 10:57:31 +0000
commita17ffd75612eb736367fa0bdb3ec1b109c1f762b (patch)
tree833686d341ee8fb8a6e2a87c335eff0c93c0de53 /src/map/atcommand.c
parent12e76d57412a6df83654fc5bdeb66161715f75c9 (diff)
downloadhercules-a17ffd75612eb736367fa0bdb3ec1b109c1f762b.tar.gz
hercules-a17ffd75612eb736367fa0bdb3ec1b109c1f762b.tar.bz2
hercules-a17ffd75612eb736367fa0bdb3ec1b109c1f762b.tar.xz
hercules-a17ffd75612eb736367fa0bdb3ec1b109c1f762b.zip
Some typo fixing / cleaning
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10658 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 36b3964aa..5ec823a61 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6693,21 +6693,18 @@ int atcommand_skilltree(const int fd, struct map_session_data* sd, const char* c
}
// Hand a ring with partners name on it to this char
-void getring (struct map_session_data *sd)
+void getring (struct map_session_data* sd)
{
- int flag,item_id = 0;
+ int flag, item_id;
struct item item_tmp;
- if(sd->status.sex==0)
- item_id = 2635;
- else
- item_id = 2634;
+ item_id = (sd->status.sex) ? WEDDING_RING_M : WEDDING_RING_F;
- memset(&item_tmp,0,sizeof(item_tmp));
- item_tmp.nameid=item_id;
- item_tmp.identify=1;
- item_tmp.card[0]=255;
- item_tmp.card[2]=sd->status.partner_id;
- item_tmp.card[3]=sd->status.partner_id >> 16;
+ memset(&item_tmp, 0, sizeof(item_tmp));
+ item_tmp.nameid = item_id;
+ item_tmp.identify = 1;
+ item_tmp.card[0] = 255;
+ item_tmp.card[2] = sd->status.partner_id;
+ item_tmp.card[3] = sd->status.partner_id >> 16;
//Logs (A)dmins items [Lupus]
if(log_config.enable_logs&0x400)
@@ -6717,7 +6714,6 @@ void getring (struct map_session_data *sd)
clif_additem(sd,0,0,flag);
map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,NULL,NULL,NULL,0);
}
-
}
/*==========================================