|
|
@ -101,6 +101,7 @@ using namespace df::global;
|
|
|
|
REQUIRE_GLOBAL(world);
|
|
|
|
REQUIRE_GLOBAL(world);
|
|
|
|
REQUIRE_GLOBAL(gps);
|
|
|
|
REQUIRE_GLOBAL(gps);
|
|
|
|
REQUIRE_GLOBAL(ui);
|
|
|
|
REQUIRE_GLOBAL(ui);
|
|
|
|
|
|
|
|
REQUIRE_GLOBAL(gamemode);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Here go all the command declarations...
|
|
|
|
// Here go all the command declarations...
|
|
|
@ -1171,6 +1172,10 @@ void CopyDesignation(df::map_block * DfBlock, RemoteFortressReader::MapBlock * N
|
|
|
|
NetBlock->add_subterranean(designation.bits.subterranean);
|
|
|
|
NetBlock->add_subterranean(designation.bits.subterranean);
|
|
|
|
NetBlock->add_water_salt(designation.bits.water_salt);
|
|
|
|
NetBlock->add_water_salt(designation.bits.water_salt);
|
|
|
|
NetBlock->add_water_stagnant(designation.bits.water_stagnant);
|
|
|
|
NetBlock->add_water_stagnant(designation.bits.water_stagnant);
|
|
|
|
|
|
|
|
if(gamemode && (*gamemode == game_mode::ADVENTURE))
|
|
|
|
|
|
|
|
NetBlock->add_tile_dig_designation(TileDigDesignation::NO_DIG);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
switch (designation.bits.dig)
|
|
|
|
switch (designation.bits.dig)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case df::enums::tile_dig_designation::No:
|
|
|
|
case df::enums::tile_dig_designation::No:
|
|
|
@ -1200,6 +1205,7 @@ void CopyDesignation(df::map_block * DfBlock, RemoteFortressReader::MapBlock * N
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CopyBuildings(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetBlock, MapExtras::MapCache * MC, DFCoord pos)
|
|
|
|
void CopyBuildings(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetBlock, MapExtras::MapCache * MC, DFCoord pos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|