------------------------------------------------------------------------ r1829 | truelight | 2005-02-06 18:41:15 +0000 (Sun, 06 Feb 2005) | 2 lines -Fix: fixed some compiler warnings (tnx to Tron for the Makefile-flag) ------------------------------------------------------------------------ r1828 | tron | 2005-02-06 18:38:42 +0000 (Sun, 06 Feb 2005) | 1 line New warning flag especially for truelight (:< ------------------------------------------------------------------------ r1827 | tron | 2005-02-06 18:30:45 +0000 (Sun, 06 Feb 2005) | 1 line Next iteration of the byte -> char transition: some string drawing functions and buffers ------------------------------------------------------------------------ r1826 | truelight | 2005-02-06 18:28:35 +0000 (Sun, 06 Feb 2005) | 8 lines -Feature: a brand new OldLoader so OpenTTD is TTD(Patch) compatible again.. kind of anyway. Still needs work for the extra chunks TTDPatch provides, and which we use too, but not in the same way.. - Also, no longer BE is a problem, reading is BE/LE safe. - Tnx to Bjarni for the BE testing, Tron for the help on the BE, Darkvater for helping out, and Mek for providing me with the correct information regarding TTDPatch savegames ------------------------------------------------------------------------ r1825 | tron | 2005-02-06 16:56:04 +0000 (Sun, 06 Feb 2005) | 6 lines Further style improvements: - uint16 -> StringID where appropriate - if cascades -> switch - remove redundant ifs - misc. stuff ------------------------------------------------------------------------ r1824 | truelight | 2005-02-06 15:07:29 +0000 (Sun, 06 Feb 2005) | 2 lines -Codechange: made ChangeIndustryProduction a bit more readable ------------------------------------------------------------------------ r1823 | tron | 2005-02-06 14:47:56 +0000 (Sun, 06 Feb 2005) | 1 line Get rid of some ugly cast magic concerning language packs ------------------------------------------------------------------------ r1822 | tron | 2005-02-06 14:27:50 +0000 (Sun, 06 Feb 2005) | 1 line Const correctness ------------------------------------------------------------------------ r1821 | tron | 2005-02-06 13:41:02 +0000 (Sun, 06 Feb 2005) | 1 line Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics ------------------------------------------------------------------------ r1820 | tron | 2005-02-06 11:23:41 +0000 (Sun, 06 Feb 2005) | 9 lines Style cleanup: - indentation - 0 -> '\0' in string handling - whitespaces - space after for, switch, etc. - don't treat non-boolean values as boolean - space before and after binary operators - bracing style ------------------------------------------------------------------------ r1819 | truelight | 2005-02-06 10:39:18 +0000 (Sun, 06 Feb 2005) | 2 lines -Codechange: removed 1 unused function, and 1 unused struct (tnx to Tron) ------------------------------------------------------------------------ r1818 | truelight | 2005-02-06 10:24:57 +0000 (Sun, 06 Feb 2005) | 2 lines -Add: Dynamic orders (up to 64k orders) ------------------------------------------------------------------------ r1817 | truelight | 2005-02-06 10:18:47 +0000 (Sun, 06 Feb 2005) | 6 lines -Codechange: Moved depot-functions to depot.c -Codechange: Added wrappers around depot-access (GetDepot no exists) -Codechange: Made depot-functions a bit more logic (no longer GetDepotByTile crashes your game when you request it on a non-depot tile) -Add: made depots dynamic (yes, 64k depots are possible now) ------------------------------------------------------------------------ r1816 | tron | 2005-02-06 09:52:06 +0000 (Sun, 06 Feb 2005) | 1 line Use char instead of byte for string formatting ------------------------------------------------------------------------ r1815 | tron | 2005-02-06 08:55:51 +0000 (Sun, 06 Feb 2005) | 1 line Remove some unused declarations ------------------------------------------------------------------------ r1814 | tron | 2005-02-06 08:38:09 +0000 (Sun, 06 Feb 2005) | 1 line Let ReadFileToMem() return void* (instead of byte*) because we don't know what the caller wants to do with the data ------------------------------------------------------------------------ r1813 | tron | 2005-02-06 08:18:00 +0000 (Sun, 06 Feb 2005) | 1 line Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c) ------------------------------------------------------------------------ r1812 | tron | 2005-02-06 07:49:41 +0000 (Sun, 06 Feb 2005) | 1 line [1117058] Use CT_WATER instead of CT_STEEL when accounting water which gets delivered to a town (worked because CT_STEEL and CT_WATER share the same enum number) ------------------------------------------------------------------------ r1811 | tron | 2005-02-05 23:07:35 +0000 (Sat, 05 Feb 2005) | 1 line Use char for string handling in namegen.[ch] ------------------------------------------------------------------------ r1810 | tron | 2005-02-05 23:03:12 +0000 (Sat, 05 Feb 2005) | 1 line Move town name generation declarations into a header of their own ------------------------------------------------------------------------ r1809 | tron | 2005-02-05 22:52:08 +0000 (Sat, 05 Feb 2005) | 1 line Remove unused function str_is_below() ------------------------------------------------------------------------ r1808 | tron | 2005-02-05 22:50:33 +0000 (Sat, 05 Feb 2005) | 1 line Use strcmp() instead of home brewed function str_eq() ------------------------------------------------------------------------ r1807 | miham | 2005-02-05 22:25:07 +0000 (Sat, 05 Feb 2005) | 1 line Langfile updates (20050205) ------------------------------------------------------------------------ r1806 | tron | 2005-02-05 21:57:01 +0000 (Sat, 05 Feb 2005) | 1 line Add missing includes (see r1803) ------------------------------------------------------------------------ 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 ------------------------------------------------------------------------