draw using hooks_fram not hooks_drawcell

This commit is contained in:
Zeno Rogue 2020-06-08 01:50:09 +02:00
parent 67360d8d5f
commit dfe78c51d0
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}