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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user