diff src/economy.cpp @ 18202:f5b712935c89 draft

(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction between bankruptcy and manual removal of companies even though the API suggested that
author rubidium <rubidium@openttd.org>
date Sat, 15 Oct 2011 20:42:32 +0000
parents 9fd018e89254
children 013a4175f4c4
line wrap: on
line diff
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -561,7 +561,7 @@
 			 * that changing the current company is okay. In case of single
 			 * player we are sure (the above check) that we are not the local
 			 * company and thus we won't be moved. */
-			if (!_networking || _network_server) DoCommandP(0, 2 | (c->index << 16), 0, CMD_COMPANY_CTRL);
+			if (!_networking || _network_server) DoCommandP(0, 2 | (c->index << 16), CRR_BANKRUPT, CMD_COMPANY_CTRL);
 			break;
 	}
 }