intra:: become() now adds more spaces if called inside intra

This commit is contained in:
Zeno Rogue 2021-10-08 11:28:52 +02:00
parent 11aa9d0ddd
commit af18ee7ae1
1 changed files with 7 additions and 0 deletions

View File

@ -364,6 +364,13 @@ EX void connect_portal(cellwalker cw1, cellwalker cw2, int spin) {
/** make currentmap into one of the spaces in intra */
EX void become() {
if(intra::in) {
/* let them add more spaces in this case */
data[current].gd.storegame();
intra::in = false;
return;
}
check_cgi();
cgi.require_shapes();
auto& ac = currentmap->allcells();