------------------------------------------------------------------------ r4451 | miham | 2006-04-16 17:48:40 +0000 (Sun, 16 Apr 2006) | 4 lines WebTranslator2 daily commit [dutch] 49 strings fixed by Zr40 [polish] 152 strings fixed by MeusH ------------------------------------------------------------------------ r4450 | peter1138 | 2006-04-16 17:29:37 +0000 (Sun, 16 Apr 2006) | 2 lines - NewStations, rename *CustomStationSprite() to *CustomStationSpecIndex() to reflect their use, and alter the test for determining if a station has customised graphics. ------------------------------------------------------------------------ r4449 | peter1138 | 2006-04-16 17:05:45 +0000 (Sun, 16 Apr 2006) | 3 lines - NewStations, remove parameter to use first custom station when building a railway station. The parameters will be changing. ------------------------------------------------------------------------ r4447 | Darkvater | 2006-04-16 11:33:26 +0000 (Sun, 16 Apr 2006) | 1 line - NewGRF: It seems I committed printing action NOP Action 0x0C which is mainly used for comments. So leave it in, but fix the created warning. Use proper action name for check_length() in Action 0x10 ------------------------------------------------------------------------ r4446 | peter1138 | 2006-04-16 11:26:23 +0000 (Sun, 16 Apr 2006) | 2 lines - Add function to determine if a Sprite ID exists. ------------------------------------------------------------------------ r4445 | bjarni | 2006-04-16 10:26:46 +0000 (Sun, 16 Apr 2006) | 3 lines -Fix: FS#108 Danish name generator bug this was actually not a bug in the generator, but rather it saved/loaded the setting danish as swiss (the previous in the list) ------------------------------------------------------------------------ r4444 | miham | 2006-04-16 10:03:15 +0000 (Sun, 16 Apr 2006) | 1 line [WebTranslator2 commir] Dutch, Polish affected ------------------------------------------------------------------------ r4440 | Darkvater | 2006-04-15 22:16:47 +0000 (Sat, 15 Apr 2006) | 1 line - Fix: Yoyo-effect of rail in desert/snow introduced by r4379. When a special groundtype below the track is encountered in the tileloop, always return even if groundtype hasn't changed. ------------------------------------------------------------------------ r4439 | Darkvater | 2006-04-15 21:27:59 +0000 (Sat, 15 Apr 2006) | 1 line - NewGRF: Add support for Action 0x10. This also required an extra pre-stage (before initialize and activation) to scan the GRF file for GOTO labels. Big thanks for peter1138 for the guidance and answers, as well as parts of the code. ------------------------------------------------------------------------ r4435 | Darkvater | 2006-04-15 20:07:42 +0000 (Sat, 15 Apr 2006) | 1 line - Fix: an assertion triggered when trying to remove a bridge with the remove-tool (r4348 surfaced this). In CmdRemoveRoad tiletype was not checked for ownership. Intorudce IsLevelCrossingTile() which checks if a tile is a crossing without knowing the type. Suggested by peter1138 and Tron. ------------------------------------------------------------------------ r4434 | Darkvater | 2006-04-15 19:52:58 +0000 (Sat, 15 Apr 2006) | 1 line - Codechange: use str_validate for the console as well instead of custom function doing the same. ------------------------------------------------------------------------ r4432 | tron | 2006-04-15 18:57:58 +0000 (Sat, 15 Apr 2006) | 1 line Make use of map access functions ------------------------------------------------------------------------ r4431 | peter1138 | 2006-04-15 16:40:54 +0000 (Sat, 15 Apr 2006) | 2 lines - NewGRF: rename nfo_line to _nfo_line, to avoid confusing Darkvater ;) ------------------------------------------------------------------------ r4430 | Darkvater | 2006-04-15 16:07:00 +0000 (Sat, 15 Apr 2006) | 1 line - NewGRF: Use the bridge's sprite layout for drawing high pillars. This fixes newgrf's high-bridge pillars drawing. Also remove the now obsolete _bridge_poles_table which was already integrated into the bridge sprite tables ------------------------------------------------------------------------ r4429 | Darkvater | 2006-04-15 16:03:45 +0000 (Sat, 15 Apr 2006) | 1 line - CodeChange[newgrf]: Action0, prop 0x0D. use calloc to allocate memory and zero it out and change the loop a little ------------------------------------------------------------------------ r4426 | belugas | 2006-04-15 03:08:14 +0000 (Sat, 15 Apr 2006) | 1 line Code Cleaning : replacing tabs with spaces, removing obvious comments, aligning arrays etc... ------------------------------------------------------------------------ r4425 | belugas | 2006-04-15 01:06:53 +0000 (Sat, 15 Apr 2006) | 3 lines Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is STRICKLY LESS THEN. This caused airports animations to stay unanimated. Industries were similarly affected. Thanks to Richk67 for finding it. Also, more Gfx define and use. ------------------------------------------------------------------------ r4424 | miham | 2006-04-14 22:29:34 +0000 (Fri, 14 Apr 2006) | 1 line fixed up polish.txt ------------------------------------------------------------------------ r4420 | miham | 2006-04-14 21:30:15 +0000 (Fri, 14 Apr 2006) | 2 lines [WebTranslator2 manual commit (commitscript is under development)] polish: massive changes by MeusH ------------------------------------------------------------------------ r4416 | tron | 2006-04-14 18:52:08 +0000 (Fri, 14 Apr 2006) | 1 line Remove a pointless buffer copy and use strlcpy() instead of snprintf("%s") ------------------------------------------------------------------------ r4415 | peter1138 | 2006-04-14 16:28:24 +0000 (Fri, 14 Apr 2006) | 4 lines Fix bug introduced in r4384 where drawing a default waypoint for the GUI caused a game crash. This only manifested with some newstations loaded. Thanks to Richk67 for finding this. ------------------------------------------------------------------------ r4414 | peter1138 | 2006-04-14 15:58:38 +0000 (Fri, 14 Apr 2006) | 3 lines - NewGRF: Don't execute sprite replacements (action 0x0A) in the initialization stage. ------------------------------------------------------------------------ r4413 | truelight | 2006-04-14 12:19:51 +0000 (Fri, 14 Apr 2006) | 5 lines -Fix: fixed a bug which pushed the client back to the main menu when a server is in the mainserver-list which sends out illegal signals. Many tnx to 'test' for finding and isolating the problem. -Fix: also specify the problem a bit better ------------------------------------------------------------------------ r4412 | tron | 2006-04-14 10:48:54 +0000 (Fri, 14 Apr 2006) | 1 line When a vehicle is in a depot or tunnel it's always flagged as VS_HIDDEN. So after checking for VS_HIDDEN and the result is false there's no need to check if it's flagged as being in a depot or tunnel ------------------------------------------------------------------------ r4411 | belugas | 2006-04-14 01:54:07 +0000 (Fri, 14 Apr 2006) | 2 lines CodeChange : Define and use some Gfx for both stations and industries. More are still to come Also, a bit of code cleaning, as pointed by Tron ------------------------------------------------------------------------ r4410 | miham | 2006-04-13 17:33:32 +0000 (Thu, 13 Apr 2006) | 5 lines WebTranslator2 daily commit [2006-04-13] [hungarian] 6 strings changed by Miham [french] 21 strings changed by Belugas [polish] 151 strings changed, 8 strings fixed by Meush ------------------------------------------------------------------------ r4408 | miham | 2006-04-12 21:11:28 +0000 (Wed, 12 Apr 2006) | 1 line [Language update by miham] Quick fixed polish.txt ------------------------------------------------------------------------ r4405 | miham | 2006-04-12 20:35:02 +0000 (Wed, 12 Apr 2006) | 3 lines WebTranslator2 automatic commit [french] 1 string has been fixed by Belugas [polish] 36 strings has been fixed, 3 strings has been updated by meush ------------------------------------------------------------------------ r4404 | belugas | 2006-04-12 20:33:01 +0000 (Wed, 12 Apr 2006) | 1 line Reverted part of r4403. GetRailStationAxis need assertion on IsRailwayStation. Thanks glx for spotting it ------------------------------------------------------------------------ r4403 | belugas | 2006-04-12 20:01:52 +0000 (Wed, 12 Apr 2006) | 1 line CodeChange : Add GetStationGfx and make use of [G|S]etStationGfx accessors. Also, use GetStationGfx instead of directly accessing the map for functions in station_map.h ------------------------------------------------------------------------ r4402 | tron | 2006-04-12 19:05:31 +0000 (Wed, 12 Apr 2006) | 1 line Fix a faulty entry in the table for slopes under bridges, remove a now unnecessary test which hid the faulty entry till now and undo r4398 (don't do this!) ------------------------------------------------------------------------ r4399 | belugas | 2006-04-12 18:10:54 +0000 (Wed, 12 Apr 2006) | 1 line CodeChange : Add and make use of [G|S]etIndustryAnimationLoop accessors. ------------------------------------------------------------------------ r4398 | celestar | 2006-04-12 17:58:58 +0000 (Wed, 12 Apr 2006) | 2 lines -Fix: Quick and Dirty solution for FS#116. Just for the nightlies ------------------------------------------------------------------------ r4397 | miham | 2006-04-12 17:53:52 +0000 (Wed, 12 Apr 2006) | 1 line [WT2] Commiting hungarian changes ------------------------------------------------------------------------ r4392 | celestar | 2006-04-12 15:23:32 +0000 (Wed, 12 Apr 2006) | 2 lines -Codechange: Use water map accessors in bridge code ------------------------------------------------------------------------ r4391 | celestar | 2006-04-12 15:21:33 +0000 (Wed, 12 Apr 2006) | 2 lines -Fix: faulty ")" in previous commit ------------------------------------------------------------------------ r4390 | celestar | 2006-04-12 15:08:48 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Upon merging elrails, one direct map access to the railtype went unnoticed... ------------------------------------------------------------------------ r4389 | matthijs | 2006-04-12 15:08:27 +0000 (Wed, 12 Apr 2006) | 2 lines -Fix: [NPF] Don't mark tiles when debugging in multiplayer, this will cause desyncs. ------------------------------------------------------------------------ r4387 | celestar | 2006-04-12 14:17:07 +0000 (Wed, 12 Apr 2006) | 3 lines -Codechange: Use map accessors even for debugging purposes (npf). -Codechange: Removed unused code from NPF ------------------------------------------------------------------------ r4386 | celestar | 2006-04-12 13:25:32 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Add and make use of IsCustomWaypoint ------------------------------------------------------------------------ r4385 | celestar | 2006-04-12 12:58:53 +0000 (Wed, 12 Apr 2006) | 2 lines -Codechange: remove map5 from the TileInfo struct as it is now unused. This effort is starting to pay off ... ------------------------------------------------------------------------ r4384 | celestar | 2006-04-12 12:50:40 +0000 (Wed, 12 Apr 2006) | 5 lines -Codechange: rail drawing code -Added a function to obtain the axis of a waypoint -Moved the waypoint layout tables from the depot layout tables into an own one -Use GetRailTileSubtype ------------------------------------------------------------------------ r4383 | peter1138 | 2006-04-12 12:33:21 +0000 (Wed, 12 Apr 2006) | 2 lines - Codechange: Remove extraneous code from 4354; no need to get RailTypeInfo when we already have it... ------------------------------------------------------------------------ r4382 | celestar | 2006-04-12 12:24:39 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Make use of SetSignalType where appropriate ------------------------------------------------------------------------ r4381 | celestar | 2006-04-12 12:22:43 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Forgot an occurence for rail ground types ------------------------------------------------------------------------ r4380 | celestar | 2006-04-12 12:12:51 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Make use of GetTrackBits where appropriate ------------------------------------------------------------------------ r4379 | celestar | 2006-04-12 11:58:07 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Add and make use of map accessor functions concerning rail ground types ------------------------------------------------------------------------ r4378 | celestar | 2006-04-12 09:36:27 +0000 (Wed, 12 Apr 2006) | 1 line -Add and make use of an accessor function two-way => one-way => one-way => two-way signal cycling ------------------------------------------------------------------------ r4377 | celestar | 2006-04-12 09:12:33 +0000 (Wed, 12 Apr 2006) | 1 line -Add and make use of a function that finds out whether a signal is an entry or and exit signal to a presignal block (as combos act as both) ------------------------------------------------------------------------ r4376 | celestar | 2006-04-12 08:28:03 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange Renamed GetSignalState to GetSignalStateByTrackdir ------------------------------------------------------------------------ r4375 | celestar | 2006-04-12 08:06:08 +0000 (Wed, 12 Apr 2006) | 1 line -Codechange: Move the signal drawing bit to an own function and rename DrawSignalHelper to DrawSingleSignal ------------------------------------------------------------------------ r4374 | tron | 2006-04-12 05:26:36 +0000 (Wed, 12 Apr 2006) | 1 line Never directly commit something you prepared the evening before, mysteriously it will break in the morning, fix r4373 ------------------------------------------------------------------------ r4373 | tron | 2006-04-12 05:19:19 +0000 (Wed, 12 Apr 2006) | 5 lines Rewrite GetSlopeZ_TunnelBridge() and slightly change its behavior: - Report the correct z alongside the ramp when a foundation is present - Always report the z under the bridge for a bridge middle part, except if the z hack is used This should fix some weird behavior of the tile selector near bridges ------------------------------------------------------------------------ r4368 | belugas | 2006-04-11 22:15:57 +0000 (Tue, 11 Apr 2006) | 1 line Revert clear_map.h changes in r4367.Error of manipulation ------------------------------------------------------------------------ r4367 | belugas | 2006-04-11 22:09:21 +0000 (Tue, 11 Apr 2006) | 1 line CodeChange : Remove another direct map access in station_cmd.c. Replace an array of TileIndexDiffC by a use of loop with TileDiffXY. Thanks to Rubidium ------------------------------------------------------------------------ r4365 | miham | 2006-04-11 20:56:03 +0000 (Tue, 11 Apr 2006) | 1 line Oops, sorry, reverted accidentally committed french.txt ------------------------------------------------------------------------ r4364 | miham | 2006-04-11 20:54:47 +0000 (Tue, 11 Apr 2006) | 1 line [Translator2] Fixed generation of langfiles, committing hungarian changes done by miham ------------------------------------------------------------------------ r4363 | miham | 2006-04-11 20:04:36 +0000 (Tue, 11 Apr 2006) | 1 line [WT2] Reverted changes, sorry ------------------------------------------------------------------------ r4362 | miham | 2006-04-11 20:00:38 +0000 (Tue, 11 Apr 2006) | 1 line [Translator2] Commit for hungarian language by Miham (manual) ------------------------------------------------------------------------ r4361 | Darkvater | 2006-04-11 17:05:50 +0000 (Tue, 11 Apr 2006) | 1 line - Fix: Write and Read the true length of a string-buffer into the savegame instead of the whole buffer. ------------------------------------------------------------------------ r4360 | Darkvater | 2006-04-11 17:03:13 +0000 (Tue, 11 Apr 2006) | 1 line - CodeChange: add shortcut to SlGetArrayLength of the gamma-function along the lines of the Write/Read functions ------------------------------------------------------------------------ r4359 | belugas | 2006-04-11 15:18:22 +0000 (Tue, 11 Apr 2006) | 1 line MSV6 Release mode now compiles (problem of UINT_MAX. stdafx.h should be the first include). Thanks to KUDr for solution and testing ------------------------------------------------------------------------ r4358 | celestar | 2006-04-11 13:19:05 +0000 (Tue, 11 Apr 2006) | 1 line -Codechange: Don't use a TileInfo where a TileIndex will do ------------------------------------------------------------------------ r4357 | celestar | 2006-04-11 13:10:16 +0000 (Tue, 11 Apr 2006) | 1 line -Codechange: Moved global _signal_base_sprites into the only function where it is used and use a better array arrangement for it ------------------------------------------------------------------------ r4356 | peter1138 | 2006-04-11 13:00:06 +0000 (Tue, 11 Apr 2006) | 2 lines - NewGRF: Load more newstation properties. ------------------------------------------------------------------------ r4355 | peter1138 | 2006-04-11 10:53:07 +0000 (Tue, 11 Apr 2006) | 2 lines - NewGRF: Minor clean up; use the correct return type and remove extraneous brackets. ------------------------------------------------------------------------ r4354 | peter1138 | 2006-04-11 10:45:06 +0000 (Tue, 11 Apr 2006) | 2 lines [Elrail][NewGRF] Codechange: Drawing of custom waypoints with custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset. ------------------------------------------------------------------------ r4353 | celestar | 2006-04-11 10:19:50 +0000 (Tue, 11 Apr 2006) | 1 line Codechange: Move global _signal_position into the only function that uses it and convert the bit-hacking into a struct ------------------------------------------------------------------------ r4352 | peter1138 | 2006-04-11 10:05:52 +0000 (Tue, 11 Apr 2006) | 2 lines - NewGRF Codechange: dynamically allocate the memory used to store custom station data. This saves us approximately 40KB per GRF file, if there are no stations defined. ------------------------------------------------------------------------ r4351 | tron | 2006-04-11 04:49:23 +0000 (Tue, 11 Apr 2006) | 1 line Simplify ReverseTrackdir() to use a simple arithmetic operation instead of a table lookup ------------------------------------------------------------------------ r4350 | belugas | 2006-04-10 21:00:56 +0000 (Mon, 10 Apr 2006) | 1 line CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint ------------------------------------------------------------------------ r4349 | tron | 2006-04-10 20:46:37 +0000 (Mon, 10 Apr 2006) | 1 line Remove GetCrossingTransportType(), it's slightly overkill ------------------------------------------------------------------------ r4348 | tron | 2006-04-10 20:38:59 +0000 (Mon, 10 Apr 2006) | 1 line Move IsLevelCrossing() from rail.h to road_map.h ------------------------------------------------------------------------ r4347 | belugas | 2006-04-10 16:20:47 +0000 (Mon, 10 Apr 2006) | 1 line CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup step toward bringing accessors [G|S]etIndustrype ------------------------------------------------------------------------ r4346 | belugas | 2006-04-10 15:09:56 +0000 (Mon, 10 Apr 2006) | 1 line CodeChange : Add and Use Accessors to Industry's Stage and Counter construction. Removed last direct map access from Disaster_cmd.c as well. Based on work from Rubidium in tfc_newmap ------------------------------------------------------------------------ r4345 | celestar | 2006-04-10 14:27:26 +0000 (Mon, 10 Apr 2006) | 1 line -Codechange: Similar to airport tiles, rename _industry_map5_ arrays to _industry_sections ------------------------------------------------------------------------ r4344 | tron | 2006-04-10 12:36:04 +0000 (Mon, 10 Apr 2006) | 2 lines Use tile coordinates or even TileIndices instead of virtual tile coordinates where it suffices. ------------------------------------------------------------------------ r4343 | peter1138 | 2006-04-10 11:14:33 +0000 (Mon, 10 Apr 2006) | 2 lines [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106 ------------------------------------------------------------------------ r4342 | tron | 2006-04-10 07:15:58 +0000 (Mon, 10 Apr 2006) | 3 lines Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand() ------------------------------------------------------------------------ r4341 | celestar | 2006-04-09 18:35:24 +0000 (Sun, 09 Apr 2006) | 1 line -Fix (FS#101) When a player got bankrupt, slots were not cleared, because vehicles got deleted directly by DeleteVehicle ------------------------------------------------------------------------ r4340 | peter1138 | 2006-04-09 18:25:31 +0000 (Sun, 09 Apr 2006) | 2 lines Add force {FORCE} to the units system. This is currently unused. ------------------------------------------------------------------------ r4339 | peter1138 | 2006-04-09 18:08:20 +0000 (Sun, 09 Apr 2006) | 2 lines - Comment Change: NewGRF, update comments for units of speed ------------------------------------------------------------------------ r4338 | celestar | 2006-04-09 18:01:06 +0000 (Sun, 09 Apr 2006) | 1 line -Fix (FS#105): Bug introduced in r4290. IsLevelCrossing does NOT check the tile type, it assumes the tile type IS MP_STREET ------------------------------------------------------------------------