mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
fixed onHandle: now looks at all handles
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@164 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -376,8 +376,8 @@ bool SymbolSelectEditor::onHandle(const Vector2D& mpos, int dx, int dy) {
|
||||
mp.y >= p.y - 4 && mp.y < p.y + 4;
|
||||
}
|
||||
bool SymbolSelectEditor::onAnyHandle(const Vector2D& mpos, int* dxOut, int* dyOut) {
|
||||
for (int dx = -1 ; dx < 1 ; ++dx) {
|
||||
for (int dy = -1 ; dy < 1 ; ++dy) {
|
||||
for (int dx = -1 ; dx <= 1 ; ++dx) {
|
||||
for (int dy = -1 ; dy <= 1 ; ++dy) {
|
||||
if ((dx != 0 || dy != 0) && onHandle(mpos, dx, dy)) { // (0,0) == center, not a handle
|
||||
*dxOut = dx;
|
||||
*dyOut = dy;
|
||||
|
||||
Reference in New Issue
Block a user