1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-22 21:09:46 +00:00

singletype patterns now can be remapped to irregular grids

This commit is contained in:
Zeno Rogue
2018-08-02 22:26:07 +02:00
parent bd59b4e23a
commit 7e1344a863
4 changed files with 36 additions and 6 deletions

View File

@@ -672,6 +672,10 @@ int celldist(cell *c, bool alts) {
eGeometry orig_geometry;
void start_game_on_created_map() {
#if CAP_TEXTURE
auto old_tstate = texture::config.tstate;
auto old_tstate_max = texture::config.tstate_max;
#endif
popScreen();
for(hrmap *& hm : allmaps) if(hm == base) hm = NULL;
stop_game();
@@ -682,6 +686,9 @@ void start_game_on_created_map() {
need_reset_geometry = true;
gridmaking = false;
start_game();
#if CAP_TEXTURE
texture::config.remap(old_tstate, old_tstate_max);
#endif
}
bool save_map(const string& fname) {