| 1152 | } |
| 1153 | |
| 1154 | void S_ScrollHBuy(int idx) |
| 1155 | { |
| 1156 | int l; |
| 1157 | char iclr; |
| 1158 | |
| 1159 | ClearSText(5, 21); |
| 1160 | stextup = 5; |
| 1161 | for (l = 5; l < 20; l += 4) { |
| 1162 | if (healitem[idx]._itype != ITYPE_NONE) { |
| 1163 | iclr = COL_WHITE; |
| 1164 | if (!healitem[idx]._iStatFlag) { |
| 1165 | iclr = COL_RED; |
| 1166 | } |
| 1167 | |
| 1168 | AddSText(20, l, 0, healitem[idx]._iName, iclr, 1); |
| 1169 | AddSTextVal(l, healitem[idx]._iIvalue); |
| 1170 | PrintStoreItem(&healitem[idx], l + 1, iclr); |
| 1171 | stextdown = l; |
| 1172 | idx++; |
| 1173 | } |
| 1174 | } |
| 1175 | |
| 1176 | if (!stext[stextsel]._ssel && stextsel != 22) |
| 1177 | stextsel = stextdown; |
| 1178 | } |
| 1179 | |
| 1180 | void S_StartHBuy() |
| 1181 | { |
no test coverage detected