mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
replaced product drawing with the general routine
This commit is contained in:
1 parent
ac9d18adfb
commit
63c4886722
3 files changed
+37
-23
No files matched your search
@@ -1895,11 +1895,25 @@ EX namespace dq {
|
||||
EX set<int> visited_by_matrix;
|
||||
EX void enqueue_by_matrix(heptagon *h, const transmatrix& T) {
|
||||
if(!h) return;
|
||||
if(sl2 && T[3][3] < 0) { enqueue_by_matrix(h, centralsym * T); return; }
|
||||
int b = bucketer(tC0(T));
|
||||
if(visited_by_matrix.count(b)) { return; }
|
||||
visited_by_matrix.insert(b);
|
||||
drawqueue.emplace(h, T, band_shift);
|
||||
}
|
||||
|
||||
EX queue<tuple<cell*, transmatrix, ld>> drawqueue_c;
|
||||
|
||||
EX void enqueue_by_matrix_c(cell *c, const transmatrix& T) {
|
||||
if(!c) return;
|
||||
if(sl2 && T[3][3] < 0) { enqueue_by_matrix_c(c, centralsym * T); return; }
|
||||
int b = bucketer(tC0(T));
|
||||
if(visited_by_matrix.count(b)) { return; }
|
||||
visited_by_matrix.insert(b);
|
||||
drawqueue_c.emplace(c, T, band_shift);
|
||||
}
|
||||
|
||||
|
||||
EX }
|
||||
|
||||
EX bool do_draw(cell *c) {
|
||||
|
||||
Reference in new issue
Block a user