FS#6003 - AI company with password protected company

Attached to Project: OpenTTD
Opened by Ricardo (Samu) - Wednesday, 30 April 2014, 16:30 GMT
Last edited by Remko Bijker (Rubidium) - Sunday, 11 May 2014, 12:52 GMT
Type Bug
Category Network
Status Closed
Assigned To No-one
Operating System Windows
Severity Very Low
Priority Normal
Reported Version 1.4.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


When a human controlled company with a password bankrupts and an AI takes its slot, the AI will inherit the password from the bankrupted company.

Was this pointless to report?


1. Launch OpenTTD
2. Make sure an AI can spawn in a new game in Game Script/AI Settings/Advanced Settings
3. Multiplayer > Start Server > New Game > Generate
4. Set a password for your company (Company 1)
5. Move yourself to spectator
6. Console > Set network.autoclean_companies on
7. Console > Set network.autoclean_novehicles 1
8. Wait a bit for autoclean to clean up Company 1 and for an AI to start as Company 1

Result: The AI that takes the Company 1 will have a Lock icon next to it's grayed out 'Join' button. It seems to happen for any Company slot, for as long as the last human player had set a password prior to Bankrupt.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Sunday, 11 May 2014, 12:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r26576