Commit Graph

50 Commits (04723b240ebc7384954f73590be517ad2a47ce04)

Author SHA1 Message Date
rubidium 9f4d64bda0 (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. 15 years ago
smatz 8808f3beea (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz ed1e54bd84 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
yexo c299a38e1f (svn r16316) -Fix (r16287,before): Set the autorenew settings for new AI companies to the default values, not to 0 or the local settings 15 years ago
yexo 31eff1d4c3 (svn r16315) -Codechange: move the autorenew settings to a new CompanySettings struct 15 years ago
yexo 67723e42aa (svn r16292) -Fix (r16287): autorenew settings were set to 0 when creating a new company in multiplayer 15 years ago
yexo 90ba8e1bc8 (svn r16287) -Fix: fix possible (in theory) desync related to autorenew settings 15 years ago
rubidium 59d45a04d6 (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. 15 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
smatz 40745dc0d9 (svn r15704) -Cleanup: remove further includes from recently split files 16 years ago
yexo fb7b0536e7 (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. 16 years ago
rubidium d846eef0b6 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 9907742a0f (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 16 years ago
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
rubidium ac7757324e (svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 416c7d5dda (svn r15298) -Fix [FS#2588]: don't start another AI company in MP when there are too many companies 16 years ago
glx 7d45e8b376 (svn r15282) -Fix: it was possible to start more than MAX_COMPANIES companies 16 years ago
smatz 9cf1a19762 (svn r15281) -Fix: company could never have auto-assigned colour 0 (dark blue) 16 years ago
smatz 3ac080425a (svn r15279) -Fix: deadlock (with wide fonts) or desync when generating manager name 16 years ago
smatz dbc4a8b331 (svn r15257) -Cleanup: remove Company::is_noai, it is not needed anymore 16 years ago
rubidium 04709f2798 (svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral) 16 years ago
rubidium 93b1202576 (svn r15229) -Fix (r14712): passwords weren't reset when creating a new company. 16 years ago
truebrain e1f64922c5 (svn r15066) -Change: start_date is now in days, instead of in months (Yexo) 16 years ago
truebrain 890074a03e (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)
16 years ago
truebrain c3249d599f (svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next 16 years ago
truebrain 1c3b7ba863 (svn r15041) -Fix (r15038): use the ctor auto thing how it is meant to be used (tnx to SmatZ for pointing that out) 16 years ago
truebrain 2c89bfbc81 (svn r15038) -Fix (r15027): loading older savegames failed 16 years ago
truebrain a3dd7506d3 (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
16 years ago
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
smatz 09cd9a8017 (svn r14815) -Codechange: separate 'highscore' code from 'company' code 16 years ago
smatz afef22e3e7 (svn r14812) -Codechange: use INVALID_TILE instead of 0 to mark company without HQ 16 years ago
rubidium 683b65ee18 (svn r14755) -Codechange: remove ending year as it can't be changed anyways. 16 years ago
rubidium 87e5a8b52b (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
rubidium d1bb5e5f36 (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.
16 years ago
rubidium 4a1f4144eb (svn r14733) -Fix (r14730): creating new companies didn't always work as expected. 16 years ago
rubidium fb7ccc6820 (svn r14726) -Fix (r14720): making new companies in network kinda failed... 16 years ago
rubidium f8f7febe41 (svn r14725) -Change: make it clearer why (and that) MAX_CLIENTS isn't the amount of slots in the array, but one less as a dedicated server takes a slot too. 16 years ago
rubidium 9476a49763 (svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies. 16 years ago
rubidium 94e7f41a9d (svn r14718) -Change: remove some direct network core variable accesses from non-network locations. 16 years ago
rubidium abc903d625 (svn r14712) -Codechange: split server and client side w.r.t. the storage of network related company information. 16 years ago
rubidium 782b80eff7 (svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays. 16 years ago
rubidium 272b2ef0e9 (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) 16 years ago
smatz 1906aa2bbb (svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker) 16 years ago
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago