mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-14 02:11:58 -04:00
fix manabatery, fix timer clock skew, check queue when mouse move, wasd control
This commit is contained in:
parent
05a2803b2b
commit
56cac26206
17 changed files with 102 additions and 60 deletions
|
@ -440,9 +440,8 @@ void mouse_set_cursor(int cursor)
|
|||
{
|
||||
alock(cursor);
|
||||
schovej_mysku();
|
||||
register_ms_cursor(ablock(cursor));
|
||||
nastav_mysku_kurzor(ablock(cursor),0,0);
|
||||
last_ms_cursor=cursor;
|
||||
set_ms_finger(0,0);
|
||||
ukaz_mysku();
|
||||
}
|
||||
else
|
||||
|
@ -454,8 +453,8 @@ void mouse_set_cursor(int cursor)
|
|||
p=(char *)ablock(cursor/18+ikon_libs);
|
||||
memcpy(ms_item,&p[(cursor%18)*IT_ICONE_SIZE],IT_ICONE_SIZE);
|
||||
schovej_mysku();
|
||||
register_ms_cursor(ms_item);
|
||||
set_ms_finger(45/2,55/2);
|
||||
nastav_mysku_kurzor(ms_item,45/2,55/2);
|
||||
|
||||
last_ms_cursor=-cursor;
|
||||
ukaz_mysku();
|
||||
}
|
||||
|
@ -692,6 +691,7 @@ void user_timer(EVENT_MSG *msg,void **usr)
|
|||
x=get_timer_value();
|
||||
x-=lastvalue;
|
||||
lastvalue+=x;
|
||||
x = MIN(TIMERSPEED, x); //prevent clock skew
|
||||
if (x) send_message(E_TIMER,x);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue