mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
draw using hooks_fram not hooks_drawcell
This commit is contained in:
parent
67360d8d5f
commit
dfe78c51d0
@ -151,9 +151,11 @@ void draw_at(transmatrix T, color_t col) {
|
||||
|
||||
}
|
||||
|
||||
bool may_set_cell(cell *c, const transmatrix& V) {
|
||||
if(c == cwt.at && magmashape) {
|
||||
void draw_magma() {
|
||||
if() {
|
||||
if(heps.empty()) make();
|
||||
transmatrix V = ggmatrix(currentmap.gamestart());
|
||||
println(hlog, "V = ", V);
|
||||
for(auto h: heps)
|
||||
draw_at(V * h.first, h.second);
|
||||
}
|
||||
@ -181,7 +183,7 @@ int readArgs() {
|
||||
}
|
||||
|
||||
|
||||
auto msc = addHook(hooks_drawcell, 100, may_set_cell)
|
||||
auto msc = addHook(hooks_frame, 100, draw_magma)
|
||||
+ addHook(hooks_args, 100, readArgs);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user