--- deliantra/Deliantra-Client/Client.xs 2007/04/01 01:19:18 1.171 +++ deliantra/Deliantra-Client/Client.xs 2007/04/04 02:43:29 1.173 @@ -1488,7 +1488,7 @@ { mapface face = cell->face [z]; - if (face) + if (face > 0 && face < self->texs) { maptex tex = self->tex [face]; int a0 = 255 - tex.a; @@ -1549,7 +1549,7 @@ face = cell->face [z]; - if (face && face < self->texs) + if (face > 0 && face < self->texs) { maptex tex = self->tex [face]; int px = (x + 1) * T - tex.w; @@ -1611,7 +1611,7 @@ if (cell->stat_hp) { int width = cell->stat_width * T; - int thick = sh / 28 + 1 + cell->stat_width; + int thick = (sh * T / 32) / 28 + 1 + cell->stat_width; glColor3ub (0, 0, 0); glRectf (px + 1, py - thick - 2,