Revision 214
fixed part of the problem with the bullet
graph.c | ||
---|---|---|
359 | 359 |
xmin = min(x, xmin); xmax = max(x, xmax); ymin = min(y, ymin); ymax = max(y, ymax); |
360 | 360 |
sprite_pic2src(p, w, h, &x, &y); |
361 | 361 |
xmin = min(x, xmin); xmax = max(x, xmax); ymin = min(y, ymin); ymax = max(y, ymax); |
362 |
xmin = max(xmin-2, 0); xmax = min(xmax+2, graph_get_XRes());
|
|
363 |
ymin = max(ymin-2, 0); ymax = min(ymax+2, graph_get_YRes());
|
|
362 |
xmin = max(xmin-(int16_t)p->scale-2, 0); xmax = min(xmax+(int16_t)p->scale+2, graph_get_XRes());
|
|
363 |
ymin = max(ymin-(int16_t)p->scale-2, 0); ymax = min(ymax+(int16_t)p->scale+2, graph_get_YRes());
|
|
364 | 364 |
} |
365 | 365 |
const uint8_t *map = basic_sprite_get_map(p->bsp); |
366 | 366 |
const uint16_t bytes_pixel = graph_get_bytes_pixel(); |
Also available in: Unified diff