1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 17:06:52 +00:00

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

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();