Commit Graph

2804 Commits

Author SHA1 Message Date
peter1138
139d1ed1eb (svn r3351) Make sort criteria selection widgets in player train list consistent with those widgets in other vehicle type lists. (Stops "Total capacity per cargo type" overflowing) 2005-12-28 09:40:26 +00:00
peter1138
cac82aa4af (svn r3350) Fix widget glitch in player ship window (missed in r1379) 2005-12-28 09:29:00 +00:00
peter1138
b181868483 (svn r3349) Fix off-by-one error in drawing matrix widget, from r3181. 2005-12-28 08:39:43 +00:00
tron
c6ea133746 (svn r3348) Dependency checking didn't include all compile parameters, which lead to wrong results 2005-12-27 22:55:24 +00:00
tron
ee3eae4fdf (svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?) 2005-12-27 20:44:42 +00:00
peter1138
121b54e959 (svn r3346) - Increase size of aircraft refit window by one item; fixes "[ 1387477 ] Can't refit aircraft to carry Fizzy Drinks" 2005-12-27 16:37:50 +00:00
tron
7917251413 (svn r3345) Remove untranslated strings 2005-12-26 18:24:01 +00:00
tron
79a626a71b (svn r3344) Small fixes for the Danish (Thanks to Bjarni) and Dutch (Thanks to Truelight) translation 2005-12-26 18:22:34 +00:00
peter1138
0975885240 (svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete. 2005-12-26 15:41:24 +00:00
tron
05ed2a8d8c (svn r3342) Remove some cruft 2005-12-25 19:44:23 +00:00
truelight
a980ddc219 (svn r3341) -Codechange: make mingw32 happy, and renamed Rectangle, because it already exists on that platform 2005-12-25 15:05:59 +00:00
tron
0e12ad7d99 (svn r3340) Fix dependency calculation: dependencies didn't get recalculated if a header file changed
Also really automagically create the dependency directories by deriving the directory names from $(DEPS)
2005-12-25 09:19:16 +00:00
tron
04c096ee63 (svn r3339) Remove unnecessary includes 2005-12-24 20:54:31 +00:00
tron
9b5f7f9d38 (svn r3338) Wrong file in last commit 2005-12-24 20:53:02 +00:00
tron
255c4052b2 (svn r3337) Remove an unused variable and add 2 times static 2005-12-24 20:51:21 +00:00
tron
849fff602d (svn r3336) byte -> WindowClass, uint16 -> WindowNumber 2005-12-24 15:01:17 +00:00
miham
2349392eb7 (svn r3335) [Translations] Moved estonian to ready 2005-12-24 13:22:38 +00:00
tron
e840c17fef (svn r3334) Remove 2 unused window classes 2005-12-24 12:47:51 +00:00
tron
df686b1d33 (svn r3333) Remove some the unimplemented option DISPLAY_WARNINGS from the config writer 2005-12-24 12:47:31 +00:00
tron
05b34d2eee (svn r3332) Fix r3317, a few things got messed up in the translator system 2005-12-24 12:16:56 +00:00
tron
a537f7acc2 (svn r3331) CMD_PLACE_SIGN doesn't use p1, so don't pass anything seemingly meaningful 2005-12-24 10:16:34 +00:00
matthijs
30397b6561 (svn r3329) - Doc: Some documentation cleanups.
- Add: TracksOverlap() (from the map branch), TrackdirBitsToTrackBits(), DiagdirReachesTrackdirs(), DiagdirReachesTracks().
 - Fix: Infinite loop in the pathfinder introduces in r3321.
2005-12-21 13:53:44 +00:00
Darkvater
826a1ba482 (svn r3328) - Fix: [ 1352739 ] landscape_grid.html showing wrong bit usage (belugas) 2005-12-21 01:43:26 +00:00
Darkvater
a95a66c751 (svn r3327) - Fix: [ 1373581 ] landscape.html documentation. Railway types are stored in m3, not m4. According to the mask (RAILTYPE_MASK), this is should be 0..1 but 0..3 are actually reserved. (egladil) 2005-12-21 01:40:41 +00:00
Darkvater
97521e3fdd (svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst) 2005-12-21 01:19:03 +00:00
Darkvater
66ac4f4d1a (svn r3325) - Fix: You couldn't send an airplane to a hangar for mandatory servicing, the NON_STOP flag failed the command. 2005-12-21 01:14:01 +00:00
Darkvater
a5678b9700 (svn r3324) - Codechange: set native eol-style on missing files not yet set so 2005-12-20 21:59:34 +00:00
Darkvater
756f84e3bd (svn r3323) - Fix: automatically enable new AI when turning on the AI in multiplayer feature (it only works that way and we all know users don't read). 2005-12-20 21:24:50 +00:00
Darkvater
eea9e95278 (svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
- CodeChange: added str_validate(char *str) function that checks if a string contains only printable characters and if not, replaces those characters by question marks. Also move IsValidAsciiChar() to string.h
2005-12-20 20:52:05 +00:00
matthijs
63c24f25a7 (svn r3321) - Fix: A wrong use of the map m5 bits, where a previously calculated "bits" variable should have been used. This resulted in the pathfinder imagining junctions, which negatively affects performance somewhat (Darkvater).
- Fix: [ 1346377 ] Limiting the "depth" of the search tree fixes this assert.
  Though the above fix seems to fix this bug too, it will only make it less likely to occur. The problem here was the StackedItem::depth field overflowing, which made the pathfinder think it was at the first tile again. Adding an explicit overflow check should fix this.
2005-12-20 00:50:16 +00:00
Darkvater
17f8534e5a (svn r3320) - Fix: FS#22 - Exiting with double size enabled saves wrong window size. Reset the window size to its true size upon exiting when double-size is active. Is set in ClientSizeChanged. 2005-12-19 00:19:12 +00:00
Darkvater
abc7e5e659 (svn r3319) - Fix (regression): "Unnamed Competitors". A result of revision r3224 which allowed AI's for multiplayer. Old AI's didn't function correctly anymore. The update of last-built tile is moved back, but to a slightly different place so it is only executed when the command is actually successfully executed. This code shouldn't be neccessary, but alas, the old AI doesn't use DoCommandDP() functions. 2005-12-18 22:48:45 +00:00
Darkvater
b6d5ebc629 (svn r3318) - Codechange: [FS#27] MSVC projectfile & documentation update (bociusz) 2005-12-18 20:48:22 +00:00
miham
319ff8685c (svn r3317) [Translations] Updated to 2005-12-18 2005-12-18 17:04:02 +00:00
peter1138
0fbb9815ba (svn r3316) - NewGRF: Unload engine names before loading grf files. This fixes names in climates where the engines don't get loaded. Renamed function to reflect its purpose. 2005-12-18 14:03:28 +00:00
tron
e62c3e6f39 (svn r3314) Add 2 times static 2005-12-18 12:17:53 +00:00
tron
d5aa95b87e (svn r3313) Remove GPMI related changes from trunk
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
2005-12-18 12:10:46 +00:00
tron
7dc1e23845 (svn r3311) Remove the unnecessary global variable _grffile_count: It's just the scroll count of a list and furthermore only used in one file 2005-12-18 08:01:05 +00:00
tron
8e43cdd0c0 (svn r3310) Fix a couple of warnings: Initialise all struct members, disambiguate cascaded if/else, remove an unused variable, use (void) for empty parameter lists 2005-12-17 14:26:43 +00:00
peter1138
32d75fd922 (svn r3309) Cygwin doesn't define _MSC_VER; check it exists before basing decisions on its value. 2005-12-16 22:01:38 +00:00
tron
49f0691c1a (svn r3308) BAD
foo.h: int bar;

GOOD
foo.h: extern int bar;
foo.c: int bar;
2005-12-15 17:55:59 +00:00
tron
41c83a2efd (svn r3307) A file shall include its own header 2005-12-14 20:45:12 +00:00
truelight
e88942f490 (svn r3306) -Fix: forgot sometimes to switch to the right current_player for AIs 2005-12-14 19:21:56 +00:00
truelight
6ca528ec82 (svn r3305) -Rename: Changed all instances of ottd_ related to the AI to ttai_ 2005-12-14 15:54:23 +00:00
truelight
607e518ab8 (svn r3304) -Add: allow AI-events to see the UID of the command
-Fix: improved the logic of the UID code for AIs
2005-12-14 14:38:23 +00:00
peter1138
c5adf63d77 (svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK 2005-12-14 09:15:06 +00:00
peter1138
db78ce622d (svn r3302) - Fix: split drawing of text buttons and the closebox, so the closebox symbol can be centred. 2005-12-14 08:05:36 +00:00
tron
82542799e2 (svn r3301) One more static 2005-12-14 06:51:19 +00:00
tron
28b8b7e269 (svn r3300) Remove unreachable code - in this case some duplicate breaks 2005-12-14 06:49:54 +00:00
tron
bd2eba11b7 (svn r3299) Remove the unimplemented -l option, which should select the language 2005-12-14 06:32:06 +00:00