Skip to content

Commit

Permalink
Fixes #166: Destroyed units are no longer drawn when move arrows are …
Browse files Browse the repository at this point in the history
…hidden
  • Loading branch information
TimothyJones committed Aug 19, 2015
1 parent 9912eff commit cb7895f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion locales/English/recentchanges.php
Expand Up @@ -29,9 +29,14 @@
margin-left:30px;
}
</style>
August 19th, 2015
<ul>
<li>Bugfix: Destroyed units are no longer drawn when the "show move arrows" profile setting is set.</li>
</ul>
<div class="hr"></div>
August 18th, 2015
<ul>
<li>Anonymous defeats no longer increment the 'defeats' count on a profile page until the game is over.</li>
<li>Bugfix: Anonymous defeats no longer increment the 'defeats' count on a profile page until the game is over.</li>
</ul>
<div class="hr"></div>
August 5th, 2015
Expand Down
4 changes: 2 additions & 2 deletions map.php
Expand Up @@ -398,8 +398,8 @@
and !isset($fullTerrID[$terrID])
and ( isset($drawToTerrID) and ! isset($fullTerrID[$drawToTerrID]) ) )
{
// Do not display destroyed units in previews
if (PREVIEW && in_array($Game->Variant->deCoast($drawToTerrID),$destroyedTerrs)) continue;
// Do not display destroyed units in previews or when no moves are shown
if ((PREVIEW || HIDEMOVES) && in_array($Game->Variant->deCoast($drawToTerrID),$destroyedTerrs)) continue;

/*
* We're drawing a unit onto the board
Expand Down

0 comments on commit cb7895f

Please sign in to comment.