summaryrefslogtreecommitdiff
path: root/src/map/npc.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-03-25 18:32:46 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-03-25 20:52:28 -0700
commit8d50ad7f65c46d83b44c18249566a16c6d290496 (patch)
tree4ad6e759a873f1cf27d161bb153cb30616a3a7c7 /src/map/npc.cpp
parente63df20c3838fb6760c7d891cccfc901fb8bec41 (diff)
downloadtmwa-8d50ad7f65c46d83b44c18249566a16c6d290496.tar.gz
tmwa-8d50ad7f65c46d83b44c18249566a16c6d290496.tar.bz2
tmwa-8d50ad7f65c46d83b44c18249566a16c6d290496.tar.xz
tmwa-8d50ad7f65c46d83b44c18249566a16c6d290496.zip
Mapflag to override savepoint (ported from wushin)
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r--src/map/npc.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index bfba45f..42ec4fa 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -1554,6 +1554,15 @@ int npc_parse_mapflag(XString w1, XString, XString w3, ZString w4)
m->save.y = savey;
}
}
+ if (mf == MapFlag::RESAVE)
+ {
+ if (extract(w4, record<','>(&savemap, &savex, &savey)))
+ {
+ m->resave.map_ = savemap;
+ m->resave.x = savex;
+ m->resave.y = savey;
+ }
+ }
m->flag.set(mf, true);
return 0;