| 768 | } |
| 769 | |
| 770 | void RightMouseDown() |
| 771 | { |
| 772 | if (!gmenu_is_active() && sgnTimeoutCurs == CURSOR_NONE && PauseMode != 2 && !plr[myplr]._pInvincible) { |
| 773 | if (doomflag) { |
| 774 | doom_close(); |
| 775 | } else if (!stextflag) { |
| 776 | if (spselflag) { |
| 777 | SetSpell(); |
| 778 | } else if (MouseY >= SPANEL_HEIGHT |
| 779 | || (!sbookflag || MouseX <= RIGHT_PANEL) |
| 780 | && !TryIconCurs() |
| 781 | && (pcursinvitem == -1 || !UseInvItem(myplr, pcursinvitem))) { |
| 782 | if (pcurs == 1) { |
| 783 | if (pcursinvitem == -1 || !UseInvItem(myplr, pcursinvitem)) |
| 784 | CheckPlrSpell(); |
| 785 | } else if (pcurs > CURSOR_HAND && pcurs < CURSOR_FIRSTITEM) { |
| 786 | SetCursor_(CURSOR_HAND); |
| 787 | } |
| 788 | } |
| 789 | } |
| 790 | } |
| 791 | } |
| 792 | |
| 793 | BOOL PressSysKey(int wParam) |
| 794 | { |
no test coverage detected