new filters, cztable, fix crash in enemy drawing

This commit is contained in:
Ondřej Novák 2025-02-06 12:05:17 +01:00
parent 83933755df
commit a8556070ad
10 changed files with 176 additions and 98 deletions

View file

@ -513,7 +513,7 @@ void enemy_draw(const void *src,void *trg,int shade,int scale,int maxspace,int c
int rwofs = pcx*(pcy-1);
int accu = 0;
int *w = ytable;
int sp = maxspace*2;
int sp = maxspace;
while (sp > 0 && rwofs >= 0) {
*w++ = rwofs;
@ -700,7 +700,7 @@ void enemy_draw_transp(const void *src,void *trg,const void *shade,int scale,int
int rwofs = pcx*(pcy-1);
int accu = 0;
int *w = ytable;
int sp = maxspace*2;
int sp = maxspace;
while (sp > 0 && rwofs >= 0) {
*w++ = rwofs;
@ -889,7 +889,7 @@ void enemy_draw_mirror_transp(const void *src,void *trg,const void *shade,int sc
int rwofs = pcx*(pcy-1);
int accu = 0;
int *w = ytable;
int sp = maxspace*2;
int sp = maxspace;
while (sp > 0 && rwofs >= 0) {
*w++ = rwofs;
@ -1079,7 +1079,7 @@ void enemy_draw_mirror(const void *src,void *trg,int shade,int scale,int maxspac
int rwofs = pcx*(pcy-1);
int accu = 0;
int *w = ytable;
int sp = maxspace*2;
int sp = maxspace;
while (sp > 0 && rwofs >= 0) {
*w++ = rwofs;