1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-31 19:29:18 +00:00

auto-increase texture step in 2D ideal

This commit is contained in:
Zeno Rogue 2020-05-29 10:47:18 +02:00
parent 2c79a6aeff
commit e7a4c645b8
2 changed files with 3 additions and 0 deletions

View File

@ -912,6 +912,8 @@ EX void switch_always3() {
if(pmodel == mdDisk) pmodel = mdPerspective;
swapmatrix(View);
callhooks(hooks_swapdim);
if(cgflags & qIDEAL && vid.texture_step < 32)
vid.texture_step = 32;
#if CAP_RACING
racing::player_relative = true;
#endif

View File

@ -1290,6 +1290,7 @@ EX void set_geometry(eGeometry target) {
variation = eVariation::pure;
if(was_default) pmodel = default_model();
if(nonisotropic && old_DIM == 2 && vid.texture_step < 4) vid.texture_step = 4;
if(WDIM == 2 && (cgflags & qIDEAL) && vid.always3 && vid.texture_step < 32) vid.texture_step = 32;
if(prod) { pmodel = mdPerspective; if(vid.texture_step < 4) vid.texture_step = 4; }
if(WDIM == 3 && (cgflags & qIDEAL) && vid.texture_step < 4) vid.texture_step = 4;
if(sl2) nisot::geodesic_movement = true;