------------------------------------------------------------------------ r1805 | tron | 2005-02-05 18:05:42 +0000 (Sat, 05 Feb 2005) | 1 line Teach the driver layer a few things about const correctness ------------------------------------------------------------------------ r1804 | tron | 2005-02-05 16:12:07 +0000 (Sat, 05 Feb 2005) | 1 line Bring MSVC project files up to date (bociusz) ------------------------------------------------------------------------ r1803 | tron | 2005-02-05 15:58:59 +0000 (Sat, 05 Feb 2005) | 1 line Move debugging stuff into files of it's own ------------------------------------------------------------------------ r1802 | tron | 2005-02-05 15:49:57 +0000 (Sat, 05 Feb 2005) | 1 line Fix typos made in r1797 ------------------------------------------------------------------------ r1801 | celestar | 2005-02-05 15:05:52 +0000 (Sat, 05 Feb 2005) | 1 line -Fix [Multistop] Fixed a crash that occured when copying orders due to not checking a pointer to be non-NULL ------------------------------------------------------------------------ r1800 | tron | 2005-02-05 14:18:25 +0000 (Sat, 05 Feb 2005) | 1 line Make adding new debug categories to the command line parser easier ------------------------------------------------------------------------ r1799 | celestar | 2005-02-05 12:10:09 +0000 (Sat, 05 Feb 2005) | 3 lines -Codechange: [ Multistop ] Added debug class "ms" and more debugging output for multistops ------------------------------------------------------------------------ r1798 | tron | 2005-02-04 20:40:04 +0000 (Fri, 04 Feb 2005) | 1 line GetFoo(i)->index is per definition i, so replace the former with the latter ------------------------------------------------------------------------ r1797 | tron | 2005-02-04 20:17:15 +0000 (Fri, 04 Feb 2005) | 6 lines Clean up TileLoopClearHelper() a bit: - if cascades -> switch - uint -> TileIndex - (uint)-1 -> INVALID_TILE - don't treat non-flags as flags ------------------------------------------------------------------------ r1796 | tron | 2005-02-04 19:53:53 +0000 (Fri, 04 Feb 2005) | 1 line Revert r1792, because MorphOS has defaults for CC/CXX, they're just wrong, so setting CC/CXX using ?= simply did nothing ------------------------------------------------------------------------ r1795 | tron | 2005-02-04 19:51:43 +0000 (Fri, 04 Feb 2005) | 1 line Change CFLAGS for MorphOS (tokai) ------------------------------------------------------------------------ r1794 | tron | 2005-02-04 19:38:04 +0000 (Fri, 04 Feb 2005) | 1 line Make the dedicated server compile again under MorphOS (tokai) ------------------------------------------------------------------------ r1793 | tron | 2005-02-04 17:57:07 +0000 (Fri, 04 Feb 2005) | 1 line Revert one instance of $(shell) back to ``, because MorphOS does The Wrong Thing(tm) when date is used within $(shell) ------------------------------------------------------------------------ r1792 | tron | 2005-02-04 17:45:11 +0000 (Fri, 04 Feb 2005) | 3 lines Revert r1761 and set fallback values via ?= for CC and CXX as there seem to be platforms (MorphOS) out there which don't provide some proper defaults. Use gcc and g++ as defaults, because cc and c++ aren't available either. *sigh* ------------------------------------------------------------------------ r1791 | tron | 2005-02-04 17:14:36 +0000 (Fri, 04 Feb 2005) | 1 line Remove the remnants of CMD_DESTROY_INDUSTRY, which was removed a long time ago ------------------------------------------------------------------------ r1790 | tron | 2005-02-04 16:50:18 +0000 (Fri, 04 Feb 2005) | 5 lines Make CmdPlantTree() and related functions more safe and (hopefully) more readable: - check if end tile is on the map - uint -> TileIndex - if cascades -> switch ------------------------------------------------------------------------ r1789 | truelight | 2005-02-04 15:39:10 +0000 (Fri, 04 Feb 2005) | 2 lines -Fix: there is no need to save the index, it is done for us ------------------------------------------------------------------------ r1788 | truelight | 2005-02-04 15:31:30 +0000 (Fri, 04 Feb 2005) | 2 lines -Add: Made RoadStops dynamic. You can now create up to 64k roadstops. ------------------------------------------------------------------------ r1787 | truelight | 2005-02-04 14:45:32 +0000 (Fri, 04 Feb 2005) | 2 lines -Add: Dynamic signs (euh.. yeah, this means you can built 64k signs) ------------------------------------------------------------------------ r1786 | truelight | 2005-02-04 14:24:23 +0000 (Fri, 04 Feb 2005) | 9 lines -Fix: unitnumber is increased to 16bit, so now you can have up to 5000 trains in one game (instead of the 240 which was the current value). Default max allowed vehicles per type is changed: Trains: 500 (old 80) Road: 500 (old 80) Ships: 200 (old 40) Aicraft: 300 (old 50) (Tnx to Celestar and Darkvater for checking the patch) ------------------------------------------------------------------------ r1785 | truelight | 2005-02-04 14:05:28 +0000 (Fri, 04 Feb 2005) | 3 lines -Fix: space-correctness in road_cmd.c, and one wrong line from last commit (tnx to DarkVater) ------------------------------------------------------------------------ r1784 | truelight | 2005-02-04 13:56:51 +0000 (Fri, 04 Feb 2005) | 3 lines -Fix: removed ClosestTownFromTile where possible, or replaced it with _map2-data if possible (Celestar / TrueLight) ------------------------------------------------------------------------ r1783 | truelight | 2005-02-04 13:23:29 +0000 (Fri, 04 Feb 2005) | 2 lines -Add: Dynamic vehicles (now up to 64k of vehicles) ------------------------------------------------------------------------ r1782 | tron | 2005-02-04 07:52:12 +0000 (Fri, 04 Feb 2005) | 1 line Remove line which should've been removed in r1779 and caused map generation to hang infinitely ------------------------------------------------------------------------ r1781 | tron | 2005-02-03 22:09:19 +0000 (Thu, 03 Feb 2005) | 1 line Fix static declaration after non-static declaration of same symbol ------------------------------------------------------------------------ r1780 | tron | 2005-02-03 21:18:49 +0000 (Thu, 03 Feb 2005) | 1 line Don't clear LIBS and LDFLAGS ------------------------------------------------------------------------ r1779 | tron | 2005-02-03 20:52:12 +0000 (Thu, 03 Feb 2005) | 1 line Make the map generation code slightly more readable ------------------------------------------------------------------------ r1778 | matthijs | 2005-02-03 19:23:06 +0000 (Thu, 03 Feb 2005) | 2 lines - Fix: [ 1115200 ] In the main menu, when starting a new game while the load game dialog is open, openttd asserts. ------------------------------------------------------------------------ r1777 | tron | 2005-02-03 18:20:43 +0000 (Thu, 03 Feb 2005) | 1 line Fix map generation for tropical and arctic landscape on larger/smaller maps ------------------------------------------------------------------------ r1776 | truelight | 2005-02-03 17:22:35 +0000 (Thu, 03 Feb 2005) | 2 lines -Add: Dynamic stations. You can now have up to 64k of stations ------------------------------------------------------------------------ r1775 | truelight | 2005-02-02 20:36:04 +0000 (Wed, 02 Feb 2005) | 5 lines -Fix: The NPF patch setting was not synced in network. REMINDER FOR ALL DEVELOPERS: We do have 2 patch-setting-arrays: player-based, server-based. PLEASE put your new patch setting in the right one... thank you :) ------------------------------------------------------------------------ r1774 | truelight | 2005-02-02 19:15:35 +0000 (Wed, 02 Feb 2005) | 2 lines -Fix: fixed an other possible crash related to previous commit ------------------------------------------------------------------------ r1773 | truelight | 2005-02-02 19:08:34 +0000 (Wed, 02 Feb 2005) | 3 lines -Fix: [ 1114950 ] Game crashed sometimes when there were no industries in the map ------------------------------------------------------------------------ r1772 | truelight | 2005-02-02 18:28:08 +0000 (Wed, 02 Feb 2005) | 2 lines -Fix: [ 1114100 ] Dedicated server boots again ------------------------------------------------------------------------ r1771 | truelight | 2005-02-02 17:30:29 +0000 (Wed, 02 Feb 2005) | 3 lines -Add: Industries are now dynamic (up to 64k industries). Generating 1kx1k maps should now be much faster, and give more than just oil-stuff ;) ------------------------------------------------------------------------ r1770 | truelight | 2005-02-02 16:16:43 +0000 (Wed, 02 Feb 2005) | 3 lines -Fix: Hopefully last pieces of code that are containing a station-id (and should be an uint16, not uint8) ------------------------------------------------------------------------ r1769 | tron | 2005-02-02 15:45:53 +0000 (Wed, 02 Feb 2005) | 1 line Don't compute the same value twice, remove one function call ------------------------------------------------------------------------ r1768 | celestar | 2005-02-02 14:17:13 +0000 (Wed, 02 Feb 2005) | 7 lines -Codechange: Store town index in _map2 of town tiles Moved house type from _map2 to _map3_hi for MP_HOUSE Moved foundation and roadworks from _map2 to _map3 for MP_STREET This increases game speed by a factor of around 15(!) if many cities are around. Converting an old game is done automagically, but can take a while ------------------------------------------------------------------------ r1767 | bjarni | 2005-02-01 22:17:38 +0000 (Tue, 01 Feb 2005) | 1 line fixed mixed declarations and code in last commit (oops) ------------------------------------------------------------------------ r1766 | bjarni | 2005-02-01 22:04:53 +0000 (Tue, 01 Feb 2005) | 4 lines - Feature: Aircrafts will now go to the nearest hangar if the next airport in the orders do not have one (helipads) - Fix: sometimes aircrafts would not go to the hangar even when they should. They do now ------------------------------------------------------------------------ r1765 | truelight | 2005-02-01 18:46:49 +0000 (Tue, 01 Feb 2005) | 2 lines -Fix: on loading, the total amount of towns wasn't reset to zero ------------------------------------------------------------------------ r1764 | truelight | 2005-02-01 18:32:01 +0000 (Tue, 01 Feb 2005) | 3 lines -Add: dynamic towns, you can now have up to 64k towns (let me know when you have that amount of towns in a map ;)) ------------------------------------------------------------------------ r1763 | truelight | 2005-02-01 18:30:11 +0000 (Tue, 01 Feb 2005) | 2 lines -Add: pool.c / pool.h: generalized routines for dynamic arrays (MemoryPools) ------------------------------------------------------------------------ r1762 | truelight | 2005-02-01 17:48:20 +0000 (Tue, 01 Feb 2005) | 3 lines -Codechange: renamed 'MemoryPool' to 'SettingsMemoryPool' (we need MemoryPool for general-dynamic-arrays) ------------------------------------------------------------------------ r1761 | tron | 2005-02-01 16:57:16 +0000 (Tue, 01 Feb 2005) | 3 lines Don't set CC and CXX If somebody tried to use alternate compilers via an environment variable the assignment in the Makefile simply overwrote that. ------------------------------------------------------------------------ r1760 | celestar | 2005-02-01 09:47:18 +0000 (Tue, 01 Feb 2005) | 1 line -Fix: [ 1113399 ] Game no longer crashes when right-clicking a disabled Full Load button ------------------------------------------------------------------------ r1759 | miham | 2005-02-01 09:36:07 +0000 (Tue, 01 Feb 2005) | 1 line Daily/Weekly/Monthly langfile updates ------------------------------------------------------------------------ r1758 | tron | 2005-02-01 05:28:18 +0000 (Tue, 01 Feb 2005) | 1 line Replace `` with $(shell), because the latter is only evaluated once instead of over and over again ------------------------------------------------------------------------ r1757 | tron | 2005-01-31 22:17:15 +0000 (Mon, 31 Jan 2005) | 1 line Stop the new AI from trying to build its HQ on non-existent tiles ------------------------------------------------------------------------ r1756 | tron | 2005-01-31 21:57:05 +0000 (Mon, 31 Jan 2005) | 1 line Cleanup: if cascade -> switch, uint -> TileIndex ------------------------------------------------------------------------ r1755 | tron | 2005-01-31 19:22:44 +0000 (Mon, 31 Jan 2005) | 1 line Trim trailing whitespace ------------------------------------------------------------------------ r1754 | darkvater | 2005-01-31 12:04:40 +0000 (Mon, 31 Jan 2005) | 1 line - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double. ------------------------------------------------------------------------ r1753 | darkvater | 2005-01-31 11:36:16 +0000 (Mon, 31 Jan 2005) | 1 line - Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now disabled. ------------------------------------------------------------------------ r1752 | darkvater | 2005-01-31 11:33:21 +0000 (Mon, 31 Jan 2005) | 1 line - Fix: MSVC acting up once again, as well as project file updates for the missing files. ------------------------------------------------------------------------ r1751 | matthijs | 2005-01-31 11:23:10 +0000 (Mon, 31 Jan 2005) | 20 lines - Feature: New PathFinder (NPF). - Supports trains, road vehicles and ships. - Uses A* pathfinding (same codebase as the new ai). - Currently unlimited search depth, so might perform badly on large maps/networks (especially ships). - Will always find a route if there is one. - Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values). - With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again. - Feature: Disabling 90 degree turns for trains and ships. - Requires NPF to be enabled. - Ships and trains can no longer make weird 90 degree turns on tile borders. - Codechange: Removed table/directions.h. - table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location? - Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault. - Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64. - Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED. - Codechange: Moved TileAddWrap() to map.[ch] - Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). - Codechange: Moved IsTrainStationTile() to station.h - Add: IsRoadStationTile() and GetRoadStationDir(). ------------------------------------------------------------------------ r1750 | darkvater | 2005-01-31 11:03:23 +0000 (Mon, 31 Jan 2005) | 1 line - Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type (bociusz) ------------------------------------------------------------------------ r1749 | tron | 2005-01-31 07:23:15 +0000 (Mon, 31 Jan 2005) | 1 line Move the functions which calculate distances to map.[ch] and give the more meaningful names ------------------------------------------------------------------------ r1748 | tron | 2005-01-31 06:46:53 +0000 (Mon, 31 Jan 2005) | 1 line Enforce map size limits ------------------------------------------------------------------------ r1747 | darkvater | 2005-01-31 00:12:44 +0000 (Mon, 31 Jan 2005) | 2 lines - Fix: [network] ottd should compile when networking is disabled. - Change: change strgen project file to get rid of warning. ------------------------------------------------------------------------ r1746 | darkvater | 2005-01-30 23:41:57 +0000 (Sun, 30 Jan 2005) | 1 line - Feature: [GUI] [ 1107690 ] Resizable orders GUI (nzhook) ------------------------------------------------------------------------ r1745 | tron | 2005-01-30 23:04:41 +0000 (Sun, 30 Jan 2005) | 1 line Use -fno-inline when DEBUGing ------------------------------------------------------------------------ r1744 | tron | 2005-01-30 23:03:31 +0000 (Sun, 30 Jan 2005) | 2 lines DEBUG and PROFILE can be used at the same time. ------------------------------------------------------------------------ r1743 | celestar | 2005-01-30 22:04:14 +0000 (Sun, 30 Jan 2005) | 1 line -Fix: Multistop: Added some debug output and made sure that orphaned slots are cleared. ------------------------------------------------------------------------ r1742 | bjarni | 2005-01-30 21:06:09 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: fixed bug introduced in r1730 where AI players had problems when building aircrafts ------------------------------------------------------------------------ r1741 | bjarni | 2005-01-30 20:50:06 +0000 (Sun, 30 Jan 2005) | 7 lines - Fix: added IsVehicleIndex() so it's possible to protect GetVehicle() from reading an invalid vehicle index - Fix: added check for v->type in some commands, which expects v to be a specific type Checks like this is needed to protect network servers from people, who hack their clients to either cheat or crash the server NOTE: if I made a mistake here it can make a function unreachable when it should be used. Here is one place to look if something weird happens ------------------------------------------------------------------------ r1740 | celestar | 2005-01-30 19:51:39 +0000 (Sun, 30 Jan 2005) | 1 line -Fix: [ 1112342 ] Realistic acceleration works properly with TTDPatch non-stop handling behaviour ------------------------------------------------------------------------ r1739 | darkvater | 2005-01-30 18:51:08 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: type checking when selling vehicles (TrueLight) ------------------------------------------------------------------------ r1738 | celestar | 2005-01-30 18:40:52 +0000 (Sun, 30 Jan 2005) | 1 line -Fix: [ 1108735 ] Fixed (hopefully) an assertion that was cause by selling carriages in a MP game faster than the network can handle. (Truelight) ------------------------------------------------------------------------ r1737 | tron | 2005-01-30 18:12:37 +0000 (Sun, 30 Jan 2005) | 1 line Add DEBUG category "map" and use it to print the map size when allocating the map ------------------------------------------------------------------------ r1736 | celestar | 2005-01-30 17:53:44 +0000 (Sun, 30 Jan 2005) | 1 line -Fix: Forgot to remove some unused variables in last commit :( ------------------------------------------------------------------------ r1735 | celestar | 2005-01-30 17:46:57 +0000 (Sun, 30 Jan 2005) | 5 lines -Fix: [ 1112285 ] Fixed an assertion error with stations where stops were deleted, the assertions were just plain wrong at that place. Used a more graceful handling. Todo: What happens if ALL stations in a schedule have no suitable stop? ------------------------------------------------------------------------ r1734 | darkvater | 2005-01-30 16:54:39 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik) ------------------------------------------------------------------------ r1733 | darkvater | 2005-01-30 16:08:19 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: oops "| 1" is SETBIT(x, 0), not 1 :(. Now you can remove signals again ------------------------------------------------------------------------ r1732 | darkvater | 2005-01-30 16:00:37 +0000 (Sun, 30 Jan 2005) | 1 line - Change: [OS/2] [ 1112148 ] Project file update (orudge) ------------------------------------------------------------------------ r1731 | darkvater | 2005-01-30 15:57:38 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: [ 1106930 ] BugFix: placing signals with 2x1 drags workaround is completely rewritten. Also features checks for hacked/modified clients. Thanks a lot Hackykid! ------------------------------------------------------------------------ r1730 | bjarni | 2005-01-30 14:52:04 +0000 (Sun, 30 Jan 2005) | 2 lines - Fix: Ships and Aircrafts have to be build in depots owned by _current_player (hacked client protection) now all 4 types of vehicles have to be build in depots. Note: there is a wordaround for AI players since the AI handle aircraft building in a weird way ------------------------------------------------------------------------ r1729 | darkvater | 2005-01-30 14:32:52 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: [ 1112469 ] Clearing land for free by reallocating HQ ------------------------------------------------------------------------ r1728 | bjarni | 2005-01-30 13:42:11 +0000 (Sun, 30 Jan 2005) | 1 line - Fix: now a player can only build a road vehicle in depots he owns (hacked client protection) ------------------------------------------------------------------------ r1727 | bjarni | 2005-01-30 13:03:32 +0000 (Sun, 30 Jan 2005) | 2 lines - Fix: now CmdBuildRailVehicle() behaves correctly if DC_EXEC is set this commit alters ai.c a little to get rid of the workaround from r1725 so AI players could still build locomotives ------------------------------------------------------------------------ r1726 | tron | 2005-01-30 08:25:39 +0000 (Sun, 30 Jan 2005) | 1 line Move an assert() because it could not catch all cases of incorrect input where it was placed ------------------------------------------------------------------------ r1725 | bjarni | 2005-01-29 23:58:07 +0000 (Sat, 29 Jan 2005) | 1 line - Fix: now trains can only be built in depots and you have to own the depot too (hacked client protection) ------------------------------------------------------------------------ r1724 | tron | 2005-01-29 20:18:01 +0000 (Sat, 29 Jan 2005) | 1 line Set maximum number of industries and towns to 250 each ------------------------------------------------------------------------ r1723 | tron | 2005-01-29 20:11:19 +0000 (Sat, 29 Jan 2005) | 1 line Save the map size in tiles, not number of bits ------------------------------------------------------------------------ r1722 | tron | 2005-01-29 19:45:14 +0000 (Sat, 29 Jan 2005) | 1 line -Feature: Bigger maps - anyone? ------------------------------------------------------------------------ r1721 | celestar | 2005-01-29 19:41:44 +0000 (Sat, 29 Jan 2005) | 5 lines -Feature: It is now possible to build multiple road stations (up to 8) on a single station. Thanks to: Truelight for the saveload code, Darkvater and Hackykid for network testing and Tron for proof-reading 1500 lines of diff. ------------------------------------------------------------------------