Fix buyable biz/house labels

This commit is contained in:
Vortrex
2022-05-17 08:54:59 -05:00
parent d42625c861
commit c93dcff420

View File

@@ -145,17 +145,17 @@ function renderPropertyEntranceLabel(name, position, locked, isBusiness, price,
} }
case VRR_PROPLABEL_INFO_BUYBIZ: { case VRR_PROPLABEL_INFO_BUYBIZ: {
infoText = getLocaleString("BuyBusinessLabel", price); infoText = getLocaleString("BuyBusinessLabel", "/bizbuy");
break; break;
} }
case VRR_PROPLABEL_INFO_BUYHOUSE: { case VRR_PROPLABEL_INFO_BUYHOUSE: {
infoText = getLocaleString("PropertyForSaleLabel", price); infoText = getLocaleString("BuyHouseLabel", "/housebuy");
break; break;
} }
case VRR_PROPLABEL_INFO_RENTHOUSE: { case VRR_PROPLABEL_INFO_RENTHOUSE: {
infoText = getLocaleString("PropertyForRentLabel", rentPrice); infoText = getLocaleString("RentHouseLabel", "/houserent");
break; break;
} }
@@ -358,7 +358,7 @@ function processLabelRendering() {
} }
case VRR_LABEL_HOUSE: { case VRR_LABEL_HOUSE: {
renderPropertyEntranceLabel("House", pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType); renderPropertyEntranceLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType);
break; break;
} }