ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.171 by root, Sun Apr 1 01:19:18 2007 UTC vs.
Revision 1.172 by root, Mon Apr 2 19:29:27 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines