diff options
author | shennetsind <ind@henn.et> | 2014-09-20 20:28:30 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-09-20 20:28:30 -0300 |
commit | b29098c74c2e67674a30a1f411e81e4cf5db8798 (patch) | |
tree | 0c7084f8d9654c2d0dedd1897b4bef229b1623ee /src/map/pc.c | |
parent | 03e448cdef05a878322b7486a2c35e00df75131e (diff) | |
download | hercules-b29098c74c2e67674a30a1f411e81e4cf5db8798.tar.gz hercules-b29098c74c2e67674a30a1f411e81e4cf5db8798.tar.bz2 hercules-b29098c74c2e67674a30a1f411e81e4cf5db8798.tar.xz hercules-b29098c74c2e67674a30a1f411e81e4cf5db8798.zip |
Fixed Bug 8138
@at persistency no longer sends characters to save point when starting autotrade on a nosave location.
http://hercules.ws/board/tracker/issue-8138-autotrade-teleports-char-to-the-savepoint/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 25a15ce84..e28d0545a 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -585,7 +585,7 @@ int pc_makesavestatus(struct map_session_data *sd) sd->status.last_point.y = sd->bl.y; } - if(map->list[sd->bl.m].flag.nosave || map->list[sd->bl.m].instance_id >= 0) { + if( ( map->list[sd->bl.m].flag.nosave && sd->state.autotrade != 2 ) || map->list[sd->bl.m].instance_id >= 0) { struct map_data *m=&map->list[sd->bl.m]; if(m->save.map) memcpy(&sd->status.last_point,&m->save,sizeof(sd->status.last_point)); |