fix: weapon names in market are now real names, not keys

This commit is contained in:
catarrh committed 2026-07-27 01:27:20 +03:00
1 parent f61dac2c46
commit 65c2e503fe
1 file changed
+1 -1
+1 -1
View File
@@ -1571,7 +1571,7 @@ function drawMarketPanel() {
if (isSelected) { if (isSelected) {
drawRect(framebuffer, listX, rowY, listW, itemH, '#558'); drawRect(framebuffer, listX, rowY, listW, itemH, '#558');
} }
drawPanelText(framebuffer, item, listX + 12, rowY + 5, color); drawPanelText(framebuffer, WEAPON_TYPES[item] ? WEAPON_TYPES[item].name : item.charAt(0).toUpperCase() + item.slice(1), listX + 12, rowY + 5, color);
drawPanelText(framebuffer, priceText, listX + 150, rowY + 5, isSelected ? 'yellow' : '#aaa'); drawPanelText(framebuffer, priceText, listX + 150, rowY + 5, isSelected ? 'yellow' : '#aaa');
drawPanelText(framebuffer, ammoText, listX + 230, rowY + 5, isSelected ? 'yellow' : '#aaa'); drawPanelText(framebuffer, ammoText, listX + 230, rowY + 5, isSelected ? 'yellow' : '#aaa');
} }