--- deliantra/Deliantra-Client/Client.xs 2006/08/19 04:03:15 1.149 +++ deliantra/Deliantra-Client/Client.xs 2006/08/19 18:17:18 1.151 @@ -1275,7 +1275,7 @@ mapcell *cell; int x, y, flags; - while (data < data_end) + while (data < data_end - 1) { flags = (data [0] << 8) + data [1]; data += 2; @@ -1503,13 +1503,13 @@ int thick = sh / 28 + 1 + cell->stat_width; glColor4ub (0, 0, 0, 223); - glRectf (px + 1, py, - px + width - 1, py + thick + 2); + glRectf (px + 1, py - thick - 2, + px + width - 1, py); glColor4ub (cell->stat_hp, 255 - cell->stat_hp, 0, 223); glRectf (px + 2, - py + 1, - px + width - 2 - cell->stat_hp * (width - 4) / 255, py + thick + 1); + py - thick - 1, + px + width - 2 - cell->stat_hp * (width - 4) / 255, py - 1); } } }