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
matthijs
8f873d4ece
(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
bb90e51ac5
(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
e744bbee59
(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
Darkvater
a7793e97a5
(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
miham
e66db9c6d4
(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
peter1138
3532b91eef
(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
3561a3068e
(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
b06b3e2ca2
(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
2956b119b2
(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
tron
bd909b0952
(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
peter1138
592aee1e27
(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
28fe368b7f
(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
tron
ca52ec33b2
(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
6884453b66
(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
531073bea0
(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
truelight
f94da63a8d
(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
f6330faead
(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
peter1138
ec274769b9
(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
560e92aa4a
(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
cc2b51320f
(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
tron
4634243110
(svn r3299) Remove the unimplemented -l option, which should select the language
2005-12-14 06:32:06 +00:00
tron
a2533d5ee6
(svn r3298) Remove unused and write-only variables
2005-12-14 06:28:48 +00:00
tron
bf98086de8
(svn r3298) Remove unused and write-only variables
2005-12-14 06:28:48 +00:00
tron
9822b4d755
(svn r3297) Staticise
2005-12-14 06:20:23 +00:00
tron
23bfc03054
(svn r3297) Staticise
2005-12-14 06:20:23 +00:00
tron
ae624ee690
(svn r3296) Warn about testing an undefined macro with #if - should most probably be #ifdef
2005-12-14 06:16:34 +00:00
tron
ce94c90a7b
(svn r3296) Warn about testing an undefined macro with #if - should most probably be #ifdef
2005-12-14 06:16:34 +00:00
Darkvater
9b43afecf1
(svn r3295) - Regressionfix: scrolling with mousewheel no longer worked in saveload dialogs because of restriction that scroller is only active for widget + next widget is scrollbar. Yes, we need a better window system.
2005-12-13 22:28:44 +00:00
Darkvater
d8727d7fcd
(svn r3295) - Regressionfix: scrolling with mousewheel no longer worked in saveload dialogs because of restriction that scroller is only active for widget + next widget is scrollbar. Yes, we need a better window system.
2005-12-13 22:28:44 +00:00