1
0
Fork 0

Commit Graph

  • 601b226f04 (svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and remove global variable to return data as we can now access this directly. peter1138 2006-02-13 22:13:02 +0000
  • caab27d88e (svn r3601) -Codechange: special for Tron, and he was absolutely correct in thisone: added a comment for last commit truelight 2006-02-13 22:11:03 +0000
  • e26dcdfa15 (svn r3600) -Fix: suppress error on 64bit targets truelight 2006-02-13 22:06:02 +0000
  • 604a1a9974 (svn r3599) -Fix: added some casts to suppress some more warnings truelight 2006-02-13 21:56:49 +0000
  • 0068f19605 (svn r3598) -Fix: suppress invalid warning by assigning value to variable truelight 2006-02-13 21:47:02 +0000
  • ea73b46684 (svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff tron 2006-02-13 21:15:00 +0000
  • 235e72829e (svn r3596) -Codechange: [OSX] changed to use Apple's macros instead of OTTD macros for endian conversion This increases the execution speed a lot since GCC can't detect the OTTD macro as an endian conversion while Apple's code uses the instruction to convert endian instead of a series of instructions to produce the same result bjarni 2006-02-12 14:31:33 +0000
  • 8cf72cdcab (svn r3595) Several small cleanups, the only notable are some additional symbolic names for a few ISO8859 characters tron 2006-02-12 10:44:52 +0000
  • 6d3d7cdf43 (svn r3594) - NewGRF: Add support for some vehicle specific properties and a give a debug message for unknown variables. peter1138 2006-02-12 10:35:51 +0000
  • 8cba0a1176 (svn r3593) Fix typo in r3591 peter1138 2006-02-11 21:41:49 +0000
  • 12bc4e8e32 (svn r3592) Miscellaneous smaller changes, most notably replacing sizeof(type) by sizeof(*variable) tron 2006-02-11 15:05:56 +0000
  • 843bd25b4e (svn r3591) - Fix: validate the setting of max_companies/spectators through the console. Darkvater 2006-02-11 14:10:28 +0000
  • a90142bb7c (svn r3590) Fix a bug where sizeof(struct) was allocated instead of sizeof(pointer to struct). This was non-fatal, because more memory than necessary got allocated tron 2006-02-11 11:43:06 +0000
  • efe76c22e6 (svn r3589) - Rename u.road.unk2 to u.road.blocked_ctr peter1138 2006-02-11 10:45:20 +0000
  • 6f5f3101b6 (svn r3588) - Refit: Use only one global to return the refit capacity rather than one per vehicle type. peter1138 2006-02-11 09:24:51 +0000
  • 1097ec2b62 (svn r3587) - NewGRF: Rename Callback IDs to include their "class" peter1138 2006-02-11 09:17:16 +0000
  • 67573ed605 (svn r3586) - NewGRF: Load callback masks for all vehicle types. peter1138 2006-02-11 07:34:05 +0000
  • f5b564bc44 (svn r3585) Similar changes to the order handlers of the other vehicle types like r3584 tron 2006-02-10 06:33:56 +0000
  • 784801f930 (svn r3584) Replace the rather obscure control flow for handling road vehicle orders by something remotly comprehensible tron 2006-02-10 06:03:51 +0000
  • 4f0ff156e8 (svn r3583) Fix 2 glitches in r3556 tron 2006-02-09 07:34:37 +0000
  • e407ced537 (svn r3582) Restructure MoveGoodsToStation() to avoid double bookkeeping of StationIDs and station pointers tron 2006-02-09 06:33:37 +0000
  • 8097d92162 (svn r3581) Just noticed the indentation was totally off, fix it tron 2006-02-09 06:24:53 +0000
  • c4f992bad9 (svn r3580) Some small cleanups before the real change, especially reduce the indentation by one by using continue tron 2006-02-09 06:15:12 +0000
  • f4215cf6a0 (svn r3579) v->u.rail.first_engine holds an engine type, not a vehicle index, so use INVALID_ENGINE. peter1138 2006-02-08 19:06:46 +0000
  • 2265915e6c (svn r3576) - Allow unused wagons have their ->first set. This fixes the faulty cache warning message, and noticably speeds up depot operations in large games. peter1138 2006-02-08 08:18:29 +0000
  • 0755e24ce4 (svn r3574) - [Merge] [GPMI] -Fix: finally OTTD doesn't compile if you do a 'make mrproper' (TrueLight) Darkvater 2006-02-07 19:34:22 +0000
  • 9dba135f79 (svn r3573) - Replace assert(0) with NOT_REACHED(). This commit sponsored by "giving Darkvater credit for the last three". peter1138 2006-02-07 19:11:51 +0000
  • 59333131a5 (svn r3572) - Rewrite GetFreeUnitNumber() so that only one loop of vehicles is required. Instead a list of used/unused numbers is created and the first unused number is chosen. This significantly improves performance in large games. peter1138 2006-02-07 19:01:01 +0000
  • 66fcdc5e6d (svn r3571) - When loading a game, call TrainConsistChanged() for each train head separately before updating images, as v->first is used extensively in GetTrainImage() for custom graphics. This gives a significant speed improvement on loading a game. peter1138 2006-02-07 18:57:16 +0000
  • fbd78c8185 (svn r3570) - Explicitly update v->first in TrainConsistChanged() if necessary, as this is far faster than brute forcing it later. peter1138 2006-02-07 18:55:06 +0000
  • 6c0aa3a110 (svn r3568) - Fix: constantizing side-effect of qsort in r3563. Ugly? Yes. Makes MSVC happy? Yes. Darkvater 2006-02-06 23:28:07 +0000
  • ebfe7f6000 (svn r3567) -Fix: for once and for all, use 'unsigned long' if you want to cast something from int-like to void *... we fixed that not too long ago, and the code below this changed line clearly tells you do to that :p truelight 2006-02-06 22:30:43 +0000
  • 431b09ab79 (svn r3565) - Fix: On loading a game, GetPlayerRailtypes() didn't account for the fact that vehicles are introduced a year after their introduction date. This will also relieve possible (rare) network desyncs. peter1138 2006-02-06 10:05:41 +0000
  • 453b30e387 (svn r3564) Several smaller changes: - Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements tron 2006-02-06 09:18:04 +0000
  • 0755bbead0 (svn r3563) Simplify the code for calculating the highscore table in network games and saving of old ecenomy data tron 2006-02-06 08:43:05 +0000
  • 89916f533b (svn r3562) Remove pointless buffer copies tron 2006-02-06 08:28:31 +0000
  • 96c81610d1 (svn r3561) Don't use FindLandscapeHeightByTile() when it's overkill. Also use a sprite enum instead of a magic number. tron 2006-02-06 08:15:30 +0000
  • f7382ac78a (svn r3560) Restore plural forms of cargo types for several languages. I extracted the info from 2614:2615. If you speak one of the languages, please check if the changes are correct. tron 2006-02-06 07:38:05 +0000
  • 7f1cda519c (svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations. Darkvater 2006-02-05 23:12:23 +0000
  • f80bf7fa68 (svn r3558) Add newgrf_callbacks.h to VS project files peter1138 2006-02-05 20:36:36 +0000
  • ab771e4ff0 (svn r3557) - NewGRF: move callback enums to a new file as more than just engines will use them peter1138 2006-02-05 19:46:20 +0000
  • 208a4b4944 (svn r3556) Add accessors for handling tree tiles See tree.h for details tron 2006-02-05 14:47:15 +0000
  • a7273d95b8 (svn r3555) -Codechange: [Big Endian] removed defining OTTD_ALIGNMENT by default on Big Endian CPUs this increased speed when reading unaligned data (like strings) test showed this to increase speed by 5,6% when drawing the mini map on PPC OSX bjarni 2006-02-05 14:18:28 +0000
  • 6132fcea44 (svn r3554) Add accessors for the field type and fences of clear tiles tron 2006-02-05 11:54:25 +0000
  • 02c4e63fac (svn r3553) - Revert r3549 "Change the behaviour of OTTD_ALIGNMENT". Some tests showed that forcing aligned reads slowed down the code (drawing smallmap) by 14%. Change back to the old behaviour. Darkvater 2006-02-05 11:10:31 +0000
  • 867e1acf08 (svn r3552) Remove the global variable _mixer tron 2006-02-05 09:56:04 +0000
  • cf414c1864 (svn r3551) Add directives to allow Visual Studio 2005 compilation. peter1138 2006-02-05 09:28:06 +0000
  • 7ffdde104f (svn r3550) - [Patches]: fix GCC warning, sorry Darkvater 2006-02-04 23:09:33 +0000
  • a9211aebf7 (svn r3549) - Change the behaviour of OTTD_ALIGNMENT. Force aligned reading as default, undefine it if unwanted/unneeded for some reason. I undeffed windows and watcom for now as they were like this. Darkvater 2006-02-04 23:03:35 +0000
  • 64f14ed992 (svn r3548) - [Patches]: rework two loops in make_oneofmany() and make_manyofmany() Darkvater 2006-02-04 22:52:30 +0000
  • 2dc3d8ac2c (svn r3547) - [Patches]: do some general cleanup, commentarization before starting actual work. This patch contains no functional changes (I hope). It might break GPMI-builds though when trying to join a trunk/ network game or vice versa. To solve, you can change the order of the first 8 enums in SettingDescType. I think that'll work. Darkvater 2006-02-04 22:48:57 +0000
  • 500a7e6627 (svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list) peter1138 2006-02-04 21:48:46 +0000
  • 78b51cbec2 (svn r3535) -Feature: [autoreplace] allow autoreplacing of train wagons currently ALL available wagons are displayed in the right menu in the replace window however the replacement will only be done if the new wagon can be refitted to carry same cargo as the old one is currently carrying bjarni 2006-02-04 18:25:07 +0000
  • 94dfa09424 (svn r3534) - Codechange: remove unused savedump patch-settings. Darkvater 2006-02-04 15:28:30 +0000
  • b36f89bc51 (svn r3532) Revert r3467, was total nonesense, my fault tron 2006-02-04 11:53:31 +0000
  • 05d7d046c7 (svn r3530) - NewGRF: Move station resolver to newgrf_station peter1138 2006-02-03 23:02:01 +0000
  • c5a669b39f (svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (thanks Tron for the help) Darkvater 2006-02-03 21:51:42 +0000
  • 6dd2affaad (svn r3528) - Feature: Allow sorting of vehicle lists by model or value (based on meush's work) peter1138 2006-02-03 18:32:59 +0000
  • 0a1a37c8db (svn r3527) - Codechange: merge change from branch/0.4.5/. It should be other way, but ok :S Darkvater 2006-02-03 17:31:24 +0000
  • 8353c1260a (svn r3526) - Codechange: Add additional linker information to release builds to help figure out crashes more easily Darkvater 2006-02-03 17:24:37 +0000
  • ea4c5bbd2d (svn r3525) - Rename station_newgrf.[ch] to newgrf_station.[ch], and update project files. peter1138 2006-02-03 15:51:00 +0000
  • b88904f345 (svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files. peter1138 2006-02-03 12:55:21 +0000
  • 6823be9d03 (svn r3523) Undefine helper macros after using them peter1138 2006-02-03 07:45:58 +0000
  • 78c2b9a056 (svn r3522) - Wrap the vehicle info tables with a macro to simplify adding new fields in the future. peter1138 2006-02-03 07:42:49 +0000
  • fc5a00d066 (svn r3521) - Feature: Allow trains details view to be resized. peter1138 2006-02-02 08:03:10 +0000
  • b844aa2db3 (svn r3520) Remove unused parameters from some functions tron 2006-02-02 07:15:46 +0000
  • 8de919ce50 (svn r3519) - [0.4.5-Branch] backport changes from abused tags/ (nothing important) Darkvater 2006-02-01 22:02:47 +0000
  • f9cacc9f5c (svn r3518) - Add proper revision numbers for bugfixing branch Darkvater 2006-02-01 21:53:12 +0000
  • af3ac4954a (svn r3517) - Branch: added branch for stable 0.4.5 Darkvater 2006-02-01 21:47:10 +0000
  • 21fb5b5150 (svn r3516) Fix embarrassing bug in r3514 tron 2006-02-01 19:53:17 +0000
  • 272a27b795 (svn r3515) Fix copy&pasto in r3514 tron 2006-02-01 16:17:08 +0000
  • ac4f4e30d5 (svn r3514) -Codechange: Replace direct fiddling of bits for the ground type and density of clear tiles with symbolic names and accessors. See clear.h for details tron 2006-02-01 15:31:21 +0000
  • 2b98509692 (svn r3513) Fix strange typo in last commit ... peter1138 2006-02-01 09:11:31 +0000
  • 80952253c2 (svn r3512) Yet more whitespace fixes (mostly by Rubidium) peter1138 2006-02-01 09:08:25 +0000
  • 84fb96fe85 (svn r3511) More whitespace ([FS#46] by Rubidium) tron 2006-02-01 07:36:15 +0000
  • 22dc05faf2 (svn r3510) Fiddle with whitespace and parentheses tron 2006-02-01 06:32:03 +0000
  • 8cdd3261fc (svn r3509) Now -p is really gone (fix r3508) tron 2006-02-01 06:12:02 +0000
  • 6c1db94a7d (svn r3508) Completly remove the deprecated -p parameter (is superseded by -n) tron 2006-02-01 06:09:37 +0000
  • d22e2d12cf (svn r3507) - Fix: [Makefile] Make sure the ICON_DIR gets created before copying files there. - Fix: Fix small syntactic error in the manpage. matthijs 2006-02-01 01:36:18 +0000
  • 77a1900374 (svn r3506) - Sync HEAD and 0.4.5. Should be properly ready now for a release. 0.4.5 Darkvater 2006-01-31 23:41:35 +0000
  • 0993ff118c (svn r3505) - Update known-bugs and delete scenarios from SVN. Darkvater 2006-01-31 23:38:58 +0000
  • 6fc3080fc3 (svn r3504) - Set release version on the executable for VS2003,VS6 and makefile. Darkvater 2006-01-31 23:02:16 +0000
  • 1f2714ca79 (svn r3503) Release 0.4.5 Darkvater 2006-01-31 22:27:24 +0000
  • 024db8d058 (svn r3502) - Update appropiate files with release information for 0.4.5 Darkvater 2006-01-31 22:26:00 +0000
  • 896551850a (svn r3501) - Load the lobby-window with up-to-date data upon opening Darkvater 2006-01-31 22:24:02 +0000
  • f2448ebfd4 (svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking. Darkvater 2006-01-31 22:16:15 +0000
  • 9d07426a29 (svn r3499) - Fix: a few gui glitches in the network window: 1. disable widgets also when the active companies/spectators is bigger than the max. This can happen if the server has changed the settings. 2. updated scroll-count in the lobby as the window is higher. Darkvater 2006-01-31 20:05:44 +0000
  • 4e2bb34be3 (svn r3498) Fix the edge case for r3419/r3488: when a vehicle just enters a tile, the height difference can be 8 tron 2006-01-31 19:06:02 +0000
  • 0f535026cf (svn r3497) - Update some more language files (thanks ln- (finnish), egladil (swedish)) Darkvater 2006-01-31 18:31:05 +0000
  • 9fd6b1009e (svn r3496) - Validate filename titles before they get displayed. This avoids crashes with UTF-8 encoded or bad filenames by replacing undisplayable characters with a '?' peter1138 2006-01-31 12:08:49 +0000
  • 822afdcecd (svn r3495) Rename the string handles for cargo names with a quantity and abbreviated cargo names to something sensible, i.e. STR_QUANTITY_$NAME and STR_ABBREV_$NAME tron 2006-01-31 06:53:32 +0000
  • 58f5dbd365 (svn r3494) - Update several languages. Thanks all translators online atm (Bjarni, glx, MeusH, Tron, me, my sister) - Remove the most blatant of untranslated or wrongly-outdated strings. Darkvater 2006-01-30 22:36:35 +0000
  • a092ee463f (svn r3493) -docs: [OSX] forgot to add Cocoa drivers and universal binaries as supported (thanks to Tobin for noticing) bjarni 2006-01-30 19:31:02 +0000
  • e2df07ec05 (svn r3492) -docs: [OSX] Updated readme regarding compiling universal binaries bjarni 2006-01-30 19:17:48 +0000
  • e2dda7bce6 (svn r3491) - NewGRF Fix: Handle loading of rail vehicle flags (unimplemented) peter1138 2006-01-30 18:42:46 +0000
  • 5e1e902600 (svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a TileIndex points to a tile on the map tron 2006-01-30 17:18:45 +0000
  • c8dd64bdbc (svn r3489) Remove an unused declaration tron 2006-01-30 16:58:05 +0000
  • 7d03773383 (svn r3488) Simplify the check in r3419 tron 2006-01-30 16:57:47 +0000
  • 2f668b8669 (svn r3487) -Fix: Price for demolishing a bridge was dependent on orientation and map size tron 2006-01-30 16:48:24 +0000
  • 876813cd9d (svn r3486) - NewGRF fix: Always reinitialize the ttdpatch flags as patch settings may have changed. peter1138 2006-01-30 14:50:55 +0000