mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-08 13:25:59 +00:00
gmatrix now uses shiftmatrix_or_null which has an additional field if data is not yet computed -- this seems to fix some bugs in the new compilations of HyperRogue
This commit is contained in:
@@ -186,6 +186,12 @@ struct shiftmatrix {
|
||||
}
|
||||
};
|
||||
|
||||
struct shiftmatrix_or_null : shiftmatrix {
|
||||
bool is_null;
|
||||
shiftmatrix_or_null& operator = (const shiftmatrix& T) { ((shiftmatrix&) self) = T; is_null = false; return self; }
|
||||
shiftmatrix_or_null() { is_null = true; }
|
||||
};
|
||||
|
||||
inline shiftmatrix shiftless(const transmatrix& T, ld shift = 0) {
|
||||
shiftmatrix res; res.T = T; res.shift = shift; return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user