mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
mapstream:: export some additional functions
This commit is contained in:
parent
15adcdf191
commit
b6e7c355bf
@ -427,7 +427,7 @@ EX namespace mapstream {
|
||||
cellids[c] = numcells;
|
||||
}
|
||||
|
||||
int fixspin(int rspin, int dir, int t, int vernum) {
|
||||
EX int fixspin(int rspin, int dir, int t, int vernum) {
|
||||
if(vernum < 11018 && dir == 14)
|
||||
return NODIR;
|
||||
else if(vernum < 11018 && dir == 15)
|
||||
@ -610,6 +610,10 @@ EX namespace mapstream {
|
||||
|
||||
EX hookset<void(fhstream&)> hooks_savemap, hooks_loadmap;
|
||||
|
||||
EX cell *save_start() {
|
||||
return (bounded || euclid || prod || arcm::in() || INVERSE) ? currentmap->gamestart() : cwt.at->master->c7;
|
||||
}
|
||||
|
||||
#if CAP_EDIT
|
||||
void save_only_map(fhstream& f) {
|
||||
f.write(patterns::whichPattern);
|
||||
@ -637,7 +641,7 @@ EX namespace mapstream {
|
||||
for(int k=0; k<i; k++) f.write(kills[k]);
|
||||
}
|
||||
|
||||
addToQueue((bounded || euclid || prod || arcm::in()) ? currentmap->gamestart() : cwt.at->master->c7);
|
||||
addToQueue(save_start());
|
||||
for(int i=0; i<isize(cellbyid); i++) {
|
||||
cell *c = cellbyid[i];
|
||||
if(i) {
|
||||
|
Loading…
Reference in New Issue
Block a user