mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-15 02:36:40 -04:00
added console and a few commands
This commit is contained in:
parent
e717badc45
commit
73b949fb2e
28 changed files with 807 additions and 87 deletions
|
@ -134,7 +134,7 @@ void small_anm_buff(void *target,const void *buff,const void *paleta);
|
|||
void small_anm_delta(void *target,const void *buff,const void *paleta);
|
||||
//#pragma aux small_anm_delta parm[edi][esi][ebx] modify [eax ecx]
|
||||
|
||||
static void animace_kouzla(int act,const void *data,int csize)
|
||||
static void animace_kouzla(MGIF_HEADER_T *_,int act,const void *data,int csize)
|
||||
{
|
||||
word *p=GetScreenAdr()+loc_anim_render_buffer;
|
||||
switch (act)
|
||||
|
@ -169,7 +169,8 @@ static void dialog_anim(va_list args)
|
|||
do
|
||||
{
|
||||
anm=open_mgif(aptr);
|
||||
while (anm!=NULL && task_quitmsg())
|
||||
char f = anm != NULL;
|
||||
while (f && task_quitmsg())
|
||||
{
|
||||
task_sleep();
|
||||
if (!spdc)
|
||||
|
@ -179,7 +180,7 @@ static void dialog_anim(va_list args)
|
|||
hid=1;schovej_mysku();
|
||||
}
|
||||
else hid=0;
|
||||
anm=mgif_play(anm);
|
||||
f=mgif_play(anm);
|
||||
spdc=speed;
|
||||
if (hid) ukaz_mysku();
|
||||
showview(PIC_X,PIC_Y,320,180);
|
||||
|
@ -191,7 +192,7 @@ static void dialog_anim(va_list args)
|
|||
}
|
||||
}
|
||||
rep--;
|
||||
close_mgif();
|
||||
close_mgif(anm);
|
||||
}
|
||||
while (!cntr && rep && !task_quitmsg());
|
||||
free(aptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue