diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-25 18:32:46 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-25 20:52:28 -0700 |
commit | 8d50ad7f65c46d83b44c18249566a16c6d290496 (patch) | |
tree | 4ad6e759a873f1cf27d161bb153cb30616a3a7c7 /src/map/npc.cpp | |
parent | e63df20c3838fb6760c7d891cccfc901fb8bec41 (diff) | |
download | tmwa-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.cpp | 9 |
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; |