mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-15 18:56:41 -04:00
fix shops
This commit is contained in:
parent
99378da298
commit
42087c926c
10 changed files with 143 additions and 139 deletions
10
libs/gui.c
10
libs/gui.c
|
@ -606,7 +606,11 @@ void do_it_events(EVENT_MSG *msg,void **user_data)
|
|||
if (msg->msg==E_INIT) return;
|
||||
if (desktop==NULL) {exit_wait=1;return;}
|
||||
change_flag=0;f_cancel_event=0;
|
||||
if (o_aktual!=NULL)o_aktual->on_event(msg,o_aktual);
|
||||
if (o_aktual!=NULL) {
|
||||
EVENT_MSG mcpy = clone_message(msg);
|
||||
o_aktual->on_event(&mcpy,o_aktual);
|
||||
destroy_message(&mcpy);
|
||||
}
|
||||
if (msg->msg==E_MOUSE)
|
||||
{
|
||||
*oz=1;
|
||||
|
@ -665,11 +669,13 @@ void do_it_events(EVENT_MSG *msg,void **user_data)
|
|||
if (msg->msg==E_KEYBOARD)
|
||||
{
|
||||
*oz=1;
|
||||
EVENT_MSG cmsg = clone_message(msg);
|
||||
if (o_aktual!=NULL)
|
||||
{
|
||||
o_aktual->call_event(msg,o_aktual);
|
||||
}
|
||||
int code = va_arg(msg->data, int);
|
||||
int code = va_arg(cmsg.data, int);
|
||||
destroy_message(&cmsg);
|
||||
if ((code>>8)==0xf && waktual->idlist!=NULL)
|
||||
{
|
||||
if (o_aktual==NULL) o_aktual=get_last_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue