Commit Graph

160 Commits

Author SHA1 Message Date
rubidium
56a65270fc (svn r20970) -Add: company change notification to remote admins (dihedral) 2010-10-17 17:37:45 +00:00
rubidium
ecb191b1ba (svn r20919) -Fix [FS#4140]: objects didn't change colour when the company changed colour. Now they do, except when the "decide colour" callback is (defined to be) used 2010-10-12 19:48:42 +00:00
alberth
2b4da1d345 (svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file. 2010-08-29 15:58:43 +00:00
rubidium
360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 2010-08-26 22:01:16 +00:00
rubidium
ef7bffa360 (svn r20543) -Fix (r20542): compilation failed when networking was disabled 2010-08-18 17:23:03 +00:00
rubidium
8a9929d702 (svn r20542) -Codechange: generalise the setting of "p2" to the ClientID. 2010-08-18 17:06:45 +00:00
alberth
3db5cfb95d (svn r20392) -Fix [FS#3993]: Prevent buying bankrupt companies when you'd get too many vehicles. 2010-08-06 20:26:01 +00:00
alberth
ccbacfc298 (svn r20318) -Doc: Doxygen additions. 2010-08-02 20:32:39 +00:00
alberth
6c01a5833c (svn r20317) -Codechange: Move variable declaration to their first use. 2010-08-02 20:19:10 +00:00
frosch
5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium
8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
alberth
e5b703ddf9 (svn r20279) -Doc: Doxygen additions/improvements. 2010-08-01 17:45:53 +00:00
alberth
2600624395 (svn r20277) -Codechange: Move CmdSetAutoReplace() from company_cmd.cpp to autoreplace_cmd.cpp. 2010-08-01 14:43:39 +00:00
alberth
603c33efc1 (svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals. 2010-07-31 21:43:07 +00:00
alberth
1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 2010-07-31 21:02:56 +00:00
frosch
c9628dd568 (svn r19979) -Codechange: Separate static loadable fields from Company into separate struct. 2010-06-13 14:15:11 +00:00
frosch
65d058723e (svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation. 2010-06-05 13:32:42 +00:00
frosch
ed80045221 (svn r19654) -Codechange: Use Extract<> in more places. 2010-04-17 13:31:41 +00:00
rubidium
ddef21cb53 (svn r19636) -Fix: desync when taking over companies 2010-04-14 20:26:34 +00:00
terkhen
542d5657fa (svn r19615) -Fix [FS#3763]: Company related graphs weren't updated correctly after changing the company colour. 2010-04-12 17:58:09 +00:00
alberth
19dff3a6b2 (svn r19414) -Doc: Several doxygen additions and corrections. 2010-03-14 12:39:24 +00:00
alberth
d5fe3f96c7 (svn r19405) -Codechange: CheckOwnership() returns a CommandCost. 2010-03-13 17:11:28 +00:00
alberth
6005227ac9 (svn r19372) -Codechange: CheckTileOwnership() returns a CommandCost. 2010-03-07 20:44:05 +00:00
frosch
9eca269321 (svn r19358) -Fix [FS#3663]: Close error messages about missing ownership when the company closes or is taken over. (parts by Alberth). 2010-03-06 16:26:09 +00:00
rubidium
1c494c6f71 (svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel 2010-02-10 16:24:05 +00:00
smatz
c736bbb875 (svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword() 2010-02-10 15:17:27 +00:00
frosch
ea8a44f5cd (svn r18931) -Fix: Disabling autoreplace rules might count invalid engines. 2010-01-27 20:54:05 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
rubidium
7f1bf45c03 (svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company. 2010-01-11 20:32:32 +00:00
rubidium
9313532ddd (svn r18783) -Codechange: make CheckCompanyHasMoney set an error on the CommandCost it tests when you don't have enough money instead of setting a global variable. 2010-01-11 20:21:56 +00:00
rubidium
6ce5fe41f8 (svn r18732) -Codechange: move the company related commands of misc_cmd.cpp to company_cmd.cpp 2010-01-05 17:11:56 +00:00
rubidium
b77739c512 (svn r18710) -Fix [FS#3478]: the wrong town is mentioned in the error when trying to make one way roads of town owned roads 2010-01-04 11:35:12 +00:00
rubidium
da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
rubidium
a1a3e10124 (svn r18112) -Fix (rnewpool): crash when a company got removed and you had the company league window opened 2009-11-15 23:22:07 +00:00
rubidium
745c0c2c1e (svn r18056) -Fix (r17737): compiling without networking failed 2009-11-12 21:08:41 +00:00
rubidium
95bcee3fde (svn r17955) -Codechange: s/SPR_PLAYER_ICON/SPR_COMPANY_ICON/ 2009-11-02 16:07:09 +00:00
rubidium
3a9a88782b (svn r17737) -Codechange: remove the chat window when you were chatting with someone who lost his/her connection or when you were team chatting and moved out of the company. 2009-10-07 17:36:33 +00:00
rubidium
982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 2009-10-04 17:16:41 +00:00
smatz
499b6df23b (svn r17611) -Fix: buffers used for verifying company and president name length were too short, possibly causing false positives 2009-09-22 12:42:56 +00:00
rubidium
06e490fadc (svn r17567) -Fix: some doxygen warnings 2009-09-18 14:23:58 +00:00
yexo
6fb7012bc6 (svn r17542) -Fix: don't access variables in the company struct after it has been deleted
-Cleanup: remove some never-used code
2009-09-14 22:09:50 +00:00
frosch
0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 2009-09-13 19:15:59 +00:00
rubidium
69a13877c3 (svn r17487) -Fix: silence some MSVC warnings 2009-09-09 12:41:51 +00:00
rubidium
ec00da379e (svn r17473) -Codechange: use the post destructor for destroying companies too instead of complicating the graph GUI invalidate code. 2009-09-08 12:27:27 +00:00
rubidium
684706b6b0 (svn r17404) -Change (r17379): silence gcc warning caused by inlining of a virtual function 2009-09-03 11:56:29 +00:00
rubidium
808a2b06e6 (svn r17379) -Codechange: make the performance rating window nested, although it still needs some improvements 2009-09-02 13:24:36 +00:00
rubidium
62e990823d (svn r17345) -Fix [FS#2769]: one wasn't offered to take over bankrupt companies anymore; caused by the introduction NoAI, although NewAI had the same problem too. 2009-09-01 12:57:04 +00:00
yexo
8a2e1011b2 (svn r17298) -Fix [FS#3153]: reloading an AI started a new AI in the first available company slot causing other AIs to be started 2009-08-28 15:23:11 +00:00
rubidium
99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
smatz
cb6b1accc4 (svn r17132) -Fix: comments in company_cmd.cpp 2009-08-09 15:58:34 +00:00
rubidium
d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium
634019bb17 (svn r17051) -Codechange: make the graph legend window use nested widgets 2009-08-03 14:44:08 +00:00
rubidium
39e6dbd5e3 (svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically 2009-07-20 11:21:57 +00:00
smatz
a2567c84a0 (svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible 2009-06-10 22:05:01 +00:00
yexo
18d0a5238f (svn r16444) -Codechange: Set all company settings to their default value for a new company instead of zeroing them. 2009-05-26 23:14:02 +00:00
yexo
68042a6dde (svn r16433) -Codechange: Remove most of CmdSetAutoreplace and replace it with calls to CmdChangeCompanySetting 2009-05-26 13:29:01 +00:00
yexo
7eb9ad0415 (svn r16429) -Change: Make the company settings behave like all others settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies. 2009-05-26 11:40:14 +00:00
frosch
eeb3f75cfe (svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted. 2009-05-24 16:52:42 +00:00
smatz
d6e203ebe2 (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead 2009-05-22 15:23:47 +00:00
smatz
50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 2009-05-22 15:13:50 +00:00
rubidium
789999ecf3 (svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP. 2009-05-19 21:20:14 +00:00
smatz
512db5248e (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 2009-05-18 16:21:28 +00:00
smatz
0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz
cf986c3099 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 2009-05-16 23:44:36 +00:00
smatz
d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
yexo
8461e505dc (svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings 2009-05-16 00:16:43 +00:00
yexo
d489f93473 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 2009-05-15 23:55:06 +00:00
yexo
70559caa8b (svn r16292) -Fix (r16287): autorenew settings were set to 0 when creating a new company in multiplayer 2009-05-13 12:07:36 +00:00
yexo
da1f2295c4 (svn r16287) -Fix: fix possible (in theory) desync related to autorenew settings 2009-05-12 22:32:22 +00:00
rubidium
5c5b357043 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +00:00
rubidium
c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium
f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 2009-03-14 18:16:29 +00:00
smatz
4c6afbbbe2 (svn r15704) -Cleanup: remove further includes from recently split files 2009-03-13 23:48:07 +00:00
yexo
b8601d903d (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 2009-02-25 21:45:14 +00:00
rubidium
5c8cf85613 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 2009-02-09 21:20:05 +00:00
rubidium
89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium
66cb1fe1ff (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 2009-02-09 01:06:23 +00:00
rubidium
283b3d16ab (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 2009-02-08 12:25:13 +00:00
rubidium
42fe0b65d2 (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 2009-02-04 16:59:41 +00:00
smatz
9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
smatz
484afacd63 (svn r15298) -Fix [FS#2588]: don't start another AI company in MP when there are too many companies 2009-01-31 17:56:06 +00:00
glx
a92f792433 (svn r15282) -Fix: it was possible to start more than MAX_COMPANIES companies 2009-01-27 02:02:04 +00:00
smatz
049e535065 (svn r15281) -Fix: company could never have auto-assigned colour 0 (dark blue) 2009-01-27 01:15:29 +00:00
smatz
fe1013f147 (svn r15279) -Fix: deadlock (with wide fonts) or desync when generating manager name 2009-01-26 22:27:11 +00:00
smatz
adb5eac77e (svn r15257) -Cleanup: remove Company::is_noai, it is not needed anymore 2009-01-24 15:31:48 +00:00
rubidium
2722cabcce (svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral) 2009-01-23 22:18:06 +00:00
rubidium
cdac8965bd (svn r15229) -Fix (r14712): passwords weren't reset when creating a new company. 2009-01-23 15:53:19 +00:00
truebrain
f293bff01b (svn r15066) -Change: start_date is now in days, instead of in months (Yexo) 2009-01-13 18:04:12 +00:00
truebrain
39cec4c65f (svn r15063) -Fix [NoAI]: starting companies now listen correctly to 'start_date' set to the AI slot (Yexo)
-Add [NoAI]: add a 'deviation' value for all settings, giving a slight deviation of the value of a setting (Yexo)
2009-01-13 16:53:03 +00:00
truebrain
ee17e1e7b8 (svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next 2009-01-13 14:00:26 +00:00
truebrain
8823f796ea (svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out) 2009-01-12 21:39:45 +00:00
truebrain
4c1e61997a (svn r15038) -Fix (r15027): loading older savegames failed 2009-01-12 19:31:00 +00:00
truebrain
c2406cd42d (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
2009-01-12 17:11:45 +00:00
smatz
91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 2009-01-04 15:32:25 +00:00
smatz
7869c4ba66 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 2009-01-03 18:44:20 +00:00
smatz
cd88a7590a (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 2009-01-03 17:11:52 +00:00
rubidium
ef20d229ab (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 2008-12-28 16:09:58 +00:00
rubidium
e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 2008-12-28 14:37:19 +00:00
rubidium
bf6ec8b19f (svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
2008-12-24 09:53:15 +00:00
rubidium
81f409e8e7 (svn r14733) -Fix (r14730): creating new companies didn't always work as expected. 2008-12-24 00:03:47 +00:00