|
|
|
@ -828,7 +828,6 @@ void StockpileSerializer::furniture_setup_other_mats()
|
|
|
|
|
void StockpileSerializer::write_furniture()
|
|
|
|
|
{
|
|
|
|
|
StockpileSettings::FurnitureSet *furniture= mBuffer.mutable_furniture();
|
|
|
|
|
furniture->set_sand_bags ( mPile->settings.furniture.sand_bags );
|
|
|
|
|
|
|
|
|
|
// FURNITURE type
|
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
|
@ -880,11 +879,6 @@ void StockpileSerializer::read_furniture()
|
|
|
|
|
const StockpileSettings::FurnitureSet furniture = mBuffer.furniture();
|
|
|
|
|
debug() << "furniture:" <<endl;
|
|
|
|
|
|
|
|
|
|
if ( mBuffer.furniture().has_sand_bags() )
|
|
|
|
|
mPile->settings.furniture.sand_bags = mBuffer.furniture().sand_bags();
|
|
|
|
|
else
|
|
|
|
|
mPile->settings.furniture.sand_bags = false;
|
|
|
|
|
|
|
|
|
|
// type
|
|
|
|
|
using df::enums::furniture_type::furniture_type;
|
|
|
|
|
df::enum_traits<furniture_type> type_traits;
|
|
|
|
|