1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-23 01:21:22 +00:00

fixed 'draw' in drawing tool while the map is rotated by mouse or animated movement

This commit is contained in:
Zeno Rogue
2024-06-29 10:48:57 +02:00
parent bf9fdd9a88
commit edc173a538
2 changed files with 36 additions and 20 deletions

View File

@@ -279,9 +279,14 @@ EX namespace mapeditor {
}
}
/** for 'draw' in the drawing tool, cfree is the free shape we are currently drawing */
dtfree *cfree;
cell *cfree_at;
shiftmatrix cfree_old;
/** which cell does cfree belong to */
EX cell *cfree_at;
/** essentially ggmatrix(cfree_at), but we need to know to work with tori */
EX shiftmatrix cfree_old;
EX bool dt_in() { return cfree; }
EX void dt_finish() {
cfree = nullptr;