… | |
… | |
1609 | int py = y * T; |
1609 | int py = y * T; |
1610 | |
1610 | |
1611 | if (cell->stat_hp) |
1611 | if (cell->stat_hp) |
1612 | { |
1612 | { |
1613 | int width = cell->stat_width * T; |
1613 | int width = cell->stat_width * T; |
1614 | int thick = sh / 28 + 1 + cell->stat_width; |
1614 | int thick = (sh * T / 32) / 28 + 1 + cell->stat_width; |
1615 | |
1615 | |
1616 | glColor3ub (0, 0, 0); |
1616 | glColor3ub (0, 0, 0); |
1617 | glRectf (px + 1, py - thick - 2, |
1617 | glRectf (px + 1, py - thick - 2, |
1618 | px + width - 1, py); |
1618 | px + width - 1, py); |
1619 | |
1619 | |