changeset 19089:eeca59added1 draft

(svn r23943) -Fix (r23835) [FS#5061]: Also list DEITY signs in the signlist in SE.
author frosch <frosch@openttd.org>
date Mon, 13 Feb 2012 17:34:53 +0000 (2012-02-13)
parents 7cd49ed5628c
children d043e5f03750
files src/signs_gui.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/signs_gui.cpp
+++ b/src/signs_gui.cpp
@@ -131,7 +131,7 @@
 	{
 		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 @@
 	{
 		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 @@
  */
 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;
 	}