singletype patterns now can be remapped to irregular grids

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

No files matched your search

+7
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) {