fix crashes

This commit is contained in:
Ondrej Novak 2025-02-16 20:41:29 +01:00
parent 04ab5898ef
commit a8c9fced4c
12 changed files with 65 additions and 59 deletions

View file

@ -20,7 +20,7 @@ void sikma_zleva_##suffx(void) \
word cy = zoom.ycount; \
const unsigned char *pixmap = zoom.texture; \
const short *ytable = zoom.ytable; \
while (cy) { \
while (cy && pixmap < (const unsigned char *)zoom.texture_end) { \
const int32_t *xtable = zoom.xtable; \
word cx = zoom.xmax; \
word *scr_iter = scr; \
@ -48,7 +48,7 @@ void sikma_zprava_##suffx(void) \
word cy = zoom.ycount; \
const unsigned char *pixmap = zoom.texture; \
const short *ytable = zoom.ytable; \
while (cy) { \
while (cy && pixmap < (const unsigned char *)zoom.texture_end) { \
const int32_t *xtable = zoom.xtable; \
word cx = zoom.xmax; \
word *scr_iter = scr; \