1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-14 13:57:38 +00:00

redone hrmap::draw() function to keep DRY

This commit is contained in:
Zeno Rogue
2020-07-27 19:36:19 +02:00
parent 42446f1925
commit 67595a4ed3
15 changed files with 61 additions and 322 deletions

View File

@@ -676,9 +676,9 @@ struct hrmap_archimedean : hrmap {
return hnew;
}
void draw() override {
void draw_at(cell *at, const shiftmatrix& where) override {
dq::clear_all();
dq::enqueue(centerover->master, cview());
dq::enqueue(at->master, where);
while(!dq::drawqueue.empty()) {
auto& p = dq::drawqueue.front();