summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-09 03:12:26 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-05-09 03:12:26 +0000
commit5e6b7d4af4c34d9e059afbe38c12e25de728a564 (patch)
tree4cd3e222e7e9fbd13171290efe895753e2ac4f0b /src/map/pc.c
parent471667fa635a99bb32c0c2cc246a72706618b2fe (diff)
downloadhercules-5e6b7d4af4c34d9e059afbe38c12e25de728a564.tar.gz
hercules-5e6b7d4af4c34d9e059afbe38c12e25de728a564.tar.bz2
hercules-5e6b7d4af4c34d9e059afbe38c12e25de728a564.tar.xz
hercules-5e6b7d4af4c34d9e059afbe38c12e25de728a564.zip
- More scripts fixes.
- Some cleanups to the code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12695 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5d0c1a914..c98016418 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6743,7 +6743,7 @@ int pc_divorce(struct map_session_data *sd)
struct map_session_data *p_sd;
int i;
- if (sd == NULL || !pc_ismarried(sd))
+ if( sd == NULL || !pc_ismarried(sd) )
return -1;
if( !sd->status.partner_id )
@@ -6758,23 +6758,23 @@ int pc_divorce(struct map_session_data *sd)
return 0;
#else
ShowError("pc_divorce: p_sd nullpo\n");
- return -1;
+ return -1;
#endif
- }
+ }
// Both players online, lets do the divorce manually
- sd->status.partner_id = 0;
- p_sd->status.partner_id = 0;
+ sd->status.partner_id = 0;
+ p_sd->status.partner_id = 0;
for( i = 0; i < MAX_INVENTORY; i++ )
{
- if (sd->status.inventory[i].nameid == WEDDING_RING_M || sd->status.inventory[i].nameid == WEDDING_RING_F)
- pc_delitem(sd, i, 1, 0);
- if (p_sd->status.inventory[i].nameid == WEDDING_RING_M || p_sd->status.inventory[i].nameid == WEDDING_RING_F)
- pc_delitem(p_sd, i, 1, 0);
- }
+ if( sd->status.inventory[i].nameid == WEDDING_RING_M || sd->status.inventory[i].nameid == WEDDING_RING_F )
+ pc_delitem(sd, i, 1, 0);
+ if( p_sd->status.inventory[i].nameid == WEDDING_RING_M || p_sd->status.inventory[i].nameid == WEDDING_RING_F )
+ pc_delitem(p_sd, i, 1, 0);
+ }
- clif_divorced(sd, p_sd->status.name);
- clif_divorced(p_sd, sd->status.name);
+ clif_divorced(sd, p_sd->status.name);
+ clif_divorced(p_sd, sd->status.name);
return 0;
}