void House::updateDoorDescription() const
std::ostringstream ss;
if (owner != 0) {
ss << "It belongs to house '" << houseName << "'. " << ownerName << " owns this house.";
} else {
ss << "It belongs to house '" << houseName << "'. Nobody owns this house.";
const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE);
if (housePrice != -1) {
ss << " It costs " << (houseTiles.size() * housePrice) << " gold coins.";
}
}
std::ostringstream ss;
if (owner != 0) {
ss << "It belongs to house '" << houseName << "'. " << ownerName << " owns this house.";
} else {
ss << "It belongs to house '" << houseName << "'. Nobody owns this house.";
const int
const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE) / 1000000);
if (housePrice != -1) {
ss << " It costs " << (houseTiles.size() * housePrice) << " golden nuggets.";
}
}
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(114): warning C4114: same type qualifier used more than once
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(114): error C2734: 'int32_t': 'const' object must be initialized if not 'extern'
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(114): error C2146: syntax error: missing ';' before identifier 'housePrice'
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(114): error C2065: 'housePrice': undeclared identifier
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(114): error C2059: syntax error: ')'
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(115): error C2065: 'housePrice': undeclared identifier
1>c:\users\egzon\vcpkg\forgottenserver\src\house.cpp(116): error C2065: 'housePrice': undeclared identifier
const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE) / 1000000);
if (housePrice != -1) {
ss << " It costs " << (houseTiles.size() * housePrice) << " golden nuggets.";
}
}