1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-29 23:24:31 +01:00

Fix: Don't try to rename OWNER_DEITY signs in-game (#9716)

This commit is contained in:
Tyler Trahan
2021-11-28 07:16:42 -07:00
committed by Patric Stout
parent 94dfd1df21
commit 4524acea38
4 changed files with 18 additions and 1 deletions

View File

@@ -565,10 +565,14 @@ static WindowDesc _query_sign_edit_desc(
*/
void HandleClickOnSign(const Sign *si)
{
/* If we can't rename the sign, don't even open the rename GUI. */
if (!CompanyCanRenameSign(si)) return;
if (_ctrl_pressed && (si->owner == _local_company || (si->owner == OWNER_DEITY && _game_mode == GM_EDITOR))) {
RenameSign(si->index, "");
return;
}
ShowRenameSignWindow(si);
}