… | |
… | |
1486 | |
1486 | |
1487 | for (z = 0; z <= 0; z++) |
1487 | for (z = 0; z <= 0; z++) |
1488 | { |
1488 | { |
1489 | mapface face = cell->face [z]; |
1489 | mapface face = cell->face [z]; |
1490 | |
1490 | |
1491 | if (face) |
1491 | if (face > 0 && face < self->texs) |
1492 | { |
1492 | { |
1493 | maptex tex = self->tex [face]; |
1493 | maptex tex = self->tex [face]; |
1494 | int a0 = 255 - tex.a; |
1494 | int a0 = 255 - tex.a; |
1495 | int a1 = tex.a; |
1495 | int a1 = tex.a; |
1496 | |
1496 | |
… | |
… | |
1547 | { |
1547 | { |
1548 | mapcell *cell = row->col + (x + mx - row->c0); |
1548 | mapcell *cell = row->col + (x + mx - row->c0); |
1549 | |
1549 | |
1550 | face = cell->face [z]; |
1550 | face = cell->face [z]; |
1551 | |
1551 | |
1552 | if (face && face < self->texs) |
1552 | if (face > 0 && face < self->texs) |
1553 | { |
1553 | { |
1554 | maptex tex = self->tex [face]; |
1554 | maptex tex = self->tex [face]; |
1555 | int px = (x + 1) * T - tex.w; |
1555 | int px = (x + 1) * T - tex.w; |
1556 | int py = (y + 1) * T - tex.h; |
1556 | int py = (y + 1) * T - tex.h; |
1557 | |
1557 | |