check if hot spell at X Y exists
| 640 | |
| 641 | // check if hot spell at X Y exists |
| 642 | bool HSExists(int x, int y) |
| 643 | { |
| 644 | for (int r = 0; r < speedspellcount; r++) { // speedbook cells are 56x56 |
| 645 | if (MouseX >= speedspellscoords[r].x - 28 && MouseX < speedspellscoords[r].x + (28) && MouseY >= speedspellscoords[r].y - (28) && MouseY < speedspellscoords[r].y + 28) { |
| 646 | return true; |
| 647 | } |
| 648 | } |
| 649 | return false; |
| 650 | } |
| 651 | |
| 652 | void HotSpellMove(MoveDirection dir) |
| 653 | { |