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:
twanvl
2006-12-24 13:53:07 +00:00
parent 966446342f
commit 8ab89a1145
+2 -2
View File
@@ -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;