mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-07 10:52:23 +00:00
changed chamfered to bitruncated
This commit is contained in:
10
textures.cpp
10
textures.cpp
@@ -373,7 +373,7 @@ bool apply(cell *c, const transmatrix &V, int col) {
|
||||
|
||||
typedef tuple<eGeometry, bool, char, int, eModel, ld, ld> texture_parameters;
|
||||
|
||||
static const auto current_texture_parameters = tie(geometry, nonchamfered, patterns::whichPattern, patterns::subpattern_flags, pmodel, vid.scale, vid.alpha);
|
||||
static const auto current_texture_parameters = tie(geometry, nonbitrunc, patterns::whichPattern, patterns::subpattern_flags, pmodel, vid.scale, vid.alpha);
|
||||
|
||||
texture_parameters orig_texture_parameters;
|
||||
|
||||
@@ -661,7 +661,7 @@ patterns::patterninfo si_save;
|
||||
|
||||
saverlist texturesavers;
|
||||
|
||||
bool target_nonchamf;
|
||||
bool target_nonbitru;
|
||||
|
||||
void init_textureconfig() {
|
||||
texturesavers = move(savers);
|
||||
@@ -679,7 +679,7 @@ void init_textureconfig() {
|
||||
addsaver(vid.yposition, "Y position", 0);
|
||||
addsaver(vid.xposition, "X position", 0);
|
||||
addsaver(vid.camera_angle, "camera angle", 0);
|
||||
addsaverenum(target_nonchamf, "chamfering", false);
|
||||
addsaverenum(target_nonbitru, "bitruncated", false);
|
||||
// ... geometry parameters
|
||||
|
||||
addsaver(patterns::whichPattern, "pattern", 0);
|
||||
@@ -713,7 +713,7 @@ bool save_textureconfig() {
|
||||
if(!f) return false;
|
||||
|
||||
targetgeometry = geometry;
|
||||
target_nonchamf = nonchamfered;
|
||||
target_nonbitru = nonbitrunc;
|
||||
|
||||
for(auto s: texturesavers) if(s->dosave())
|
||||
fprintf(f, "%s=%s\n", s->name.c_str(), s->save().c_str());
|
||||
@@ -742,7 +742,7 @@ bool load_textureconfig() {
|
||||
return load_textureconfig();
|
||||
}
|
||||
|
||||
if(nonchamfered != target_nonchamf) {
|
||||
if(nonbitrunc != target_nonbitru) {
|
||||
restartGame('7');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user