1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 19:07:40 +00:00

major cleanup of texture remapping

This commit is contained in:
Zeno Rogue
2018-08-20 02:04:49 +02:00
parent 47c49c6d1d
commit 625144195c
8 changed files with 109 additions and 127 deletions

View File

@@ -801,10 +801,6 @@ 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();
@@ -815,9 +811,6 @@ 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) {