diff options
author | MadCamel <madcamel@gmail.com> | 2009-03-16 19:40:12 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-16 13:50:30 -0600 |
commit | d450f9fd7b5d4fd71d4f7e244ef9d0786d0f745a (patch) | |
tree | 207f03c028ea16500032bde862d9ade38d317d06 /src/map/script.c | |
parent | 1f073198ce4a175191da2815c00cca11e81735d8 (diff) | |
download | tmwa-d450f9fd7b5d4fd71d4f7e244ef9d0786d0f745a.tar.gz tmwa-d450f9fd7b5d4fd71d4f7e244ef9d0786d0f745a.tar.bz2 tmwa-d450f9fd7b5d4fd71d4f7e244ef9d0786d0f745a.tar.xz tmwa-d450f9fd7b5d4fd71d4f7e244ef9d0786d0f745a.zip |
Now possible to divorce when partner is offline
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index c5bcae1..287b4f6 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5263,6 +5263,9 @@ int buildin_wedding_effect(struct script_state *st) int buildin_divorce(struct script_state *st) { struct map_session_data *sd=script_rid2sd(st); + + st->state=STOP; // rely on pc_divorce to restart + if(sd==NULL || pc_divorce(sd) < 0){ push_val(st->stack,C_INT,0); return 0; |