fast trade and fast actions using ctrl+click

This commit is contained in:
Ondřej Novák 2025-03-03 20:40:55 +01:00
parent 9e5faf53de
commit 6385447b6e
3 changed files with 147 additions and 117 deletions

View file

@ -489,6 +489,14 @@ int click_map_size=0;
T_CLK_MAP *global_click_map=NULL;
int global_click_map_size=0;
const T_CLK_MAP * find_in_click_map_entry(int x, int y,T_CLK_MAP *pt,int pocet,int evtype) {
while (pocet--) {
if (x>=pt->xlu && x<=pt->xrb && y>=pt->ylu && y<=pt->yrb && (evtype & pt->mask)) return pt;
pt++;
}
return NULL;
}
int find_in_click_map(MS_EVENT *ms,T_CLK_MAP *pt,int pocet,int *evtype)
{
int mscur=-1;