summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-02-13 17:34:53 +0000
committerfrosch <frosch@openttd.org>2012-02-13 17:34:53 +0000
commit6ceda44d3b26457ab65367a4960066d0910d3712 (patch)
treea5d0404f268981e0e10f45b66ed2f8f33c2c4c33 /src
parent060cac439c721ccee04778cf7b1bfae463d5875f (diff)
downloadopenttd-6ceda44d3b26457ab65367a4960066d0910d3712.tar.xz
(svn r23943) -Fix (r23835) [FS#5061]: Also list DEITY signs in the signlist in SE.
Diffstat (limited to 'src')
-rw-r--r--src/signs_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp
index 87e86f3d8..91004f7ae 100644
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -131,7 +131,7 @@ struct SignList {
{
assert(!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS));
/* Hide sign if non-own signs are hidden in the viewport */
- return (*a)->owner == _local_company;
+ return (*a)->owner == _local_company || (*a)->owner == OWNER_DEITY;
}
/** Filter out signs from the sign list that does not match the name filter */
@@ -139,7 +139,7 @@ struct SignList {
{
FilterInfo filter_info = {this->filter_string, this->match_case};
this->signs.Filter(&SignNameFilter, filter_info);
- this->signs.Filter(&OwnerDeityFilter, filter_info);
+ if (_game_mode != GM_EDITOR) this->signs.Filter(&OwnerDeityFilter, filter_info);
if (!HasBit(_display_opt, DO_SHOW_COMPETITOR_SIGNS)) {
this->signs.Filter(&OwnerVisibilityFilter, filter_info);
}
@@ -642,7 +642,7 @@ static const WindowDesc _query_sign_edit_desc(
*/
void HandleClickOnSign(const Sign *si)
{
- if (_ctrl_pressed && si->owner == _local_company) {
+ if (_ctrl_pressed && (si->owner == _local_company || (si->owner == OWNER_DEITY && _game_mode == GM_EDITOR))) {
RenameSign(si->index, NULL);
return;
}