mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-26 21:37:02 +00:00
more guards
This commit is contained in:
parent
a49b10d2ad
commit
8173fc0504
@ -1999,7 +1999,9 @@ void dqi_line::draw_back() {
|
||||
|
||||
EX void sort_drawqueue() {
|
||||
|
||||
#if MAXMDIM >= 4 && CAP_GL
|
||||
if(WDIM == 2 && GDIM == 3 && hyperbolic) make_air();
|
||||
#endif
|
||||
|
||||
DEBBI(DF_GRAPH, ("sort_drawqueue"));
|
||||
|
||||
|
@ -430,6 +430,7 @@ EX namespace mapstream {
|
||||
else
|
||||
return dir;
|
||||
}
|
||||
#endif
|
||||
|
||||
EX void save_geometry(hstream& f) {
|
||||
f.write(geometry);
|
||||
@ -599,7 +600,8 @@ EX namespace mapstream {
|
||||
if(vernum >= 0xA810)
|
||||
f.read(mine_adjacency_rule);
|
||||
}
|
||||
|
||||
|
||||
#if CAP_EDIT
|
||||
void save_only_map(fhstream& f) {
|
||||
f.write(patterns::whichPattern);
|
||||
save_geometry(f);
|
||||
|
@ -409,6 +409,7 @@ void display_data::set_projection(int ed, ld shift) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if MAXMDIM >= 4
|
||||
if(selected->tAirMap != -1) {
|
||||
glActiveTexture(GL_TEXTURE0 + AIR_BINDING);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
@ -418,6 +419,7 @@ void display_data::set_projection(int ed, ld shift) {
|
||||
glActiveTexture(GL_TEXTURE0 + 0);
|
||||
glUniformMatrix4fv(selected->uRadarTransform, 1, 0, glhr::tmtogl_transpose3(radar_transform).as_array());
|
||||
}
|
||||
#endif
|
||||
|
||||
if(selected->uIterations != -1) {
|
||||
glhr::set_index_sl(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user