Fix biz label not showing buy info

This commit is contained in:
Vortrex
2023-02-21 19:49:28 -06:00
parent d8dde07845
commit 5ebbe17920

View File

@@ -64,14 +64,16 @@ function receiveBusinessFromServer(businessId, isDeleted, name, entrancePosition
if (businessData.buyPrice > 0) { if (businessData.buyPrice > 0) {
businessData.labelInfoType = V_PROPLABEL_INFO_BUYBIZ; businessData.labelInfoType = V_PROPLABEL_INFO_BUYBIZ;
} else { } else {
if (hasInterior && !hasItems) { if (hasInterior) {
businessData.labelInfoType = V_PROPLABEL_INFO_ENTER; businessData.labelInfoType = V_PROPLABEL_INFO_ENTER;
} else if (!hasInterior && hasItems) { } else {
if (hasItems) {
businessData.labelInfoType = V_PROPLABEL_INFO_BUY; businessData.labelInfoType = V_PROPLABEL_INFO_BUY;
} else { } else {
businessData.labelInfoType = V_PROPLABEL_INFO_NONE; businessData.labelInfoType = V_PROPLABEL_INFO_NONE;
} }
} }
}
logToConsole(LOG_DEBUG, `[V.RP.Business] Business ${businessId} already exists. Checking blip ...`); logToConsole(LOG_DEBUG, `[V.RP.Business] Business ${businessId} already exists. Checking blip ...`);
if (blipModel == -1) { if (blipModel == -1) {