OpenTTD

Tasklist

FS#2820 - [patch] allow listing companies also outside network games

Attached to Project: OpenTTD
Opened by Bilbo (bilbo) - Thursday, 09 April 2009, 18:36 GMT
Last edited by frosch (frosch) - Sunday, 09 December 2012, 16:58 GMT
Type Patch
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The command "companies" was previously available only to network servers.

Since the command provides useful information also for network clients and when debugging AI's, I think it should be available also without networking. I am attaching a patch that allows that. Without networking (when playing locally), the list will say whether the company is controlled by AI (appending " AI" at end of line with companies) or not, instead of telling if it is protected/unprotected.

This allows using commands like stop_ai without having to leave console to look for the company numbers
This task depends upon

Closed by  frosch (frosch)
Sunday, 09 December 2012, 16:58 GMT
Reason for closing:  Implemented
Additional comments about closing:  in r24807, though different
Comment by Bilbo (bilbo) - Sunday, 19 April 2009, 12:45 GMT
Fixed possible crash when run as network client. Attaching fixed patch
Comment by Bilbo (bilbo) - Wednesday, 14 April 2010, 13:10 GMT
Update of this patch to 19627 due to changes in trunk. Functionality unchanged.
Comment by Remko Bijker (Rubidium) - Monday, 13 December 2010, 17:39 GMT
Shouldn't the command also be available when networking is fully disabled, i.e. when compiled with --disable-network?

Loading...