KUDr
fad2a36b8f
(svn r10199) -Fix [FS#884, YAPF]: 'target_seen' flag that is set prematurely in some cases (1 tile long cached segment followed by target station) stops on assert (immeR)
2007-06-18 14:40:07 +00:00
KUDr
bf04c88eca
(svn r9746) -Codechange [YAPF]: added DEBUGs level 0 if the current train order is OT_GOTO_WAYPOINT and waypoint is invalid or v->dest_tile is wrong
2007-04-29 10:14:42 +00:00
KUDr
027597f485
(svn r9745) -Codechange [YAPF}: if destination is a waypoint then YAPF gets destination tile from that waypoint->xy instead of from v->dest_tile
2007-04-29 09:55:32 +00:00
KUDr
d0de381c30
(svn r9697) -Fix [YAPF](r9694): 'unused variable' warning (glx)
2007-04-20 19:43:06 +00:00
KUDr
3df2656633
(svn r9694) -Fix [YAPF][FS#736]: the guessed path (when PF stopped on max. # of nodes passed) was ignored for ships (desolator)
2007-04-20 19:19:23 +00:00
KUDr
4728765870
(svn r9693) -Codechange [YAPF]: GetBestNode() now returns pointer to node instead of reference
2007-04-20 19:13:35 +00:00
KUDr
c7bcdb69b1
(svn r9146) -Fix [NTP][FS#676](r6800): "Train is lost" message is generated incorrectly. Forgot to set the best bird distance to zero in case we found the destination to indicate success. (de_zeurkous)
2007-03-13 21:04:22 +00:00
KUDr
00bc893312
(svn r9104) -Fix(r9080, r9081): UINT32_MAX is undefined on MSVC, std::numeric_limits doesn't exist in gcc 2.95 (MorphOS), so back to tree and use ~0 instead (peter1138)
2007-03-10 20:05:31 +00:00
KUDr
933c406678
(svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead.
2007-03-09 23:26:21 +00:00
KUDr
fbd6a88d02
(svn r8933) -Fix [Win64]: rdtsc now uses intrinsic on VC8 (michi_cc)
2007-02-27 23:12:45 +00:00
KUDr
b3822a22d9
(svn r8887) -Fix (r8879)[MorphOS]: initialization of mouth_table[] skipped by goto
2007-02-24 19:43:50 +00:00
KUDr
029ceda0f1
(svn r8869) [YAPF] -Fix: Large Train Stations/Trains makes OpenTTD crash (Jigsaw_Psyche)
2007-02-24 00:17:46 +00:00
KUDr
9cdf6fdc7e
(svn r8867) -Fix(r8866): revert yapf_costrail.hpp commited by mistake, helpers.hpp had wrong line ending
2007-02-23 21:36:43 +00:00
KUDr
f3d5fda36c
(svn r8866) -Doc: added more comments to template struct MakeEnumPropsT
2007-02-23 21:29:50 +00:00
KUDr
dac3cd622f
(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like CLRBIT() and so on (modify value of the first parameter instead or returning the result)
2007-02-23 20:51:10 +00:00
KUDr
f24122ba3d
(svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, TRANSPORT_ROAD)' failed (Karsten)
...
-don't tell that we found destination if the best direction was only guessed
2007-02-21 21:56:07 +00:00
KUDr
fe1d448cf8
(svn r8768) -Fix (r8767): VC8 compilation failed 'warning C4146: unary minus operator applied to unsigned type, result still unsigned'
2007-02-17 10:21:48 +00:00
KUDr
ee0739561d
(svn r8766) -Fix[YAPF]: rail station platform penalty not calculated properly
2007-02-17 00:18:11 +00:00
KUDr
ef8c8952b1
(svn r8751) -Fix [lang]: deleted .news and .subs strings causing lang compilation error
2007-02-15 22:00:17 +00:00
KUDr
72cdfb6352
(svn r8750) -Fix (r8747): PLANES defined in wingdi.h caused compilation error under Win32. Changed to AIRPLANES
2007-02-15 22:00:04 +00:00
KUDr
f801a5c04f
(svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build
2007-02-06 19:16:38 +00:00
KUDr
ccffde6d7e
(svn r8576) -Fix: wrong type given to MallocT (VC2003, UNICODE build)
2007-02-04 11:33:02 +00:00
KUDr
62486a73ed
(svn r8574) -Fix: Silence VC2003 warning: "compiler limit : terminating debug information emission for enum 'StringIdEnum'"
2007-02-04 11:30:22 +00:00
KUDr
e66028538a
(svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan)
2007-02-02 20:20:56 +00:00
KUDr
f5d74b8af6
(svn r8482) -Revert (r8480): let others to do it properly
2007-01-31 10:27:45 +00:00
KUDr
a5198858d8
(svn r8480) -Fix [lang]: Error caused by missing case
2007-01-31 09:54:35 +00:00
KUDr
f9462a50e9
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
...
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
2007-01-31 09:51:22 +00:00
KUDr
201ba1f5c3
(svn r8414) -Codechange: Use own AutoPtrT instead of std::auto_ptr.
...
-Simplifies assignment from raw pointers
-Should be harder to crash the program by incorrect assignment into it.
-Should help with MorphOS compilation errors
2007-01-26 11:38:07 +00:00
KUDr
29a332e829
(svn r8413) -Fix [MORPHOS]: disable #define offsetof conflict on Morphos (seems that g++ 2.95 defines it anyway)
2007-01-26 08:37:48 +00:00
KUDr
8c5f64ae56
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
2007-01-19 22:41:50 +00:00
KUDr
7b5ec98d99
(svn r8277) -Fix (r8038): assert on game exit when waypoints were used. The static variable of type Station (inside ComposeWaypointStation) replaced by byte array so no destructor is called for it on exit.
2007-01-19 16:01:43 +00:00
KUDr
314e35beff
(svn r8273) -Fix: return value from clamp was ignored
2007-01-18 23:48:04 +00:00
KUDr
6230f9b922
(svn r8272) -Fix (r8038): signed/unsigned change - PlayerID is now enum (signed) and was byte so test for PlayerID validity needed to be updated (Darkvater)
2007-01-18 23:45:58 +00:00
KUDr
147ca22060
(svn r8231) -Fix (r8125): MP desync caused by calling Random() from station constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium)
2007-01-18 09:34:44 +00:00
KUDr
fd383668f8
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
2007-01-14 23:43:59 +00:00
KUDr
278cf974a4
(svn r8138) -Cleanup: comment style corrections
2007-01-14 23:36:25 +00:00
KUDr
cd74706c54
(svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods.
2007-01-14 23:02:12 +00:00
KUDr
f8a434e9fc
(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
2007-01-14 21:03:21 +00:00
KUDr
19d31c7417
(svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron)
2007-01-14 19:44:27 +00:00
KUDr
1eac31a1d8
(svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ (still some warnings, working on it)
2007-01-14 19:29:21 +00:00
KUDr
8b65342449
(svn r8125) -Codechange: Station is now constructed/destroyed using new/delete operators (don't worry, they still use the same memory pool). Few station related functions turned into Station::methods (just first step). All this new stuff moved from station_cmd.cpp to the new file (station.cpp).
2007-01-14 19:18:50 +00:00
KUDr
d57b290474
(svn r8124) -Add [DEBUG]: _debug_station_level
2007-01-14 19:13:36 +00:00
KUDr
04d2d80891
(svn r8122) -Fix[LANG]: terror in czech lang file (again)
2007-01-14 18:57:39 +00:00
KUDr
96ea43d1b2
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
2007-01-14 13:21:02 +00:00
KUDr
9bfb3f08d9
(svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.
2007-01-13 18:55:54 +00:00
KUDr
ae41162322
(svn r8104) -Fix: missing helpers.hpp added into source.list and VC
2007-01-13 16:23:24 +00:00
KUDr
64c30ae737
(svn r8100) -Propchange: EOL style changed to LF for /projects/generate
2007-01-13 15:24:31 +00:00
KUDr
0108e5f85c
(svn r8099) -Fix (r8092): source.list updated to reflect move of header files (thanks stillunknown). vcproj files updated too (thanks glx)
2007-01-13 15:22:36 +00:00
KUDr
0edc029f9f
(svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h
2007-01-13 14:43:46 +00:00
KUDr
f2e5e604fb
(svn r8092) -Codechange: header files with miscellaneous template classes (smart pointers, blob, array, hashtable, etc.) moved from src/yapf to src/misc as they can now be used anywhere.
2007-01-13 13:33:36 +00:00
KUDr
38a9d09214
(svn r8091) -Propchange: EOL style changed to LF for config.lib (fixes ./configure errors when sharing WC between linux and windows)
2007-01-13 13:23:56 +00:00
KUDr
e896d7814a
(svn r8079) -Fix [YAPF]: float division by zero when calculating stats (YAPF cache hit ratio). Caused BSOD on Win9x. (thanks 3iff for report, Darkvater for help)
2007-01-12 15:43:00 +00:00
KUDr
33be1ecfb1
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
KUDr
dbe11fb9c7
(svn r8052) - Codechange: RemoveFirstTrack() and RemoveFirstTrackdir() now accept pointer to TrackBits/TrackdirBits instead of reference.
2007-01-11 10:34:42 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00
KUDr
db02336ef1
(svn r7810) -Fix: FS#504 Building airport whose size exceeds max station spread-out caused assert. (Zuu)
2007-01-03 22:55:53 +00:00
KUDr
af2a4cecde
(svn r7628) -Fix: [YAPF] suppress 'Train is lost' message if pathfinding ended on the first two-way red signal due to yapf.rail_firstred_twoway_eol option.
2006-12-29 23:06:00 +00:00
KUDr
62f55edbe7
(svn r7623) - Fix: [YAPF] trains/roadvehs trying to enter the bridge ramp from under bridge rail/road (introduced by bridge merge r7573)
2006-12-29 18:40:02 +00:00
KUDr
0ca54b8ecf
(svn r7620) -Fix: [OPF] signal update was incorrectly propagated:
...
- through incompatible rail types
- from under bridge track to the bridge ramp (peter1138)
- same for tunnels (from track on top of tunnel entry to the tunnel)
2006-12-29 17:51:16 +00:00
KUDr
78c503c020
(svn r7599) -Fix: (r7585, r7590) assert on load game that has some station with bigger spread-out than _patches.station_spread value (Celestar)
2006-12-28 17:45:31 +00:00
KUDr
02c07d2a86
(svn r7590) -Codechange: (r7585)
...
- use existing struct Rect instead of declaring new StationRect
- use inline functions instead of macros
2006-12-28 11:52:12 +00:00
KUDr
69a43e5ade
(svn r7585) -Codechange: CheckStationSpreadOut() took too much CPU. Station rectangle is now maintained instead of calculating it each time by walking through whole map. Should help with the performance issue related to AIs trying to build road stops too often. (idea by Celestar)
2006-12-27 23:11:43 +00:00
KUDr
b07b38d873
(svn r7547) -Fix: The cost of rail station removal was calculated based on the area occupied by the station. This produced unreasonably large removal costs for non-uniform stations. Now it is based on number of station tiles actually removed.
2006-12-22 13:16:40 +00:00
KUDr
0bf22bdedf
(svn r7519) -Fix: [YAPF] Cache was not deleted when waypoint was built or removed (frosch)
2006-12-20 23:41:24 +00:00
KUDr
dc726fee75
(svn r7429) -Remove: [YAPF] yapf.txt no longer valid/needed
2006-12-07 21:30:18 +00:00
KUDr
07ad588487
(svn r7387) -Fix: czech lang file compilation error
2006-12-05 23:32:15 +00:00
KUDr
3f3a14d24b
(svn r7329) -Fix (r7157): Invalid viewport position on quick zoom
2006-12-03 13:40:16 +00:00
KUDr
7395780daf
(svn r7327) -Fix: [YAPF] missing YAPF cache notification when building road on rail (new crossing) or removing road from crossing
2006-12-03 12:17:35 +00:00
KUDr
b450652dbe
(svn r7317) -Fix: (r7299) warning: unused variable num_engines (peter1138)
2006-12-01 08:23:15 +00:00
KUDr
04773f5eb4
(svn r7309) -Codechange: sort train engines/wagons by number first and then by custom rule
2006-11-30 21:37:06 +00:00
KUDr
81ba2ad919
(svn r7308) -Codechange: call GenerateBuildList() only when needed instead of on each redraw (peter1138)
2006-11-30 21:33:09 +00:00
KUDr
952cb2ee5c
(svn r7306) -Codechange: constness (Darkvater)
2006-11-30 19:37:16 +00:00
KUDr
d921066f15
(svn r7301) -Fix: (r7299) Forgotten $Id$ and eol-style (peter1138)
2006-11-30 17:12:10 +00:00
KUDr
e5d46a9316
(svn r7300) -Fix: (r7299) removed unused strings from lang files
2006-11-30 16:03:57 +00:00
KUDr
1235172cc7
(svn r7299) -CodeChange: Train and Aircraft Build window GUI code simplified a bit:
...
- using one engine list instead of 3
- removed engine filters (loco, wagons, helicopters, etc.)
- EngineList code isolated from GUI (moved to helpers.cpp - reusing CBlobT code which does exactly what is needed for EngineList)
- removed unnecessary "optimization" (rebuild and sort engine list on each WE_PAINT)
2006-11-30 16:03:12 +00:00
KUDr
3e6f89ca7e
(svn r7296) -Fix: [YAPF] setting yapf.rail_look_ahead_max_signals to zero causes YAPF to behave incorrectly. Set its min value to 1. (Danny)
2006-11-30 13:52:31 +00:00
KUDr
12a3e8e4be
(svn r7256) -Translation: [FS#408] Turkish lang file massive update (jnmbk)
2006-11-25 08:27:44 +00:00
KUDr
f1a7a34f6e
(svn r7255) -Comments added for CBlobBaseSimple, CBlobT classes
2006-11-24 21:37:08 +00:00
KUDr
b3edc8b42e
(svn r7247) -Translation: czech lang file massive update - use proper diacritics (Hadez)
2006-11-24 13:18:14 +00:00
KUDr
59723b113e
(svn r7241) -Fix: czech town name generator now uses proper diacritics (Hadez)
2006-11-22 23:25:31 +00:00
KUDr
c5ea9b0824
(svn r7227) -Fix: [YAPF] Bridge YAPF Penalty Incorrect. The penalty for upward slope was incorrectly applied on bridge exit. (Danny)
2006-11-21 16:24:13 +00:00
KUDr
9b81f084af
(svn r7210) -CodeChange: [YAPF] the global cache object is now not destroyed/recreated whenever the cache is invalidated. It now supports Flush() method that is used instead. It should also fix mem-leak warning produced by valgrind (Tron)
2006-11-18 19:20:47 +00:00
KUDr
f2cda44d2e
(svn r7195) -Feature: [FS#297, optional elrails] New patches/vehicles option 'disable electrified railways'.
...
(original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
2006-11-17 19:31:44 +00:00
KUDr
d6b98584ab
(svn r7190) -Fix: If the non-player-based _patches setting was changed on the server during MP game, the callback function was:
...
1. Called only on the server but not on its clients.
2. Was called before the setting change occurred (usually with no effect)
3. Received old 'p1' argument value intead of new one
It could cause some MP desyncs in the future.
2006-11-17 10:42:20 +00:00
KUDr
7f45482bbe
(svn r7178) -Fix: forgotten pointer dereferences (Bjarni, Bjarni, Bjarni, ...)
2006-11-16 20:52:39 +00:00
KUDr
0e290fd388
(svn r7174) -CodeChange: CheckStationSpreadOut() now uses MergePoint() for bounding rectangle calculation.
2006-11-16 17:59:02 +00:00
KUDr
07be991e62
(svn r7169) -Fix: [FS#388] Station sign (and base station coordinates) didn't move along with station when station moved by walking. (HMage)
2006-11-16 16:18:00 +00:00
KUDr
591a34296d
(svn r7167) -Fix: [FS#367] Crash: engine.h:194: RailVehInfo: Assertion (reported by skidd13)
2006-11-16 13:59:26 +00:00
KUDr
2cc0c4b344
(svn r7166) -Fix: [FS#402] MiniMap was misplacing vehicles sometimes (HMage)
2006-11-16 12:31:38 +00:00
KUDr
a9312f348c
(svn r7164) -Fix: [YAPF] assert when look-ahead polynomial result (red-signal penalty) is negative. Such penalty is now added as positive penalty for the appropriate green signal. (DannyA)
2006-11-16 10:51:42 +00:00
KUDr
336e0a1775
(svn r7162) -CodeChange: disabled compilation of unused code (Darkvater)
2006-11-15 23:47:52 +00:00
KUDr
ddda3c8b2f
(svn r7147) -CodeChange: Don't use references if they can refer to NULL (Tron)
2006-11-14 13:42:50 +00:00
KUDr
ecccf79c07
(svn r7146) -CodeChange: ST_CONST macro removed as it is no longer needed (Tron)
2006-11-14 12:02:36 +00:00
KUDr
9d5befb22a
(svn r7134) - Fix (r7133) Still can't build oil refinery in the desert climate (this time i tested it)
2006-11-12 01:28:45 +00:00
KUDr
2ac1ba423d
(svn r7133) - Fix: Can't build oil refinery in other climates than temperate.
2006-11-12 01:14:44 +00:00
KUDr
fd361b104d
(svn r7069) -Fix: AI tried to build road from the back or side of road stop/depot (peter1138)
2006-11-05 18:42:25 +00:00
KUDr
605e6d75af
(svn r7059) -Fix [FS#384]: Tunnel YAPF Penalty Incorrect. The penalty for upward slope was incorrectly applied on tunnel entrances. (Danny)
2006-11-04 11:44:19 +00:00
KUDr
b2eece5b53
(svn r7003) -Fix: only the appropriate train owner can now see the "Train is lost" message (peter1138)
2006-10-29 13:50:39 +00:00
KUDr
c758f7d812
(svn r6800) -Feature change: [train is lost] message is now generated immediately when pathfinder can't find the path. (thanks MeusH, peter1138 and Brianetta for ideas and help).
2006-10-17 16:16:19 +00:00
KUDr
c2736007e5
(svn r6791) -Fix: [YAPF] YapfFindNearestRailDepotTwoWay() did not work for train inside tunnel.
2006-10-16 19:17:30 +00:00