Skip to content

Commit

Permalink
Make remotefortressreader.cpp mark blocks as hidden that aren't visib…
Browse files Browse the repository at this point in the history
…le directly to the adventurer
  • Loading branch information
RosaryMala committed Jun 2, 2016
1 parent b1072b6 commit 44b8433
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/remotefortressreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1166,16 +1166,20 @@ void CopyDesignation(df::map_block * DfBlock, RemoteFortressReader::MapBlock * N
NetBlock->add_magma(lava);
NetBlock->add_water(water);
NetBlock->add_aquifer(designation.bits.water_table);
NetBlock->add_hidden(designation.bits.hidden);
NetBlock->add_light(designation.bits.light);
NetBlock->add_outside(designation.bits.outside);
NetBlock->add_subterranean(designation.bits.subterranean);
NetBlock->add_water_salt(designation.bits.water_salt);
NetBlock->add_water_stagnant(designation.bits.water_stagnant);
if(gamemode && (*gamemode == game_mode::ADVENTURE))
if (gamemode && (*gamemode == game_mode::ADVENTURE))
{
auto fog_of_war = DfBlock->fog_of_war[xx][yy];
NetBlock->add_hidden(designation.bits.dig == TileDigDesignation::NO_DIG || designation.bits.hidden);
NetBlock->add_tile_dig_designation(TileDigDesignation::NO_DIG);
}
else
{
NetBlock->add_hidden(designation.bits.hidden);
switch (designation.bits.dig)
{
case df::enums::tile_dig_designation::No:
Expand Down

0 comments on commit 44b8433

Please sign in to comment.