mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-12 17:32:30 -04:00
fix crashes
This commit is contained in:
parent
04ab5898ef
commit
a8c9fced4c
12 changed files with 65 additions and 59 deletions
|
@ -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; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue