support for new SEQ format and idle animations

This commit is contained in:
Ondřej Novák 2025-07-10 15:07:54 +02:00
parent 3463d8e720
commit 2ce5f77825
9 changed files with 284 additions and 93 deletions

View file

@ -718,9 +718,10 @@ void enemy_draw_transp(const void *src,void *trg,const void *shade,int scale,int
//prepare xtable
{
int *w = xtable;
int *we = xtable+sizeof(xtable)/sizeof(xtable[0]);
int ofs = 0;
int accu = 0;
while (ofs < pcx) {
while (ofs < pcx && w < we) {
*w++ = ofs;
accu+=320;
while (accu >= scale) {