frosch
dea505cbb8
(svn r14459) -Fix [FS#2343]: Update station-spread when building or removing oilrigs to make them consistent with station-spread-calculation on game-load and to make oilrig-stations behave like any other station type.
2008-10-12 10:22:13 +00:00
smatz
2611fbeb18
(svn r14458) -Fix [FS#2341](r14368): crash when there was a tram dead end after a station/tunnel/bridge (frosch123 and Rubidium)
2008-10-10 22:50:31 +00:00
translators
9075eafaae
(svn r14457) -Update: WebTranslator2 update to 2008-10-10 22:29:03
...
french - 28 changed by glx (28)
italian - 6 fixed, 28 changed by lorenzodv (34)
korean - 43 changed by dlunch (43)
latvian - 75 fixed, 191 changed by v3rb0 (266)
persian - 34 fixed by ali sattari (34)
slovak - 14 fixed by lengyel (14)
swedish - 26 changed by Andreas (26)
2008-10-10 22:29:13 +00:00
frosch
70e1e83eb2
(svn r14456) -Fix: Obiwan in catchment-area and station-spread of docks.
2008-10-10 20:09:29 +00:00
rubidium
a34bd150fe
(svn r14450) -Fix [FS#2337]: time table restoring did check too restrictively causing order backups not to be properly restored.
2008-10-08 11:29:17 +00:00
rubidium
1d2fbbc8a7
(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
2008-10-08 11:03:43 +00:00
smatz
1906aa2bbb
(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker)
2008-10-07 20:57:41 +00:00
michi_cc
b3726f4c7c
(svn r14447) -Change [FS#2333]: Rename YAPP "advanced signals" to "path signals" and "normal signals" to "block signals".
2008-10-07 20:13:22 +00:00
rubidium
719891c23e
(svn r14446) -Fix [FS#2330]: when a road stop gets moved make sure to update the destination of RVs going to that road stop.
2008-10-07 18:46:12 +00:00
translators
0e518c2d92
(svn r14445) -Update: WebTranslator2 update to 2008-10-07 17:43:40
...
latvian - 2 fixed, 15 changed by v3rb0 (17)
spanish - 6 fixed by eusebio (6)
ukrainian - 6 fixed by mad (6)
2008-10-07 17:43:47 +00:00
translators
249a9c0912
(svn r14444) -Add: stubs for two new languages: Persian (or Farsi) and Ido.
2008-10-07 14:22:04 +00:00
frosch
1358756071
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
2008-10-05 18:42:59 +00:00
translators
e17db9655c
(svn r14441) -Update: WebTranslator2 update to 2008-10-05 17:45:23
...
catalan - 6 fixed by arnaullv (6)
german - 1 changed by sulai (1)
hungarian - 1 fixed, 1 changed by alyr (2)
norwegian_bokmal - 6 fixed by christian (6)
simplified_chinese - 1 fixed by ww9980 (1)
traditional_chinese - 2 changed by josesun (2)
2008-10-05 17:45:33 +00:00
smatz
b4a307d0bb
(svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash
2008-10-04 10:25:12 +00:00
translators
5f9e2e60fb
(svn r14438) -Update: WebTranslator2 update to 2008-10-03 17:45:52
...
brazilian_portuguese - 6 fixed by tucalipe (6)
dutch - 6 fixed by habell (6)
french - 6 fixed by glx (6)
galician - 6 fixed by Condex (6)
german - 6 fixed, 19 changed by sulai (25)
hungarian - 48 fixed by alyr (48)
korean - 6 fixed by dlunch (6)
simplified_chinese - 84 fixed by ww9980 (84)
slovenian - 6 fixed by Necrolyte (6)
swedish - 6 fixed by ChrillDeVille (6)
traditional_chinese - 9 fixed, 69 changed by josesun (78)
2008-10-03 17:46:13 +00:00
rubidium
da2b14e6b2
(svn r14436) -Fix [FS#1793]: (fast) trains would sometimes move one time too often/little when moving from diagonal<->non-diagonal tracks (iguannab)
2008-10-03 12:55:39 +00:00
rubidium
b727f93bbc
(svn r14434) -Fix (r14432): compile warning.
2008-10-02 22:48:52 +00:00
rubidium
bdd756b58c
(svn r14432) -Fix: tile description of tiles with only one signal that is not the normal signal showing "normal signal and <signal type on tile>".
2008-10-02 00:23:30 +00:00
rubidium
d19d6f21a0
(svn r14431) -Fix (r14414): alias parameter "evaluation" would remove the last byte of the parameters.
2008-10-02 00:08:45 +00:00
michi_cc
ba5575e0fc
(svn r14428) -Fix [FS#2306]: A 90-degree curve can be a safe waiting position if they are forbidden for trains.
2008-10-01 15:48:44 +00:00
rubidium
c9a82ac3e7
(svn r14423) -Codechange: also do r14221 for the strings.
2008-09-30 21:18:28 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
translators
cc1e761eda
(svn r14420) -Update: WebTranslator2 update to 2008-09-30 17:50:15
...
hungarian - 3 fixed, 1 changed by alyr (4)
simplified_chinese - 122 fixed, 2 changed by ww9980 (124)
swedish - 1 fixed by ChrillDeVille (1)
2008-09-30 17:50:21 +00:00
belugas
d130ff3889
(svn r14419) -Codechange: adding two digits for no obvious reason (nor comment), plus code style Infringement.
2008-09-30 16:50:25 +00:00
smatz
a858d0993f
(svn r14417) -Codechange: rewrite GetClosestWaterDistance(), now it is ~100 times faster than pre-r14416 in average case
2008-09-29 18:56:36 +00:00
smatz
e65771f25c
(svn r14416) -Fix (r10074)(r10517): substraction was done the other way in the 'nearest land/water' check (~25% performance penalty)
2008-09-29 18:34:05 +00:00
smatz
c631c26a9f
(svn r14415) -Fix (r10074): void tiles could be the nearest 'land' for water industries
2008-09-29 18:23:56 +00:00
rubidium
e7829c1a57
(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
2008-09-29 16:27:02 +00:00
frosch
c20c3be91d
(svn r14412) -Documentation: Comment some functions related to the advanced settings. Patch by Alberth, but with less excessive use of 'at'.
2008-09-28 15:42:15 +00:00
frosch
1032dbe142
(svn r14411) -Fix (r14406): IsFrontEngine() is only valid for trains.
2008-09-28 15:07:03 +00:00
rubidium
e635df8d53
(svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint.
2008-09-28 13:50:11 +00:00
frosch
a370f32c15
(svn r14409) -Codechange: Simplify a loop and correct a comment.
2008-09-28 12:38:56 +00:00
glx
f2d7c48b31
(svn r14408) -Fix (r9205): generation seed set using -G was always overwritten by -g
2008-09-27 22:19:34 +00:00
frosch
76c13beef0
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
2008-09-27 17:08:03 +00:00
frosch
67db5087cd
(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.
2008-09-27 14:58:46 +00:00
frosch
05d8a0ebad
(svn r14405) -Fix [FS#2289]: Correct handling of selling free wagons while the following vehicle is an engine (i.e. a new train is created).
2008-09-26 19:25:49 +00:00
rubidium
257f7a229b
(svn r14404) -Change [FS#2176]: don't make the town flatten land unconditionally when build on slopes is turned on. Based on a patch by Eddi.
2008-09-26 19:11:15 +00:00
frosch
436011dda3
(svn r14403) -Fix (r14384): The condition was too restrictive.
2008-09-26 19:01:57 +00:00
translators
804185d392
(svn r14402) -Update: WebTranslator2 update to 2008-09-26 17:45:50
...
slovenian - 3 fixed by Necrolyte (3)
traditional_chinese - 1 fixed, 8 changed by josesun (9)
2008-09-26 17:47:39 +00:00
peter1138
37931fb2c6
(svn r14401) -Fix (r11724): Don't check articulated parts or rear multihead parts for callback 1D when moving a chain of wagons.
2008-09-26 06:52:06 +00:00
smatz
e4242c8735
(svn r14398) -Cleanup (r14395): unused function sneaked in
2008-09-25 09:50:31 +00:00
rubidium
86f1a98ac8
(svn r14397) -Fix: possible buffer overrun, wrong parameter type passed to printf and && where || is meant. Found by MSVC's code analysis (Darkvater)
2008-09-24 23:25:24 +00:00
smatz
b907ffec97
(svn r14396) -Fix: ctrl+right click at 'Go to nearest depot' order scrolled to depot with DepotID == 0
2008-09-24 16:51:36 +00:00
smatz
6987e6015a
(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
...
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
2008-09-24 16:40:06 +00:00
translators
7a527807d9
(svn r14394) -Update: WebTranslator2 update to 2008-09-24 14:01:38
...
danish - 8 changed by ThomasA (8)
german - 5 changed by sulai (5)
hungarian - 17 fixed, 4 changed by alyr (21)
korean - 45 changed by dlunch (45)
norwegian_bokmal - 9 fixed by christian (9)
spanish - 1 changed by eusebio (1)
traditional_chinese - 91 fixed, 1044 changed by josesun (1135)
2008-09-24 14:01:49 +00:00
rubidium
a143100f46
(svn r14393) -Fix [FS#2318]: deleting the same window (pointer) twice.
2008-09-23 20:12:13 +00:00
rubidium
57d592828b
(svn r14392) -Fix [FS#1404]: some widgets saw a single click as multiple clicks.
2008-09-23 19:25:00 +00:00
rubidium
6a931d67cd
(svn r14390) -Codechange: replace magic constants with symbolic constants.
2008-09-23 15:24:15 +00:00
translators
ff76ef6a0a
(svn r14386) -Update: WebTranslator2 update to 2008-09-22 19:58:30
...
brazilian_portuguese - 3 fixed by tucalipe (3)
catalan - 3 fixed by arnaullv (3)
english_US - 2 fixed by WhiteRabbit (2)
estonian - 1 fixed by kristjans (1)
french - 1 fixed by glx (1)
galician - 1 changed by Condex (1)
hungarian - 3 changed by alyr (3)
korean - 18 changed by dlunch (18)
norwegian_bokmal - 194 fixed by christian (194)
spanish - 2 fixed by eusebio (2)
2008-09-22 19:58:46 +00:00
frosch
5abea62e3e
(svn r14384) -Fix: Moving the first vehicle of a train elsewhere might require a new unitnumber for the remaining chain.
2008-09-22 19:28:53 +00:00
smatz
abbc9cd9cb
(svn r14383) -Fix [FS#2316](r14343): handle invalid 'v->u.air.targetairport' in the NewGRF code, too
2008-09-22 14:34:38 +00:00
rubidium
7ef5406946
(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
2008-09-21 18:28:35 +00:00
frosch
2bf182fb36
(svn r14369) -Fix: Enforce non-front engines to be stopped.
...
This could be caused by old savegames resp. their conversion, and causes
trouble for e.g. autoreplace.
2008-09-21 14:03:47 +00:00
rubidium
cccd1a8739
(svn r14368) -Fix [FS#1852]: trams jumping when reversing on a single trambit (like caused during road construction reworks) or when (manually) reversing in a corner.
2008-09-21 11:26:50 +00:00
frosch
3dceffd283
(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
2008-09-20 18:31:31 +00:00
glx
c125cfa6cc
(svn r14365) -Backport (r14364 from NoAI): add the ability do CmdBuildSingleSignal to directly place the correct signal, instead requiring multiple inputs before doing so
2008-09-20 17:43:06 +00:00
glx
fe5cc9c839
(svn r14363) -Fix [FS#2206]: some keypress combinations could be handled twice
2008-09-20 16:07:56 +00:00
frosch
07418cbf7f
(svn r14362) -Fix (r3403): Also connect multiheaded parts in free wagon chains.
2008-09-20 10:53:08 +00:00
translators
c3c58c95b9
(svn r14361) -Update: WebTranslator2 update to 2008-09-19 20:23:28
...
italian - 8 fixed by lorenzodv (8)
korean - 3 fixed by leejaeuk5 (3)
simplified_chinese - 119 fixed by ww9980 (119)
spanish - 1 fixed by eusebio (1)
swedish - 13 fixed by ChrillDeVille (13)
ukrainian - 3 fixed by mad (3)
2008-09-19 20:23:41 +00:00
smatz
89edec7bfb
(svn r14360) -Cleanup (r12652): remove unused handler for the 'Tranfser' button
2008-09-19 16:34:24 +00:00
rubidium
ee2a851aab
(svn r14359) -Fix [FS#2311]: the ownership of roadtiles was not properly set for very old savegames (including TTD's) making it impossible to remove some pieces of road.
2008-09-18 15:32:20 +00:00
smatz
deaa0725e9
(svn r14356) -Fix [FS#2307](r14258): converting of railtype was broken for tunnels and bridges
2008-09-17 17:23:57 +00:00
belugas
217db3cb61
(svn r14352) -Feature: Allow sorting vehicles by remaining life time.
...
Patch by yorick
2008-09-17 02:30:24 +00:00
smatz
9fed67a05a
(svn r14351) -Codechange: call CFollowTrackT::GetSingleTramBit() only if we know it is a tram, so compiler doesn't generate code for trains and ships
2008-09-17 00:32:35 +00:00
smatz
97150dcffd
(svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls
2008-09-16 22:56:43 +00:00
smatz
7ae255a553
(svn r14348) -Fix (r1667): signs were not updated on company bankrupcy/sell, they have colour of invalid player
2008-09-16 20:57:49 +00:00
smatz
c998342206
(svn r14346) -Codechange [FS#2184]: reduce code duplication when jumping to next/previous sign in signs_gui.cpp (Roujin)
2008-09-16 19:18:22 +00:00
smatz
5a1203963f
(svn r14345) -Fix: delete the RenameSignWindow when 'its' sign is deleted
...
Also, it makes sure the RenameSignWindow isn't open when there are no signs (and crashes associted with that)
2008-09-16 19:05:38 +00:00
smatz
4a97033e7e
(svn r14344) -Fix: when a new airport is built in the same tick as the old station is deleted, aircraft may go crazy (and crash the game)
2008-09-16 16:07:18 +00:00
smatz
192d348f78
(svn r14343) -Fix [FS#2300]: invalid v->u.air.targetairport could cause crashes at several places when the station pool got smaller
2008-09-16 15:15:41 +00:00
smatz
47d19f7914
(svn r14340) -Fix (r11822): signs from old savegames were lost (causing little memory leaks)
2008-09-16 11:19:07 +00:00
smatz
dce7bec2d3
(svn r14339) -Fix (r13731): crash when loading the intro game failed
2008-09-15 23:50:12 +00:00
smatz
5f4ff33ce3
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
2008-09-15 22:58:41 +00:00
smatz
a20dae0df1
(svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty
2008-09-15 22:45:18 +00:00
frosch
bffc5717bc
(svn r14335) -Codechange: Remove some magic numbers.
2008-09-15 19:55:00 +00:00
smatz
1266b1a73f
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
belugas
0682dc3a0d
(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by introducing a daily random industry change.
...
This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process.
Thanks to frosch, for nice code ideas and rewrites
2008-09-15 17:18:22 +00:00
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
2008-09-15 16:29:40 +00:00
rubidium
ff89c704fa
(svn r14330) -Fix: compile warnings in some unfinished lang files.
2008-09-15 13:32:59 +00:00
rubidium
1ce4e5721b
(svn r14329) -Fix (r14306): selections in the group GUI weren't shown anymore.
2008-09-15 10:02:39 +00:00
smatz
6be25eabb3
(svn r14328) -Fix (r11822): when a company was renamed and then manager was renamed before building anything, company name changed
2008-09-15 08:37:40 +00:00
rubidium
c496fe4d1a
(svn r14327) -Fix [FS#2251]: if you rename a town before building something and build something near that town your company would be called "<old townname> Transport".
2008-09-14 20:11:34 +00:00
rubidium
497ded7e40
(svn r14326) -Fix: some wrong comments (Yexo)
2008-09-14 19:36:31 +00:00
translators
cc16809f71
(svn r14325) -Update: WebTranslator2 update to 2008-09-14 17:42:18
...
czech - 2 fixed, 31 changed by Hadez (33)
english_US - 211 fixed by WhiteRabbit (211)
galician - 193 fixed, 10 changed by Condex (203)
german - 2 fixed, 38 changed by sulai (40)
swedish - 60 fixed by ChrillDeVille (60)
2008-09-14 17:42:25 +00:00
rubidium
7c8a50d7d8
(svn r14324) -Fix [FS#2241]: free any blocks that a helicopter may have on an oilrig when the helicopter gets forcefully removed (bankruptcy). For other airports this isn't needed as they can't be used by multiple companies.
2008-09-14 16:49:21 +00:00
smatz
5df524ecc0
(svn r14323) -Fix (r14064): forgot a return...
2008-09-14 16:01:46 +00:00
smatz
c5960b4be1
(svn r14322) -Fix (r10368): possible assert when renaming removed waypoint
2008-09-14 15:48:49 +00:00
rubidium
6ce4fe40f7
(svn r14321) -Add: support for newgrfs printing bytes/words/dwords as hexadecimals.
2008-09-14 14:31:37 +00:00
rubidium
811193e468
(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
2008-09-14 10:39:22 +00:00
smatz
9174c19291
(svn r14319) -Fix (r10760): use operator delete when deleting an order, so order pool fills up a bit slower
2008-09-14 10:32:32 +00:00
rubidium
cbbb2eb85c
(svn r14318) -Fix [FS#2296]: OSK of the chat box did not get updated. This as the chatbox got a higher priority than the OSK instead of the usual other way around.
2008-09-14 10:30:31 +00:00
peter1138
45ce441a55
(svn r14317) -Fix (r13662) [FS#2298]: Order distance processing for conditional orders on ships treated v->orders as an array, and didn't use the correct next order.
2008-09-14 08:47:18 +00:00
smatz
54d1b49981
(svn r14316) -Fix: do not allow building road over level crossings and drive-through road stops in the wrong direction even when the roadtype is present
2008-09-13 17:37:18 +00:00
smatz
c4d49dfc21
(svn r14315) -Fix: allow adding roadtypes only to drive-through road stops
2008-09-13 17:26:44 +00:00
smatz
d5ca29a5ab
(svn r14314) -Fix: pay for two road bits when adding/removing roadtype at drive through road stop/level crossing
2008-09-13 17:06:44 +00:00
frosch
856157b6da
(svn r14313) -Codechange: Move functions dealing with the EngineRenew pool to their own file.
2008-09-13 15:49:29 +00:00
rubidium
0251a9c529
(svn r14310) -Fix: don't show palette information in the newgrf lists of the network lobby.
2008-09-13 12:40:31 +00:00
rubidium
ab4d0e2dac
(svn r14309) -Fix [FS#2244]: aircraft frozen above oil rig when the next order is invalid.
2008-09-13 11:00:30 +00:00
rubidium
defecbc6ef
(svn r14308) -Fix [FS#2268]: pay extra when tram/road bits need to be build for a roadstop.
2008-09-13 10:41:00 +00:00
smatz
66be028ad4
(svn r14307) -Fix: when deleting a station, remove news items regarding it
2008-09-13 10:19:51 +00:00
rubidium
fc62d736f7
(svn r14306) -Codechange: unify the code to draw the vehicle list.
...
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
2008-09-13 10:04:36 +00:00
frosch
1647597943
(svn r14305) -Fix [FS#2294] (r5033): [YAPF] Only reserve road slots for multistop when they are really reachable.
2008-09-12 23:23:41 +00:00
smatz
3236b3d10e
(svn r14304) -Fix (r14104): waypoint train list wasn't closed with the waypoint window (crashes since r14296)
2008-09-12 22:52:48 +00:00
rubidium
3b4d15d35b
(svn r14303) -Codechange: make the vehicle list part of the group window look exactly like the vehicle list instead of some buttons being one pixel wider/smaller.
2008-09-12 21:59:34 +00:00
rubidium
3384638e36
(svn r14302) -Codechange: simplify and make the vehicle list and group windows behave the same w.r.t. getting wider (by default) for trains than the other vehicles.
2008-09-12 21:58:36 +00:00
rubidium
560e5560f1
(svn r14301) -Codechange: give the vehicle list and group list the same relative size and the same absolute height for the vehicle list items.
2008-09-12 21:20:12 +00:00
translators
95bdb5a6a3
(svn r14300) -Update: WebTranslator2 update to 2008-09-12 17:41:59
...
brazilian_portuguese - 13 fixed by tucalipe (13)
catalan - 12 fixed by arnaullv (12)
danish - 9 fixed, 7 changed by ThomasA (16)
dutch - 1 changed by habell (1)
estonian - 5 fixed by kristjans (5)
galician - 98 fixed, 6 changed by Condex (104)
german - 7 fixed, 83 changed by sulai (69), dih (21)
korean - 12 fixed by leejaeuk5 (12)
romanian - 20 fixed by kneekoo (20)
slovenian - 5 fixed by Necrolyte (5)
2008-09-12 17:42:11 +00:00
rubidium
6d52fce720
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
2008-09-12 17:38:57 +00:00
rubidium
d6bc633870
(svn r14298) -Fix [FS#2214]: "{CARGO} from unknown destination".
2008-09-12 17:16:04 +00:00
rubidium
8d449825f9
(svn r14297) -Fix: one could be trying to get the station name of a station that is outside of the pool.
2008-09-12 17:14:07 +00:00
rubidium
8f42c38039
(svn r14296) -Codechange: there is no case where an invalid waypoint index should be passed to be drawn as a string.
2008-09-12 17:11:28 +00:00
belugas
a2b00e24b6
(svn r14295) -Fix(r14294): If the house is not built yet, still give me proper coordinates, pretty please!
...
Plus, two(2) rogue tabs found their way in.
2008-09-12 17:05:23 +00:00
belugas
13eab4177d
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
2008-09-12 17:02:22 +00:00
smatz
37edc141e2
(svn r14293) -Change: do not show PBS track reservation in the intro game
2008-09-11 21:53:59 +00:00
frosch
80b0671cc9
(svn r14292) -Cleanup (r11128): Move an 'if' out of a loop as it does not need to be iterated. (spotted by smatz)
2008-09-11 19:44:30 +00:00
frosch
33c2b798fb
(svn r14291) -Fix [FS#2288] (r12853): For tunnels DrawCatenary() draws only pillars; DrawCatenaryOnTunnel() draws only wires.
2008-09-11 19:12:31 +00:00
smatz
ef03a41631
(svn r14290) -Fix (r13932): level crossings could be barred when they shouldn't be after savegame conversion
2008-09-11 17:41:43 +00:00
smatz
9431bf1c29
(svn r14289) -Fix [FS#2286](r3720)(r1): sound effects an music volume should be in range 0-127, default value shouldn't be higher
...
(based on a patch by kakaopor)
2008-09-11 13:58:59 +00:00
michi_cc
1b7de43e80
(svn r14286) -Fix [FS#2265]: If a change of conventional/electric rail coincided with the start of a station platform, stale reservations could be left behind.
2008-09-09 19:21:22 +00:00
michi_cc
fa3f2ae035
(svn r14285) -Fix [FS#2263]: A train inside a wormhole could free the reservation of another train inside the wormhole.
2008-09-09 19:02:47 +00:00
michi_cc
a7a7e2d3cc
(svn r14284) -Fix (r13958): Trains would not look ahead and extend their reservation on a waypoint tile in all cases.
2008-09-09 18:47:53 +00:00
smatz
0757669c49
(svn r14283) -Fix [FS#2281](r14175): beep only after clicking on the main toolbar, not after finishing the selection
2008-09-09 17:42:31 +00:00
translators
e5081f587a
(svn r14282) -Update: WebTranslator2 update to 2008-09-09 17:38:39
...
czech - 1 fixed, 7 changed by Hadez (7), joeprusa (1)
danish - 61 fixed, 6 changed by ThomasA (28), MiR (39)
dutch - 6 fixed by habell (5), webfreakz (1)
estonian - 1 fixed by kristjans (1)
finnish - 66 fixed by habazi (66)
french - 2 fixed, 2 changed by glx (4)
galician - 14 fixed by Condex (14)
german - 63 fixed, 16 changed by sulai (41), dih (38)
italian - 1 fixed, 1 changed by lorenzodv (2)
piglatin - 27 fixed by adammw (27)
romanian - 57 fixed by kneekoo (57)
russian - 13 fixed by Smoky555 (13)
slovenian - 6 fixed by Necrolyte (6)
spanish - 9 fixed by eusebio (9)
ukrainian - 6 fixed by mad (6)
2008-09-09 17:40:23 +00:00
smatz
f503c7c99e
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
2008-09-09 12:26:25 +00:00
frosch
95ba19ee69
(svn r14276) -Fix: Rename one of the advanced settings, as 'TTDPatch compatible nonstop handling' wasn't a correct description anymore.
2008-09-08 19:20:39 +00:00
frosch
e3f2da01d3
(svn r14275) -Change: Rename 'Configure patches' to 'Advanced settings'.
2008-09-08 17:23:50 +00:00
smatz
db7c2b97f8
(svn r14274) -Fix (r10237): nonexistant order could be selected in the timetable window (causing SIGFPE)
2008-09-08 11:06:43 +00:00
smatz
0a4090b8a7
(svn r14270) -Fix: make small UFO aware of articulated RVs
2008-09-07 22:23:25 +00:00
smatz
2c0a95ed66
(svn r14265) -Fix (r10750): desyncs after deleting a waypoint because of explicit destructor call instead of using operator delete
2008-09-07 18:21:57 +00:00
smatz
06be820730
(svn r14263) -Codechange: give a better error message when removing a sign fails
2008-09-07 16:22:55 +00:00
rubidium
3b7ffcf759
(svn r14260) -Fix [FS#2277]: merge keycode for "normal" 0-9 keys and keypad 0-9 keys so people don't get confused that the keypad doesn't work as expected.
2008-09-07 11:55:28 +00:00
rubidium
9474db5cb6
(svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
...
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
2008-09-07 11:23:10 +00:00
rubidium
f4ee4fd5ae
(svn r14257) -Fix (r14153): incorrect update of ini-file group tail pointer causing memory corruption.
2008-09-07 08:51:26 +00:00
belugas
db58c25af2
(svn r14254) -Codechange: Code style and breathing room
2008-09-06 02:53:18 +00:00
translators
a7a2f54716
(svn r14250) -Update: WebTranslator2 update to 2008-09-05 15:13:08
...
afrikaans - 9 fixed by TrueTenacity (9)
croatian - 19 fixed by tperic (19)
czech - 5 fixed, 50 changed by Hadez (55)
dutch - 5 fixed by habell (5)
estonian - 9 fixed by kristjans (9)
french - 5 fixed by glx (5)
german - 85 fixed by dih (45), MaSch (40)
italian - 5 fixed, 4 changed by lorenzodv (9)
polish - 25 fixed, 4 changed by heimat (29)
spanish - 7 fixed by eusebio (7)
ukrainian - 5 fixed by mad (5)
2008-09-05 15:13:30 +00:00
rubidium
72b72bb368
(svn r14245) -Fix: NewGRF configs loaded from the config file would always default to the DOS palette instead of the "default" palette.
2008-09-04 19:43:20 +00:00
rubidium
236c613365
(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".
2008-09-04 19:09:31 +00:00
frosch
e6688ab190
(svn r14239) -Fix [FS#2267]: The engine-purchase-list-sorter doubled running-cost and halfed capacity of double-headed engines.
2008-09-03 18:05:02 +00:00
glx
7b78084150
(svn r14235) -Fix (r14234): compilation with MSVC was broken
2008-09-03 13:25:56 +00:00
smatz
b6962222ee
(svn r14234) -Fix: feeder share was computed wrong when splitting cargo packet
2008-09-03 10:30:07 +00:00
rubidium
a4cd12274c
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
2008-09-03 07:51:07 +00:00
smatz
c620d5e5f0
(svn r14232) -Codechange: use builtin for byte swapping for gcc >= 4.3
2008-09-02 21:11:48 +00:00
rubidium
a482f0053d
(svn r14231) -Fix: Windows binaries not able to read non-windows newlines ini files. For more detail read the 'attached' diff.
2008-09-02 20:24:55 +00:00
frosch
3ce1a5672e
(svn r14230) -Codechange: Simplify MapDOSColour() using the new stuff.
2008-09-02 20:01:18 +00:00
rubidium
fc216aeeb8
(svn r14229) -Feature: allow overriding the palette of the base GRFs. This way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported.
2008-09-02 18:45:15 +00:00
smatz
c0cdfea97d
(svn r14228) -Fix (r14209): double click on the 'last joined' server didn't work
2008-09-02 17:24:46 +00:00
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
2008-09-02 15:20:38 +00:00
smatz
cbe397388f
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
2008-09-02 14:46:28 +00:00
rubidium
fd97a89c57
(svn r14219) -Fix (rthebeginning): 10 days != 6*2.5 days, effectively causing the payment graph to show the wrong data.
2008-09-02 08:25:15 +00:00
peter1138
941f8b5f16
(svn r14215) -Cleanup (r13866): Strange line wrapping...
2008-09-01 08:57:33 +00:00
rubidium
886c8ec79f
(svn r14214) -Codechange: move another TTD graphics bug into the GRF; height problem of sprite #142 .
2008-08-31 23:12:57 +00:00
smatz
b51bb8c221
(svn r14210) -Codechange: remove a useless check when creating new waypoint
2008-08-31 21:30:36 +00:00
smatz
7fa98e33ce
(svn r14209) -Feature(tte): doubleclick to join selected server/company
2008-08-31 20:54:01 +00:00
peter1138
744b3527e5
(svn r14208) -Fix (r14197): Crash if no .obg files are found.
2008-08-31 20:08:24 +00:00
rubidium
dc2ace2494
(svn r14207) -Fix [FS#2262] (r14191): warning about non-virtual destructor in class with virtual functions.
2008-08-31 19:56:52 +00:00
translators
48479cd86f
(svn r14205) -Update: WebTranslator2 update to 2008-08-31 19:47:56
...
bulgarian - 12 fixed by thetitan (12)
catalan - 49 fixed by arnaullv (49)
czech - 4 fixed, 15 changed by Hadez (19)
dutch - 2 fixed, 5 changed by habell (7)
french - 2 fixed, 1 changed by belugas (1), glx (2)
galician - 75 fixed, 54 changed by Condex (129)
german - 10 fixed, 1 changed by dih (11)
italian - 5 fixed, 5 changed by lorenzodv (10)
korean - 14 fixed by leejaeuk5 (14)
slovenian - 6 fixed by Necrolyte (6)
turkish - 18 fixed by jnmbk (18)
ukrainian - 2 fixed by mad (2)
2008-08-31 17:48:17 +00:00
smatz
f2dbe6685d
(svn r14204) -Fix (r7475): when determining length of a string with limited size, first check if we are not out of bounds already
2008-08-31 17:34:03 +00:00
peter1138
7bc5b136b1
(svn r14203) -Codechange: [NewGRF] Disable a GRF if it contains an unknown property, or tries to assign an invalid ID.
2008-08-31 16:41:27 +00:00
peter1138
b4b1f26a9f
(svn r14202) -Codechange: [NewGRF] Give more meaningful output if a house/industry/industrytile is undefined in action 3, and continue processing remaining IDs.
2008-08-31 15:46:14 +00:00
peter1138
7e88b7bb3e
(svn r14201) -Codechange: [NewGRF] Don't continue processing an Action 0 if we didn't read the data for a property -- the data will be wrong for subsequent reads.
...
-Codechange: [NewGRF] *Do* continue processing if the value of a property is invalid, however.
2008-08-31 15:26:46 +00:00
rubidium
6b86de13d6
(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate wrong comments!
2008-08-31 11:51:09 +00:00
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-31 10:50:05 +00:00
peter1138
46e23b8f99
(svn r14198) -Codechange: [NewGRF] Simplify handling of common vehicle properties.
2008-08-31 09:52:47 +00:00
rubidium
c3a9653c89
(svn r14197) -Codechange: rework (original) base graphics determination methods. This yields in the following:
...
-Feature: make configuring the to-be-used base graphics via openttd.cfg and the command line possible.
-Feature: allow both the German as well as non-German toyland graphics as "correct" and official graphics.
-Feature: allow people to create their own base graphics easily and without requiring code changes.
2008-08-31 08:46:43 +00:00
rubidium
1afa473d0f
(svn r14196) -Codechange: make the searching for files with a specific extension extendable.
2008-08-31 08:38:30 +00:00
rubidium
0b88f0cf54
(svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as that's not what you want.
2008-08-30 12:14:56 +00:00
rubidium
d40145008e
(svn r14192) -Fix [FS#2236]: properly update the current timetable's travel/wait times instead of only doing it for one vehicle in the shared order chain and only when some bit has not been set (PhilSophus)
2008-08-30 10:26:16 +00:00
rubidium
d3d34d2aac
(svn r14191) -Codechange: unify the code to skip sprite payload (i.e. not the header).
...
-Fix: sprite payload skipping wouldn't skip enough bytes in a very small subset of compressed sprites.
2008-08-30 09:46:52 +00:00
rubidium
e06c21426e
(svn r14190) -Codechange: use alloc instead of malloc+free when the allocated memory shouldn't be used after the function ended.
2008-08-30 09:43:07 +00:00
peter1138
bfcd6e9772
(svn r14189) -Fix (r14188): Accidental line removal
2008-08-30 09:01:05 +00:00
peter1138
2b67c01a24
(svn r14188) -Codechange: [NewGRF] Cargo type of 0xFF is specified to be 'use first refittable cargo', so don't issue a warning for it.
2008-08-30 08:59:55 +00:00
rubidium
468655c916
(svn r14187) -Fix (r14104): silence warning when compiling without networking enabled.
2008-08-29 21:11:28 +00:00
rubidium
ead8de78ea
(svn r14186) -Fix [FS#2255]: small typo (Jafinto)
2008-08-29 21:07:26 +00:00
rubidium
7c002c14cc
(svn r14185) -Fix (r14153): removing NewGRFs from the config file was impossible.
2008-08-29 21:06:49 +00:00
peter1138
4c56b827e5
(svn r14184) -Codechange: [NewGRF] Since our NewGRF handling is better than it used to be, disable a NewGRF if unexpected sprites are reached.
2008-08-29 20:03:51 +00:00
peter1138
80c9ecedcd
(svn r14182) -Fix: After applying NewGRF settings, all rail and road types were available as the engine availability check was performed too early.
2008-08-28 19:53:25 +00:00
peter1138
38ee1c8d49
(svn r14181) -Fix (r14175): Rail types are not road types
2008-08-28 19:22:03 +00:00
glx
e598fa4701
(svn r14180) -Fix (r8293): close all related vehicle lists when closing a station window (and not only the train list).
2008-08-27 21:30:20 +00:00
frosch
ef60a4cf35
(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
2008-08-27 19:54:41 +00:00
frosch
7ce75961b4
(svn r14178) -Fix [FS#2256]: Do not evaluate GetDestination() for go-to-nearest-depot-orders.
2008-08-27 19:21:01 +00:00
smatz
361292bd23
(svn r14177) -Fix: define INADDR_NONE only when it hasn't been defined yet
2008-08-25 22:10:47 +00:00
smatz
e840aabf8d
(svn r14176) -Fix: better 'safe' than ... 'save'
2008-08-25 20:54:34 +00:00
peter1138
759fb5937d
(svn r14175) -Codechange: Rewrite the main toolbars to use the standard dropdown menu system, allowing flexible menus instead of fixed string lists, and removing code duplication.
2008-08-25 20:42:54 +00:00
smatz
c9bef19043
(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'
2008-08-25 20:10:45 +00:00
peter1138
b60ff46806
(svn r14173) -Fix: Don't check for rail type and catenary on aqueducts.
2008-08-25 18:14:19 +00:00
belugas
23a9938317
(svn r14172) -Feature[newGRF]: Add support for property 0x13 for Bridges.
...
In other words, one can now specifies a 16 bits cost multiplier.
2008-08-25 17:16:27 +00:00
belugas
bc7a87613f
(svn r14171) -Codechange: Make the test for HQ a bit lighter.
...
The presence of a HQ is only dictated by the 7th bit been set.
The rest of the data is related to the size and the type.
2008-08-25 16:41:00 +00:00
peter1138
6a742cef5f
(svn r14170) -Codechange: Missing enum for road type iteration.
2008-08-25 16:20:26 +00:00
belugas
08898f69be
(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
2008-08-25 16:10:34 +00:00
peter1138
cf52b683c0
(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, so that a minimum width can be specified.
2008-08-25 16:07:10 +00:00
rubidium
621a9b647a
(svn r14167) -Fix: items in some ini-groups got duplicated on save.
2008-08-25 15:15:41 +00:00
matthijs
262ddecfc5
(svn r14166) -Doc: Change "forbid 90 degree turn" patch option description to say "not with NTP" instead of "requires NPF" (which has been untrue since the introduction of YAPF). Thanks to FauxFaux for pointing this out.
2008-08-25 12:47:17 +00:00
peter1138
c76455be02
(svn r14165) -Codechange: When over-building rail with a different type, don't convert the rail if the engines of the new type are powered on the existing type.
2008-08-25 10:58:24 +00:00
rubidium
411c65e755
(svn r14164) -Codechange: simplify and unify the addition of ini items with value when not loading an ini file.
...
-Fix: wrong insertion management causing leaks.
2008-08-25 06:35:28 +00:00
peter1138
6e4d8a273e
(svn r14162) -Fix: Allow rail type conversion if the rail type cost multipliers are the same.
2008-08-24 23:29:58 +00:00
rubidium
b2d6254b44
(svn r14161) -Codechange: allow inis to be loaded from tars.
2008-08-24 23:12:10 +00:00
peter1138
b45ced35ee
(svn r14160) -Codechange: Move _railtype_cost_multipliers into the rail type information struct.
2008-08-24 23:10:23 +00:00
peter1138
2f80a277eb
(svn r14158) -Codechange: Initialization of rail type data from static source, so data can be changed.
2008-08-24 23:00:11 +00:00
peter1138
ff07598ce2
(svn r14157) -Codechange: Add and use string properties for rail types instead of relying on consecutive string IDs.
2008-08-24 21:31:24 +00:00
smatz
0d4e7f9537
(svn r14156) -Fix (r14153): missing/wrong comments
2008-08-24 17:29:57 +00:00
glx
4a4549405c
(svn r14155) -Fix (r14154): wrong comments
2008-08-24 17:18:05 +00:00
glx
2ddb86eea5
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
2008-08-24 17:02:21 +00:00
rubidium
ae32d158cb
(svn r14153) -Codechange: split ini file reading/saving from settings.cpp.
2008-08-24 13:50:31 +00:00
rubidium
a4854aaddc
(svn r14152) -Fix (r14146): Apple decided to use a name I wanted to use... thus making compilation fail on OSX (planetmaker)
2008-08-24 09:48:21 +00:00
rubidium
8c73b5c42d
(svn r14151) -Codechange: make it possible to choose between the DOS and Windows graphics packs while retaining the possibility to override the palette.
2008-08-24 08:41:38 +00:00
belugas
14bc2b5d4f
(svn r14150) -Add: Add the count of trains using the current waypoint in the vehicle list window's caption
2008-08-24 01:39:56 +00:00
frosch
6aeeeb9012
(svn r14149) -Fix: When selling the front engine of a train consist with another engine at the second position, not all 'important' data was copied to the new head.
2008-08-23 23:31:27 +00:00
frosch
13d938ae3d
(svn r14148) -Fix (r14096) [FS#2239]: Orders were freed while they were still shared by other vehicles.
2008-08-23 23:15:04 +00:00
frosch
32e1fd55c5
(svn r14147) -Codechange: Allow passing 'const Vehicle *' to GetNextUnit() and GetPrevUnit().
2008-08-23 22:31:36 +00:00
rubidium
200f405706
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
2008-08-23 20:16:54 +00:00
frosch
5de17da66e
(svn r14145) -Fix (r14135, r14141): When savegame conversion cannot determine a owner of a greyed waypoint, ensure that the owner is assigned when the waypoint is rebuild.
2008-08-23 19:14:27 +00:00
peter1138
2e28978264
(svn r14144) -Fix (r8826): Incorrect cargo weights
2008-08-23 18:05:52 +00:00
frosch
a813b6a854
(svn r14143) -Codechange: Recenter viewport of waypoint window when relocating the waypoint.
2008-08-23 16:34:05 +00:00
frosch
857df41a6d
(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
2008-08-23 16:26:01 +00:00
frosch
4e0faffc72
(svn r14141) -Fix (r14135): Savegame conversion could assign a recently removed waypoint (grey sign) to a wrong owner.
2008-08-23 16:16:37 +00:00
frosch
63f4726e06
(svn r14140) -Fix (r14135): Enum in saveload-table.
2008-08-23 16:13:31 +00:00
frosch
5216223f45
(svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile.
2008-08-23 16:09:06 +00:00
smatz
0816d2cf20
(svn r14138) -Fix (r12863): dark blue wasn't considered as similiar to blue
2008-08-23 12:29:41 +00:00
celestar
7e8c7dfcbf
(svn r14137) -Codechange: Remove a now unused member of CargoPacket
2008-08-23 09:31:53 +00:00
belugas
7dc212edeb
(svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it.
2008-08-23 02:15:46 +00:00
frosch
f625ecbeba
(svn r14134) -Fix (r12667, r13579) [FS#2245]: Update 'current_order' when changing 'cur_order_index'.
2008-08-23 00:32:01 +00:00
rubidium
ca27155a52
(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
2008-08-22 22:54:38 +00:00
frosch
12f38e56df
(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the current block really is a PBS block. (michi_cc)
2008-08-22 22:48:12 +00:00
frosch
9fe035f8e8
(svn r14131) -Fix (r13952) [FS#2250]: The reservation of adjacent stations was sometimes not freed correctly. (michi_cc)
2008-08-22 22:42:21 +00:00
frosch
f2623e7c09
(svn r14130) -Fix (r13961) [FS#2248]: Clear the stuck state of a train that is reversing with the first vehicle inside a depot. (michi_cc)
2008-08-22 22:28:26 +00:00
frosch
b03fcdf323
(svn r14129) -Fix (r13935) [FS#2247]: Signal state for PBS signals was not updated when cycling the signal side. Patch by michi_cc with a small addition from me.
2008-08-22 22:19:23 +00:00
belugas
bb3c205e05
(svn r14127) -Feature(ette): Give the the player's colour to the waypoint window been shown
2008-08-22 01:14:25 +00:00
frosch
0e2736399e
(svn r14126) -Codechange (r14125): Add some tabs.
2008-08-21 20:45:52 +00:00
frosch
447d0930f7
(svn r14125) -Fix [FS#2237]: Segfault when autoreplace failed very early.
...
Note: Proper indenting in next commit.
2008-08-21 20:42:45 +00:00
belugas
f520a702e0
(svn r14123) -Codechange: a few magical number to sprite name conversions
2008-08-21 19:12:24 +00:00
translators
90176a547a
(svn r14120) -Update: WebTranslator2 update to 2008-08-21 10:46:06
...
brazilian_portuguese - 33 fixed by tucalipe (33)
czech - 1 fixed, 11 changed by Hadez (12)
dutch - 4 fixed by habell (4)
estonian - 25 fixed, 111 changed by kristjans (135), vermon (1)
french - 3 fixed, 8 changed by glx (9), belugas (2)
galician - 78 fixed by Condex (78)
german - 13 fixed by dih (13)
korean - 20 fixed, 1 changed by leejaeuk5 (21)
simplified_chinese - 51 fixed, 1 changed by ww9980 (52)
slovenian - 54 fixed by Necrolyte (54)
ukrainian - 3 fixed by mad (3)
2008-08-21 08:46:25 +00:00
belugas
8385653118
(svn r14119) -Fix(r14104): Forgot to make the gui disappear when the waypoint is deleted. Smatz pointing
2008-08-21 02:19:31 +00:00
belugas
d3dd9c6566
(svn r14118) -Fix(r14104): typos creeping like bugs
2008-08-21 01:42:21 +00:00
frosch
ff749ab09d
(svn r14114) -Fix [FS#2242]: Sign list was not properly updated on removal of signs.
2008-08-20 19:53:42 +00:00
frosch
f42fab0dec
(svn r14113) -Codechange: Language updates for r14112.
2008-08-20 19:33:06 +00:00
frosch
7c5d237447
(svn r14112) -Fix (r13715)[FS#2232]: Action B custom messages with parameteers were broken.
2008-08-20 19:31:35 +00:00
frosch
d43a475650
(svn r14111) -Fix (r2572): [strgen] Changing order of parameters {X:...} did not work for strings including some {StringY}.
2008-08-20 19:10:42 +00:00
glx
ef0458c739
(svn r14110) -Fix: desyncs due to bubbles in toyland
2008-08-20 16:51:08 +00:00
smatz
5d5cb04297
(svn r14109) -Fix (r14107): marking reserved tile dirty is needed for waypoints and stations even when patch option is disabled
2008-08-20 16:06:27 +00:00
belugas
80ca96d469
(svn r14108) -Fix(r14104): Give a more consistent naming of the new gui file
2008-08-20 15:27:22 +00:00
smatz
999994bcf3
(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
2008-08-20 15:21:03 +00:00
belugas
578833ef01
(svn r14106) -Fix(r14104): A string too much been commited
2008-08-20 13:32:57 +00:00
belugas
f2f2bcf23c
(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.
...
Provided by ln
I've added a little fix on currency.cpp too, why not :)
2008-08-20 01:38:12 +00:00
belugas
77ee099212
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
2008-08-20 01:29:05 +00:00
smatz
bd6ef958e7
(svn r14103) -Fix [YAPP]: flooded trains didn't free their reservation
2008-08-19 10:55:33 +00:00
rubidium
aa80c3a96c
(svn r14102) -Fix [FS#1986]: make NewGRF action 0x06's changes persistent over the several loading stages.
2008-08-19 09:08:45 +00:00
rubidium
c98c3122b5
(svn r14101) -Cleanup (r14083): leftover friend.
2008-08-18 21:44:03 +00:00
belugas
1500ed3665
(svn r14099) -Codechange: Welcome back, Celestar.
...
While at it, an alphabetic error been fixed
2008-08-18 17:07:27 +00:00
celestar
23a48b2815
(svn r14098) -Fix: Make the 'Transfer Credit' display aware of the entire consist, not only the first vehicle
2008-08-18 16:52:40 +00:00
rubidium
99efe9aaae
(svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an order when the number of orders was 0; you could see that the vehicles had a shared order though.
2008-08-17 21:07:09 +00:00
rubidium
abd9f74871
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
2008-08-17 19:56:17 +00:00
frosch
ca3f1f6406
(svn r14095) -Fix (r14076): Trains shall not stop instantly.
2008-08-17 18:48:18 +00:00
glx
fbd2db34e6
(svn r14094) -Revert (r14071): caused more problems than it solved
2008-08-17 15:03:54 +00:00
rubidium
2f5caa63f8
(svn r14093) -Fix [FS#2230]: don't flood a NewGRF industry when it implicitly tells that it wants to be build on water (land shape flags bit 5).
2008-08-17 13:56:11 +00:00
rubidium
2f7c20eccd
(svn r14092) -Cleanup (r14083): dead code, i.e. unused function.
2008-08-17 11:52:06 +00:00
frosch
11a20379f3
(svn r14091) -Cleanup (r14083): Remove superfluous '#include's.
2008-08-17 11:49:35 +00:00
rubidium
3663965f3e
(svn r14090) -Fix: the vehicle window of articulated road vehicles would show the clone/refit button when the vehicle was not completely stopped in the depot.
2008-08-17 11:12:56 +00:00
rubidium
b6b9cd9d51
(svn r14089) -Fix [FS#2219]: trains not being able to find a route to a depot when the front is already in the depot.
2008-08-17 11:04:37 +00:00
rubidium
9648bf3019
(svn r14087) -Fix [FS#2228]: flawed parsing of words (as in 2 bytes) in GRF strings due to sign extension (minime)
2008-08-16 21:48:28 +00:00
smatz
25a1c59abb
(svn r14086) -Fix (r13067): rail/road removing by CTRL didn't sometimes work when a depot window was opened
2008-08-16 18:01:23 +00:00
frosch
9751fbe4dc
(svn r14085) -Cleanup (r14083): Remove no longer used functions.
2008-08-16 14:15:32 +00:00
frosch
f3e7b77dcb
(svn r14084) -Codechange: Language updates for r14083.
2008-08-16 14:04:29 +00:00
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
2008-08-16 14:02:20 +00:00
frosch
56459cab81
(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.
2008-08-16 13:52:44 +00:00
glx
c10691faff
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
2008-08-15 22:06:58 +00:00
peter1138
9d0e1b635a
(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is.
2008-08-15 17:54:43 +00:00
frosch
844a83ed58
(svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE.
2008-08-15 13:57:43 +00:00
rubidium
20ee6f1158
(svn r14071) -Fix [FS#2057]: the screen wouldn't be centered on Windows multimonitor systems if the first monitor is right of the second one.
2008-08-13 19:09:27 +00:00
rubidium
d986380169
(svn r14069) -Fix: silence MSVC 64-bits compile warnings.
2008-08-13 14:52:54 +00:00
rubidium
e5bdcfaf9e
(svn r14068) -Fix (r14056): MSVC doesn't support typeof.
2008-08-13 14:26:20 +00:00
rubidium
2d94337e1a
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
2008-08-13 06:22:04 +00:00
rubidium
97c184f8f8
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
2008-08-13 06:05:01 +00:00
rubidium
08e7da71f5
(svn r14062) -Fix [FS#2226]: division by 0 in newai.
2008-08-13 05:12:36 +00:00
belugas
c773d33cc3
(svn r14061) -Codechange: constification and move a declaration more logically
2008-08-13 02:48:50 +00:00
belugas
931f16cfa8
(svn r14060) -Codechange: Replace numbers with Colours enum on Gen world gui.
...
Note that some WWT_TEXT widgets have received a COLOUR_x value.
It is not a valid colour a per say. THe strings been displayed there do have their own colours encoded.
IT is currently just for the sake of ease of writing, as TextColour and Colours are not really related.
2008-08-13 02:43:42 +00:00
belugas
7564dbd32f
(svn r14059) -Fix(r13872): Wrong comments in enum. Dear old copy/paste...
2008-08-13 01:48:58 +00:00
rubidium
0b9be84d46
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
2008-08-12 22:14:57 +00:00
rubidium
d1073ba574
(svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime)
2008-08-12 22:12:14 +00:00
rubidium
fe87fa8205
(svn r14056) -Fix [FS#2192]: the console backlog is too small for list_patches. Now it'll only remove backlog items when there are more than a threshold and when they are there longer than (another) threshold.
2008-08-12 20:49:27 +00:00
rubidium
203b5eed27
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
2008-08-12 20:31:49 +00:00
rubidium
4ae352d288
(svn r14054) -Fix (rthebeginning): long strings in the edit box would cause OpenTTD to stop drawing the string. This is especially noticable with low resolutions and the chat input box.
2008-08-12 19:29:10 +00:00
rubidium
72c154fd0f
(svn r14052) -Codechange: make the size of the chat message "box" configurable and increase the default size slightly so it can hold the longest chat messages.
2008-08-12 12:23:05 +00:00
rubidium
a3910ced70
(svn r14051) -Codechange: enumify the DrawString buffer length.
2008-08-12 11:21:37 +00:00
belugas
61007078b6
(svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too.
2008-08-12 02:20:39 +00:00
rubidium
c04ab6628b
(svn r14048) -Fix (r14019) [FS#2222]: Redo the check for reserved tracks properly this time. (michi_cc)
2008-08-11 22:58:30 +00:00
rubidium
d0c1a989a4
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
2008-08-11 22:45:11 +00:00
rubidium
6995365535
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
2008-08-11 22:08:56 +00:00
rubidium
3b4c3a3df6
(svn r14045) -Codechange: move the network's limitation to chat messages to a more logical location and give it a more consistent name.
2008-08-11 22:07:26 +00:00
belugas
5f52c44c14
(svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too.
2008-08-11 20:06:57 +00:00
belugas
7f5173bf94
(svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array.
2008-08-11 18:30:52 +00:00
glx
16aac30c66
(svn r14041) -Feature(tte): make it possible to filter list_patches output like it's done for other list_* console commands
2008-08-11 17:15:31 +00:00
belugas
ebe9ae2b17
(svn r14040) -Codechange:Remove a hard coded value that is not even representative,
...
since captions have their own encoded colours in string.
2008-08-11 16:31:36 +00:00
rubidium
8726c2fd99
(svn r14039) -Fix [FS#2217]: reversing an overlength train at a station would try to find a route out and sometimes reset the unload counter making it wait 2.5 years before departing instead of waiting until the train would actually leave the station (michi_cc)
2008-08-10 21:56:47 +00:00
rubidium
2086f77dab
(svn r14038) -Fix [FS#2211] (r13731): company limit was not properly enforced for CMD_PLAYER_CTRL.
2008-08-10 19:00:33 +00:00
frosch
4eae917c1c
(svn r14037) -Fix (r8610): The autoreplace gui showed vehicle types for replacement which CmdSetAutoReplace() did not accept.
2008-08-10 15:02:21 +00:00
rubidium
b1ed3bad58
(svn r14036) -Fix [FS#2197,FS#2198]: trains crashing into eachother when signals are changed (michi_cc)
2008-08-10 13:37:09 +00:00
translators
1c04049f1c
(svn r14035) -Update: WebTranslator2 update to 2008-08-10 11:54:57
...
bulgarian - 4 fixed by thetitan (4)
croatian - 15 fixed by knovak (15)
czech - 47 fixed, 29 changed by Hadez (76)
dutch - 29 fixed by habell (29)
estonian - 8 fixed, 63 changed by kristjans (71)
french - 29 fixed, 1 changed by glx (30)
italian - 29 fixed, 6 changed by lorenzodv (35)
russian - 52 fixed by Smoky555 (52)
slovak - 2 fixed by lengyel (2)
spanish - 35 fixed by eusebio (35)
ukrainian - 30 fixed by mad (30)
2008-08-10 09:55:26 +00:00
peter1138
8531a1f430
(svn r14034) -Cleanup (r13938) [FS#2210]: Typo in YAPP constant. (Eddi)
2008-08-09 18:46:51 +00:00
peter1138
6ad76f4d1c
(svn r14033) -Fix (r13938) [FS#2209]: Wrong offset in signal GUI. (Eddi)
2008-08-09 18:42:37 +00:00
bjarni
fbef6535a5
(svn r14032) -Fix (r13584): [OSX] changed the condition for selecting 8 or 32 bpp blitter by default
...
Now we will pick 32 bpp if no 8 bpp fullscreen resolutions are available on the main display (the one with the dock)
2008-08-09 17:56:31 +00:00
frosch
731685cf64
(svn r14031) -Fix (r13850): Determining the refit cargo did not work, when the old vehicle did not carry anything but the new one did.
2008-08-09 16:42:55 +00:00
frosch
92afb4d9bd
(svn r14030) -Fix (r14027): true != false, also rename the parameter to make 'true' and 'false' more intuitively useable.
2008-08-09 11:04:42 +00:00
belugas
815f08982a
(svn r14029) -Fix(r14027): reverting the TC_FROMSTRING back to the magical 0xFE number. Exact meaning will need to be found later.
2008-08-09 03:30:15 +00:00
belugas
9e883ca48f
(svn r14028) -Fix(r14027): Wrong value for the multiline_skipping. Just the other way around.
2008-08-09 02:54:06 +00:00
belugas
e3ea3c8fbe
(svn r14027) -Codechange: Document a bit the DoDrawString function while removing yet som more magic numbers and one "false" colour
2008-08-09 02:11:46 +00:00
glx
788b625553
(svn r14026) -Cleanup (r13995, r14004): trailing whitespaces
2008-08-08 15:49:16 +00:00
smatz
cc3685ffaf
(svn r14024) -Fix (r14019) [YAPP]: YAPF also skips tunnels and bridges. Honor that in penalty calculations. (michi_cc)
2008-08-08 15:02:21 +00:00
smatz
872cefeb27
(svn r14023) -Fix (r13944) [YAPP]: If YAPF encountered a dead-end that had a signal on it, is could be falsely seen as a valid destination. (michi_cc)
2008-08-08 14:58:27 +00:00
smatz
b595d59497
(svn r14022) -Fix (r13957) [YAPP]: Removing station tiles could produce stale reservations, too. (michi_cc)
2008-08-08 13:53:06 +00:00
smatz
5229e45363
(svn r14021) -Fix (r13957) [YAPP]: Overbuilding station tiles with non-track tiles could produce stale reservations. (michi_cc)
2008-08-08 13:29:18 +00:00
rubidium
de629dd62f
(svn r14019) -Fix [FS#2205]: game crash after order skip while waiting for free path (michi_cc).
2008-08-08 09:31:50 +00:00
peter1138
2cb555ed11
(svn r14018) -Fix (r14017): Typos prevented compilation.
2008-08-08 06:02:06 +00:00
belugas
ef22740ccb
(svn r14017) -Codechange: DrawArrowButtons now uses Colours enum to specify the colour of the button
2008-08-08 03:37:00 +00:00
belugas
a2f590aeec
(svn r14016) -Codechange: Remove some magical numbers
2008-08-08 02:28:28 +00:00
peter1138
3c2f69bf62
(svn r14015) -Codechange: Add facility for a drop down list to always close (if requested) when the mouse button is released.
2008-08-07 18:26:13 +00:00
peter1138
6bae045b4a
(svn r14014) -Codechange: Add support for automatically sizing drop down lists to the widest list item.
2008-08-07 18:11:09 +00:00
rubidium
bf65e7e8f9
(svn r14013) -Fix [FS#2202]: do not allow extending signals by dragging in any direction other than the track direction.
2008-08-07 13:07:51 +00:00
peter1138
a993a29b63
(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.
2008-08-07 07:48:57 +00:00
belugas
8c7a450e98
(svn r14011) -Codechange: not required to define an enum which was just the representation of another.
...
If you want to customize it more easily, why not a simple const of said enum value?
2008-08-07 01:28:27 +00:00
peter1138
aff313cd4b
(svn r14009) -Cleanup (r14008): Bad whitespace...
2008-08-06 20:14:21 +00:00
peter1138
1e5175451a
(svn r14008) -Fix (r14004): NewGRF preset drop down list not working
2008-08-06 20:12:42 +00:00
frosch
acf224683d
(svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside.
2008-08-06 19:00:31 +00:00
frosch
cffd5d17de
(svn r14006) -Codechange: Deduplicate some code.
2008-08-06 18:57:37 +00:00
smatz
0eade71bde
(svn r14005) -Codechange: minor coding style fix
2008-08-06 15:52:04 +00:00
peter1138
98d3d86004
(svn r14004) -Codechange: Clean of drop down lists.
...
Move empty item drawing to base ListItem Draw() function.
Remove String() from base class.
Pass correct width to Draw().
2008-08-06 07:10:40 +00:00
belugas
85c84c9d86
(svn r14003) -Codechange: Replace numbers with Colours enum opn some DrawArrowButtons calls
2008-08-06 04:01:07 +00:00
smatz
158d4acbba
(svn r14001) -Fix (r13989): reading wrong variable, train crash on bridge crashes game
2008-08-05 13:25:49 +00:00
peter1138
ddd8b73f0a
(svn r14000) -Codechange: Missing enum entries kind of defeat the point of the enum
2008-08-05 00:17:56 +00:00
rubidium
fe6111d6f2
(svn r13999) -Fix [FS#2190]: crash when the AI tries to find the depot of an airport that doesn't have a depot.
2008-08-04 22:31:49 +00:00
rubidium
0ebcac669e
(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
2008-08-04 19:07:37 +00:00
frosch
96b9fba333
(svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class.
2008-08-04 18:54:19 +00:00
rubidium
b1eaf763e1
(svn r13995) -Fix (r13988): some warnings of the compile farm.
2008-08-04 18:27:54 +00:00
belugas
5c3a18fa90
(svn r13994) -Codechange: replace a few rogue magic numbers with Colours enum values
2008-08-04 17:27:06 +00:00
belugas
d21f73658c
(svn r13993) -Codechange: Associate TextColour values with comments of related values in _string_colormap table
2008-08-04 17:12:23 +00:00
rubidium
6c5f703cf0
(svn r13992) -Fix [FS#2189]: the dedicated console removed any character that was not a printable ASCII character instead. Now it allows UTF8 formated strings too.
2008-08-04 15:07:17 +00:00
smatz
8fba4705f0
(svn r13991) -Codechange: draw text effects after all other signs
2008-08-04 14:40:50 +00:00
glx
0f10939029
(svn r13990) -Fix (r13988): win32 compilation failed
2008-08-04 13:54:10 +00:00
rubidium
7a50ae28d5
(svn r13989) -Fix [FS#2186] (r13953): YAPP track reservation for crashed trains was broken for depots and wormholes (michi_cc).
2008-08-04 13:15:15 +00:00
rubidium
c88cb1daa0
(svn r13988) -Codechange: move the to IP resolving functions to a separate file.
2008-08-04 12:56:38 +00:00
peter1138
a822e259c5
(svn r13987) -Codechange: Resize small map legend dynamically on window resize and when switching small map types, so that the legend is taller only on the industry type and only when the legend will not fit in the available space.
2008-08-04 05:59:28 +00:00
smatz
dcc10a3b8f
(svn r13985) -Fix (r13944): gcc 2.95 compilation
2008-08-03 20:50:12 +00:00
peter1138
63cd8fc24f
(svn r13984) -Codechange: Simplify industry legend on small map, by automatically splitting columns based on widget height.
2008-08-03 20:09:35 +00:00
frosch
628723d45c
(svn r13983) -Fix (r13953) [YAPP]: Crashed trains can be on different trackbits. Make sure there is still a track reservation when one vehicle is cleaned up.
2008-08-03 19:04:11 +00:00
peter1138
1f4b89ff4b
(svn r13982) -Fix (r13981): And then not enough was cleared...
2008-08-03 18:56:44 +00:00
peter1138
e434323d38
(svn r13981) -Fix [FS#AmmlersStillTooLazy]: Resetting construction stage counter reset more than it should.
2008-08-03 18:51:13 +00:00
peter1138
e1451e1124
(svn r13980) -Codechange: Turn small map legend while loop into a for-loop.
2008-08-03 18:18:36 +00:00
peter1138
29ba35df7b
(svn r13979) -Codechange: Use widget dimensions instead of magic number incantations for limiting small map area.
2008-08-03 18:00:28 +00:00
peter1138
65f26bb737
(svn r13978) -Fix: Incorrect widget size.
2008-08-03 17:36:39 +00:00
peter1138
92b63e38f0
(svn r13977) -Codechange: Let ResizeWindowForWidget() handle hidden (zero height or zero width) widgets.
2008-08-03 17:35:08 +00:00
frosch
b92c4cfc92
(svn r13976) -Fix (r13953) [YAPP]: A crashing train could sometimes free the reservation of another train. (assisted by michi_cc)
2008-08-03 17:16:39 +00:00
peter1138
a5453e43b1
(svn r13975) -Codechange: Replace some globals used by the small map window with static members of the window.
2008-08-03 14:58:26 +00:00
frosch
983e297ff0
(svn r13974) -Fix [YAPP]: A train crash could lead to stale reservations. (michi_cc)
2008-08-03 14:16:57 +00:00
smatz
9a1958be91
(svn r13973) -Codechange [YAPP]: Improve the behavior when changing signals to not cause stale reservations. (michi_cc)
2008-08-03 11:28:35 +00:00
rubidium
6639c496c3
(svn r13972) -Fix [FS#2180]: the timetable's "Clear Time" button didn't have any effect.
2008-08-03 08:25:26 +00:00
rubidium
13dee60ae1
(svn r13971) -Fix [YAPP]: segfault due to mixed up variables (michi_cc)
2008-08-03 08:20:04 +00:00
belugas
96892e081a
(svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
...
Mostly forgotten ones.
2008-08-03 02:18:45 +00:00
glx
87c3599895
(svn r13968) -Fix (r13923): 'cast from pointer to integer of different size' warning
2008-08-02 23:30:50 +00:00
rubidium
cc48f3d6f9
(svn r13967) -Codechange [YAPP]: Tweak pathfinder penalties a bit. (michi_cc)
2008-08-02 22:57:47 +00:00
rubidium
bba8ff290e
(svn r13966) -Codechange [YAPP]: Bar level crossings upon path reservation. (michi_cc)
2008-08-02 22:57:18 +00:00
rubidium
88b1ee0b43
(svn r13965) -Add [YAPP]: Implement newgrf var 0x44 for stations (PBS reservation state). (michi_cc)
2008-08-02 22:57:03 +00:00
rubidium
1e2c61360b
(svn r13964) -Codechange [YAPP]: Check if a train needs servicing when reserving the next path segment. (michi_cc)
2008-08-02 22:56:50 +00:00
rubidium
47a5faf874
(svn r13963) -Codechange [YAPP]: Reserve a track when entering a PBS block through a conventional signal. (michi_cc)
2008-08-02 22:56:35 +00:00
rubidium
5c9bb1bbd6
(svn r13962) -Codechange [YAPP]: Do not reverse in front of red signals when inside a PBS block and reversing of stuck trains is disabled. (michi_cc)
2008-08-02 22:56:21 +00:00
rubidium
db637a2b7f
(svn r13961) -Add [YAPP]: Handle train reversing. (michi_cc)
2008-08-02 22:56:07 +00:00
rubidium
9e91bb4b33
(svn r13960) -Codechange [YAPP]: Reserve a path when exiting a depot into a PBS block. (michi_cc)
2008-08-02 22:55:52 +00:00
rubidium
4339948b1f
(svn r13959) -Codechange [YAPP]: Try to extend a train reservation as far as possible and only call into the pathfinder on track choices. (michi_cc)
2008-08-02 22:55:38 +00:00
rubidium
16ab0d84bb
(svn r13958) -Add [YAPP]: Implement look-ahead for trains so they extend their reservation before reaching the end. (michi_cc)
2008-08-02 22:55:23 +00:00
rubidium
753da05bc6
(svn r13957) -Codechange [YAPP]: Free the old path reservation on removing some tracks and reroute trains afterwards. (michi_cc)
2008-08-02 22:55:08 +00:00
rubidium
bce6f7b41c
(svn r13956) -Add [YAPP]: Function for getting the train holding a reserved path. (michi_cc)
2008-08-02 22:54:53 +00:00
rubidium
bd0a420744
(svn r13955) -Codechange [YAPP]: Try to extend the path of a stuck train so it is able to continue. (michi_cc)
2008-08-02 22:54:38 +00:00
rubidium
e9b62103e4
(svn r13954) -Codechange [YAPP]: On reserving a path that ends at the destination, the path could end at a non-safe tile. In this case, extend the reservation based on the next vehicle orders. (michi_cc)
2008-08-02 22:54:23 +00:00
rubidium
d06fb949ff
(svn r13953) -Add [YAPP]: Free track reservations of crashed trains. (michi_cc)
2008-08-02 22:54:07 +00:00
rubidium
10d8fb6456
(svn r13952) -Add [YAPP]: Trains now reserve paths trough PBS signals. Bump savegame version. (michi_cc)
2008-08-02 22:53:51 +00:00
rubidium
33898d49bb
(svn r13951) -Codechange [YAPP]: A train leaving a tile should unreserve the track it came from if it was reserved. (michi_cc)
2008-08-02 22:53:37 +00:00
rubidium
e9c33fb288
(svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when waiting on a path reservation. (michi_cc)
2008-08-02 22:53:21 +00:00
rubidium
0dfaa88c1e
(svn r13949) -Codechange [YAPP]: Declare the functions for processing conditional orders as non-static. (michi_cc)
2008-08-02 22:53:05 +00:00
rubidium
a706766690
(svn r13948) -Add [YAPP]: Extend NPF with a function to find a safe tile and reserve a path. (michi_cc)
2008-08-02 22:52:50 +00:00
rubidium
4f5f3846a0
(svn r13947) -Codechange [YAPP]: Added YAPP-related penalties to NPF. (michi_cc)
2008-08-02 22:52:36 +00:00
rubidium
cd041b6944
(svn r13946) -Add [YAPP]: Implement track reserving for NPF as well. (michi_cc)
2008-08-02 22:52:22 +00:00
rubidium
773f19da05
(svn r13945) -Codechange [YAPP]: Extend CFollowTrackT to not require a Vehicle when following rail. (michi_cc)
2008-08-02 22:52:08 +00:00
rubidium
53cc7e8a5c
(svn r13944) -Add [YAPP]: Add YAPF provider to find a safe tile and reserve a path. (michi_cc)
2008-08-02 22:51:53 +00:00
rubidium
2b153abd93
(svn r13943) -Codechange [YAPP]: Reserved station tiles can now be penalized more in YAPF. This should help with spread out stations. (michi_cc)
2008-08-02 22:51:38 +00:00
rubidium
ecc509195a
(svn r13942) -Codechange [YAPP]: Add a penalty for double slips to YAPF. (michi_cc)
2008-08-02 22:51:23 +00:00
rubidium
8c7983727e
(svn r13941) -Codechange [YAPP]: Added YAPP-related penalties to YAPF. (michi_cc)
2008-08-02 22:51:07 +00:00
rubidium
abc46b1e86
(svn r13940) -Add [YAPP]: YAPF is now able to reserve the found path. (michi_cc)
2008-08-02 22:50:52 +00:00
rubidium
c91c12adde
(svn r13939) -Add [YAPP]: Extend YAPF with the possibility to override the railtype info of the vehicle. (michi_cc)
2008-08-02 22:50:38 +00:00
rubidium
908591b40a
(svn r13938) -Codechange [YAPP]: Add the new signals to the build signal GUI. (michi_cc)
2008-08-02 22:50:22 +00:00
rubidium
3e055b32bf
(svn r13937) -Codechange [YAPP]: Don't cycle through two-sided PBS signals during build. (michi_cc)
2008-08-02 22:50:04 +00:00
rubidium
07a43863c4
(svn r13936) -Codechange [YAPP]: Enable the auto-signal tool to build PBS signals and honor the default signal type. (michi_cc)
2008-08-02 22:49:39 +00:00
rubidium
60006ad24c
(svn r13935) -Codechange [YAPP]: PBS signals can now be built with the normal signal tools. (michi_cc)
2008-08-02 22:49:23 +00:00
rubidium
5c55922a06
(svn r13934) -Codechange [YAPP]: Handle through signals in the pathfinders. (michi_cc)
2008-08-02 22:49:10 +00:00
rubidium
d6645818b4
(svn r13933) -Codechange [YAPP]: Handle through and PBS signals correctly in the signal code. (michi_cc)
2008-08-02 22:48:57 +00:00
rubidium
fe4f23dba2
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
2008-08-02 22:48:43 +00:00
rubidium
ad4fdb76fc
(svn r13931) -Codechange [YAPP]: Retain the reservation state when building/removing waypoints or level crossings. (michi_cc)
2008-08-02 22:48:27 +00:00
rubidium
9295bd3f7c
(svn r13930) -Codechange [YAPP]: Clear track reservation when removing a rail track. (michi_cc)
2008-08-02 22:48:14 +00:00
rubidium
f6555cf6f8
(svn r13929) -Codechange [YAPP]: Reserving and unreserving of single tracks is now possible. (michi_cc)
2008-08-02 22:48:01 +00:00
rubidium
2bb8825538
(svn r13928) -Add [YAPP]: Function for getting the path reservation state of any tile. (michi_cc)
2008-08-02 22:47:48 +00:00
rubidium
df99103a31
(svn r13927) -Add [YAPP]: Draw reserved tracks darker, toggeld by a patch setting. (michi_cc)
2008-08-02 22:47:34 +00:00
rubidium
ec7cc49825
(svn r13926) -Add [YAPP]: Add map accessors for path reservations. (michi_cc)
2008-08-02 22:47:20 +00:00
frosch
770d293788
(svn r13923) -Feature: Show [total-]cargo info in depot when [ctrl-]right-clicking on vehicle.
2008-08-02 12:43:45 +00:00
frosch
0fc769bb6c
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
2008-08-02 11:26:25 +00:00
peter1138
b92520ddfd
(svn r13921) -Codechange (r11473): Use the correct enum...
2008-08-02 10:17:45 +00:00
belugas
d0d285ed57
(svn r13920) -Codechange: uniformise the definition with the declaration of DrawFrameRect
2008-08-02 02:50:40 +00:00
belugas
c5cecdd2e3
(svn r13919) -Codechange: Replace numbers with Colours enum on osk(forgot 2 assignations), statusbar, subsidy, terraform, timetable, toolbar, town, tree and vehicle guis.
2008-08-02 02:28:17 +00:00
rubidium
d67ef3573c
(svn r13917) -Fix [FS#2178]: wrong tooltip for the industry directory's list.
2008-08-01 23:08:11 +00:00
bjarni
862ba19279
(svn r13913) -Fix (r13893): [OSX] fixed a warning about MAC_OS_X_VERSION_10_5 not being defined on all systems
2008-08-01 17:43:11 +00:00
rubidium
ad36ea6b29
(svn r13912) -Codechange: remove some casts by returning the proper type instead of void*.
2008-08-01 15:07:31 +00:00
smatz
7c0b1172e1
(svn r13911) -Fix (r13806): do not consider crashed train as waiting at signal, v->direction doesn't have to match track anyway
2008-08-01 13:25:19 +00:00
rubidium
c5a4e90338
(svn r13910) -Document: string drawing related functions and types (Alberth)
2008-08-01 09:34:34 +00:00
rubidium
47592b9288
(svn r13909) -Codechange: use the same type before CmdBuildRailStation as it used in the command itself (Alberth)
2008-08-01 09:26:39 +00:00
rubidium
62c94f1b12
(svn r13908) -Codechange: merge two tables into a single one (Alberth)
2008-08-01 09:17:27 +00:00
belugas
69671d3aef
(svn r13907) -Codechange: Replace a number with Colours enum on DrawFrameRect usage
2008-08-01 03:43:53 +00:00
translators
325ef293fd
(svn r13905) -Update: WebTranslator2 update to 2008-08-01 02:27:37
...
brazilian_portuguese - 22 fixed by tucalipe (22)
dutch - 9 fixed by habell (9)
estonian - 4 fixed by kristjans (4)
french - 5 fixed, 1 changed by glx (6)
galician - 105 fixed, 206 changed by Condex (311)
italian - 5 fixed, 2 changed by lorenzodv (7)
korean - 15 fixed by leejaeuk5 (15)
portuguese - 48 fixed by supra90 (48)
slovak - 30 fixed by lengyel (30)
spanish - 9 fixed by eusebio (9)
ukrainian - 22 fixed by mad (22)
2008-08-01 00:31:20 +00:00
glx
513f4c7ca7
(svn r13904) -Fix (r13715): 'cast from/to pointer to/from integer of different size' warnings
2008-07-31 22:55:12 +00:00
rubidium
fb80ed218d
(svn r13903) -Fix: missing eol-style property.
2008-07-31 21:06:19 +00:00
belugas
10f450e2d4
(svn r13900) -Codechange: Replace numbers with Colours enum on settings, smallmaps, stations and signs guis.
2008-07-31 17:45:52 +00:00
belugas
87f95cd4cf
(svn r13899) -Codechange: Replace numbers with Colours enum on roads gui.
...
save command file before commiting :P
2008-07-31 17:19:47 +00:00
belugas
d2c29c22fb
(svn r13898) -Codechange: Replace remaining numbers with Colours enum on players, roads and rails guis
2008-07-31 17:17:27 +00:00
belugas
d34eedfdb3
(svn r13897) -Codechange: Replace remaining numbers with Colours enum on news guis
...
-Fix: a few misalignements
2008-07-31 16:44:51 +00:00
belugas
5bbb5721df
(svn r13896) -Codechange: Replace numbers with Colours enum on newgrf, order and osk guis
2008-07-31 16:42:11 +00:00
belugas
5c3b347350
(svn r13895) -Codechange: Replace numbers with Colours enum on music gui and on DrawFrameRect calls
...
-Fix: a few misalignements
2008-07-31 14:42:55 +00:00
bjarni
61799786d5
(svn r13893) -Fix: [OSX] solved a deprecated warning specific to 10.5
2008-07-31 14:00:01 +00:00
smatz
5e2c2db235
(svn r13891) -Fix (r12547): one could click on waypoint and station signs even when they were invisible
2008-07-31 13:28:23 +00:00
peter1138
b7e64bb5a6
(svn r13890) -Codechange: Simplify drawing of invisibilty buttons in the transparency gui -- the real widgets above already have coordinates so there is no need to hardcode them again. As an added bonus the invisibility buttons now line up properly.
2008-07-31 05:47:29 +00:00
belugas
1cd0aa4b74
(svn r13889) -Codechange: Replace numbers with Colours enum on transparency gui.
...
-Fix: "true" is not a color. COLOUR_PALE_GREEN should look better, at least in the code ;)
2008-07-31 03:13:35 +00:00
belugas
22d9d9c588
(svn r13888) -Codechange: Replace numbers with Colours enum on miscellaneous guis.
2008-07-31 02:59:21 +00:00
belugas
1737ce45e3
(svn r13887) -Codechange: Replace numbers with Colours enum on autoreplace, build_vehicle, cheat, depot and dock guis.
...
The fact that it goes alphabetically is pure coincidence.
2008-07-31 02:36:01 +00:00
frosch
93d0ca8731
(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.
2008-07-30 18:23:12 +00:00
smatz
515b55c635
(svn r13884) -Fix (r11822): custom vehicle names from TTD(Patch) games were lost
2008-07-30 17:41:02 +00:00
belugas
faaa637987
(svn r13883) -Codechange: Replace numbers with Colours enum on graph gui
2008-07-30 17:39:26 +00:00
belugas
63f7214abd
(svn r13882) -Codechange: Replace widget numbers with appropriate enums
2008-07-30 17:13:55 +00:00
frosch
c840a63dfd
(svn r13881) -Cleanup (r12751): Remove some dead code.
2008-07-30 17:06:17 +00:00
belugas
c848b9d3c4
(svn r13880) -Codechange: Replace numbers with Colours enum on intro gui, and align a bit the code
2008-07-30 16:23:55 +00:00
belugas
4cc5da9409
(svn r13879) -Codechange: Replace numbers with Colours enum on engine, industries and group gui
2008-07-30 16:13:58 +00:00
belugas
96a0010911
(svn r13876) -Codechange: Replace numbers with Colours enum on bridge gui
2008-07-30 14:04:15 +00:00
belugas
486ce7dbc3
(svn r13875) -Codechange: Remove some magic numbers in favour of the Colours enum they are representing
2008-07-30 02:15:58 +00:00
belugas
60d020059c
(svn r13874) -Change: missing svn:property eol-style
2008-07-30 02:07:49 +00:00
belugas
caf5cac9eb
(svn r13873) -Codechange: remove useless string from all language files affected by r13872. which removed the STR_NEWS_OPEN_CLOSE string
2008-07-30 02:04:44 +00:00
belugas
d358eff64d
(svn r13872) -Feature: Split the news message announcing opening and closure of industries into two news of their own
2008-07-30 01:53:03 +00:00
peter1138
b90dc6cc34
(svn r13870) -Fix [FS#2167]: Callback 10 (visual effect and powered wagons setting) and powered wagons operation were not performed for articulated wagons.
2008-07-29 22:19:37 +00:00
rubidium
ef6e366c08
(svn r13869) -Fix [FS#2153] (r13674): in some cases the sprite cache could be filled with unremovable items.
2008-07-29 21:45:30 +00:00
frosch
814c91843a
(svn r13868) -Fix: Parent scope of industry variables.
2008-07-29 19:51:30 +00:00
belugas
da4dc32a6f
(svn r13867) -Codechange: Fix missing alignment
2008-07-29 15:34:56 +00:00
peter1138
ca703d3701
(svn r13866) -Codechange: Use sortlist for sign windows
2008-07-29 10:26:48 +00:00
peter1138
b49814c537
(svn r13865) -Codechange: Use case-insensitive sort for NewGRF list.
2008-07-29 07:51:55 +00:00
belugas
ec58ec4a73
(svn r13864) -Feature(FS #2164 ): All industry creations are now generating a news event, even those funded by a real player.
2008-07-28 23:37:19 +00:00
smatz
88637d9213
(svn r13859) -Fix: loading of TTD(Patch) savegames from the command line didn't work
2008-07-28 15:31:11 +00:00
smatz
686019398f
(svn r13858) -Fix: buffer overflow for too long filename supplied as '-g' parameter
2008-07-28 15:17:47 +00:00
peter1138
81dafb5e69
(svn r13855) -Fix [FS#2157]: Cargo type lookup was incorrect for GRFv7 files without a translation table.
2008-07-28 06:16:34 +00:00
bjarni
78730d4c71
(svn r13852) -Fix (r13849): [OSX] fixed universal binary building without breaking anything this time
2008-07-27 20:43:21 +00:00
frosch
1aa6e00b48
(svn r13851) -Fix (r9393): GetTownByTile() is only valid for houses and roads.
2008-07-27 18:36:11 +00:00
frosch
1f31e117f0
(svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
2008-07-27 15:17:16 +00:00
bjarni
62c053729a
(svn r13849) -Fix: [OSX] 10.5 appears to be more picky when setting up compiling of universal binaries
2008-07-27 14:16:24 +00:00
frosch
80725edc3d
(svn r13847) -Codechange: Add MAX_ARTICULATED_PARTS and set it to 100.
2008-07-27 12:35:14 +00:00
frosch
2cec059248
(svn r13846) -Fix (r13838): Do not draw water borders inside of industries.
2008-07-27 09:16:23 +00:00
frosch
74c63ac9e2
(svn r13845) -Fix (r13838): When adding a WaterClass to oilrig station tiles, also make use of it.
2008-07-27 09:12:18 +00:00
frosch
4da23a6280
(svn r13844) -Fix (r13074, r13591): Power, running cost and capacity of multiheaded engines were (too often) doubled in newspaper resp. offer window.
2008-07-26 22:00:59 +00:00
frosch
91486b116b
(svn r13840) -Fix: Some glitches in the autoreplace GUI.
2008-07-26 17:55:49 +00:00
frosch
16c80d031c
(svn r13838) -Codechange: Make industry tiles aware of WaterClasses.
2008-07-26 16:14:10 +00:00
peter1138
ea7ed286a6
(svn r13836) -Fix [FS#2074]: Automatically recalculate inflation if NewGRFs are changed and cargo types are added, so that cargo payment rates are correct.
2008-07-26 14:58:08 +00:00
peter1138
49c971c8eb
(svn r13832) -Fix [FS#2152]: FreeType may return a bitmap glyph even if a grey-scale glyph was requested.
2008-07-26 10:21:26 +00:00
peter1138
7a73bff37a
(svn r13831) -Codechange: Make purchase list order NewGRF property an extended byte.
2008-07-26 07:43:20 +00:00
smatz
05c2a8eba4
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
2008-07-25 22:37:34 +00:00
smatz
ce7585101d
(svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description
2008-07-25 19:50:40 +00:00
peter1138
7cdd6ef33c
(svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value.
2008-07-25 17:33:53 +00:00
rubidium
64833bb84f
(svn r13824) -Fix (r13822): also make sure a tile is a road stop tile before trying to get information about the roadstop...
2008-07-25 13:20:50 +00:00
rubidium
3a706b0f2d
(svn r13822) -Fix [FS#2166]: building through the wrong side of a drive through station was allowed.
2008-07-25 10:10:11 +00:00
rubidium
1a4ac3ee5c
(svn r13821) -Codechange: replace some uint8/bytes with more specificly named typedefs and replace a few magic numbers.
2008-07-25 10:00:03 +00:00
miham
00d87b537f
(svn r13820) -Update: WebTranslator2 update to 2008-07-25 00:59:06
...
brazilian_portuguese - 3 fixed by tucalipe (3)
catalan - 10 fixed by arnaullv (10)
czech - 12 fixed, 3 changed by Hadez (15)
danish - 21 fixed by ThomasA (21)
dutch - 16 fixed by habell (16)
estonian - 37 fixed by kristjans (37)
french - 19 fixed by glx (19)
italian - 19 fixed by lorenzodv (19)
korean - 10 fixed by leejaeuk5 (10)
simplified_chinese - 97 fixed, 17 changed by ww9980 (114)
slovak - 87 fixed by lengyel (87)
spanish - 10 fixed by eusebio (10)
ukrainian - 2 fixed by mad (2)
2008-07-24 22:59:29 +00:00
peter1138
b98deeb5cc
(svn r13818) -Fix [FS#2157]: Deselect currently selected NewGRF when changing GRF preset.
2008-07-24 18:29:01 +00:00
smatz
97eeb07201
(svn r13817) -Cleanup (r13816): no need to check for ENABLE_NETWORK, _networking is defined anyway
2008-07-24 16:23:55 +00:00
smatz
aae2aa64c4
(svn r13816) -Fix [FS#2150]: check for vehicle length changes outside a depot (callback 0x11) and give a warning about that
2008-07-24 15:19:26 +00:00
rubidium
9bee994898
(svn r13814) -Fix (r13810): MSVC (as usual) does stupid things. This time it is copying around a struct it created itself, causing bad things to happen if you don't explicitly set all variables to something remotely sane in the constructor.
2008-07-24 08:46:34 +00:00
rubidium
81c50c6c32
(svn r13810) -Fix: small memory leak when tar files would be found.
2008-07-23 21:42:55 +00:00
rubidium
a050a78525
(svn r13809) -Fix: memory leak each time a "new ai" got (re)started.
2008-07-23 20:42:13 +00:00
rubidium
1560fe3298
(svn r13807) -Fix: memory leak when loading groups.
2008-07-23 18:41:15 +00:00
smatz
c0e11a797c
(svn r13806) -Fix [FS#2162]: checking for train waiting at other side of two-way signal was broken
2008-07-23 18:23:12 +00:00
smatz
4835e300c4
(svn r13800) -Codechange: minor comment style fixes in misc_gui.cpp
2008-07-23 15:01:50 +00:00
glx
ec6aff4870
(svn r13799) -Fix (r13730): {RAW_STRING} should be used in english.txt only
2008-07-23 14:58:43 +00:00
glx
ac9459c46c
(svn r13797) -Fix [FS#2160](r13715): crash when displaying save/load errors
2008-07-23 13:15:54 +00:00
rubidium
52982de589
(svn r13796) -Fix [FS#2161]: one couldn't start the last scenario in the "start server window"'s list of scenarios.
2008-07-23 13:10:08 +00:00
rubidium
24bb768450
(svn r13795) -Change: do not require canals/rivers/seas to be empty when building a bridge over it as it is not required for roads and rails either.
2008-07-22 23:45:55 +00:00
rubidium
af21ac537e
(svn r13794) -Fix: helicopters leaving a heliport could get stuck after processing conditional orders.
2008-07-22 23:29:08 +00:00
peter1138
9a6b7a90e0
(svn r13789) -Fix (r13781): Saved preset was not automatically selected.
2008-07-22 20:52:30 +00:00
smatz
06a52be95c
(svn r13787) -Codechange: resize the red error message box if needed
2008-07-22 19:25:47 +00:00
peter1138
49769dffba
(svn r13784) -Codechange: Truncate vehicle names in purchase list to width of window.
2008-07-22 16:13:42 +00:00
glx
1f0939f4e2
(svn r13782) -Cleanup: removed a useless declaration
2008-07-22 15:02:18 +00:00
peter1138
6e0af9fdfe
(svn r13781) -Feature: NewGRF presets, selected by a drop down list in the NewGRF window. Presets are saved in the config file.
2008-07-22 14:17:29 +00:00
rubidium
14a747e490
(svn r13776) -Fix: some revision checking code was unintentionally disabled.
2008-07-21 18:49:50 +00:00
glx
317868261a
(svn r13775) -Codechange: enforce the validity of a NetworkAction (chat packet) issued by a client
2008-07-21 15:50:55 +00:00
peter1138
e6aa4e1eb1
(svn r13774) -Codechange: Add support for changing vehicle purchase list position for all vehicle types.
2008-07-21 14:42:25 +00:00
rubidium
aafd8393cc
(svn r13773) -Codechange: disable autoclean for protected/unprotected companies when the timeout is set to 0. Based on an idea by Thomas.
2008-07-21 13:05:43 +00:00
peter1138
e6a1f1c012
(svn r13761) -Codechange: Remove dependency on rail for altering purchase list position (mostly function renaming)
2008-07-20 21:23:28 +00:00
peter1138
00e052ad39
(svn r13760) -Codechange: With multiple NewGRF engine sets, engine IDs may not be allocated in the order expected by GRF authors, so sort by 'list position' instead of engine ID for all vehicle types.
2008-07-20 21:21:51 +00:00
rubidium
fec49bcc83
(svn r13759) -Fix [FS#2147]: selecting non-full length vehicles in the depot gui would place the "mouse pointer" out of the center of the vehicle making it hard to "aim".
2008-07-20 19:21:18 +00:00
smatz
690859bf57
(svn r13758) -Fix (r13226): always use st->airport_tile, st->xy is different in many cases
2008-07-20 15:50:41 +00:00
rubidium
77fdefea19
(svn r13754) -Fix (r13731): one could not join companies from the command line.
2008-07-20 13:29:59 +00:00
rubidium
b607b51d93
(svn r13753) -Cleanup (r13752): save before commit instead of the other way around is usually better.
2008-07-20 12:59:27 +00:00
rubidium
a6e314bbba
(svn r13752) -Fix [FS#2130]: correctly restore conditional orders when they are put 'into' backup.
2008-07-20 07:41:43 +00:00
rubidium
7c3fc13087
(svn r13740) -Fix (r13731): one could only join the first company.
2008-07-19 20:24:41 +00:00
rubidium
c4467aa8fb
(svn r13739) -Fix (r13731): some variables would be erroneously zeroed, causing autoclean and company passwords not to work.
2008-07-19 20:23:51 +00:00
rubidium
bfa66f70b3
(svn r13734) -Fix: NewGRF rail continuation would always mark a tunnel on the same axis as connected, even when the tunnel faces the wrong direction.
2008-07-19 10:10:21 +00:00
smatz
f2da045731
(svn r13733) -Fix (r13731): gcc2.95 compilation
2008-07-18 21:01:30 +00:00
rubidium
5f280d0e50
(svn r13732) -Feature: add a few extra columns with information to the server list. Patch by Pegasus.
2008-07-18 20:44:35 +00:00
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
2008-07-18 16:40:29 +00:00
rubidium
891bec7e23
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
2008-07-18 16:26:51 +00:00
rubidium
e48d86fad0
(svn r13729) -Fix: assumption that non-north tiles of a house do not have the 1x1 building bit set was flawed with some NewGRFs. This caused the amount of houses to differ, which causes the town radii to differ, which causes desyncs when towns are expanded.
2008-07-18 12:20:31 +00:00
smatz
b3bafb1d9c
(svn r13728) -Codechange: define DEBUG as an empty block so compiler warns us less
2008-07-18 12:20:30 +00:00
smatz
927507818f
(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken
2008-07-18 12:11:46 +00:00
smatz
69cb2f088f
(svn r13721) -Codechange: one less multiplication for colour mixing in 32bpp blitters (GeekToo)
2008-07-17 23:43:47 +00:00
rubidium
6e1aaa2c69
(svn r13720) -Fix (r13715): string wasn't correctly passed to draw function.
2008-07-17 21:15:57 +00:00
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
rubidium
c2d2f817de
(svn r13718) -Fix: possible desync on the autorenew settings 20+ game years (i.e. 4.5+ hours) after a company was started.
2008-07-17 16:38:26 +00:00
rubidium
227085622a
(svn r13717) -Codechange: place the whole 'create new company' command in #ifdef ENABLE_NETWORK as it may only be executed when we are playing in a network game.
2008-07-17 15:16:11 +00:00
rubidium
39beec190b
(svn r13716) -Fix [FS#2144]: any player could construct new companies.
2008-07-17 15:14:42 +00:00
rubidium
ab234cf90c
(svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
...
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
2008-07-17 13:47:04 +00:00
rubidium
c913be73d8
(svn r13714) -Fix: remove the unique_id from the message that a client has joined as it is only exposes the unique_id more than needed. Patch by dih.
2008-07-17 12:02:09 +00:00
rubidium
60a6582590
(svn r13713) -Fix: possible crash on creating a network packet.
2008-07-17 11:47:57 +00:00
rubidium
2e4f32023c
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
2008-07-17 11:19:20 +00:00
miham
88848d78b5
(svn r13707) -Update: WebTranslator2 update to 2008-07-16 01:21:36
...
brazilian_portuguese - 3 fixed by tucalipe (3)
bulgarian - 78 fixed, 230 changed by thetitan (3), groupsky (305)
catalan - 3 fixed by arnaullv (3)
dutch - 3 fixed by webfreakz (3)
italian - 3 changed by lorenzodv (3)
korean - 4 fixed, 5 changed by leejaeuk5 (9)
russian - 3 fixed by Smoky555 (3)
slovenian - 4 fixed by Necrolyte (4)
spanish - 3 fixed by eusebio (3)
swedish - 4 fixed by daishan (4)
ukrainian - 2 fixed by mad (2)
2008-07-15 23:27:28 +00:00
frosch
33cd16981c
(svn r13706) -Fix (r13695): Small typo.
2008-07-15 17:13:50 +00:00
belugas
5b48371867
(svn r13705) -Codechange: Define and use BridgePieces enum, which will remove a few more magic numbers
2008-07-15 00:34:34 +00:00
rubidium
0f4d9a8e49
(svn r13704) -Fix: make timetables work more sensible when used in conjunction with conditional orders, i.e. make it possibly to tell how long to travel to the next destination if you jump.
2008-07-14 21:01:49 +00:00
rubidium
797ccc8b49
(svn r13703) -Update: the other language files due to a few changed strings in r13702.
2008-07-14 20:36:21 +00:00
rubidium
be722412fa
(svn r13702) -Fix: do not overflow the order/timetable window when 'long' orders are displayed.
2008-07-14 20:18:06 +00:00
glx
9895afb43e
(svn r13701) -Codechange: add some more info in crash.log
2008-07-14 20:04:54 +00:00
rubidium
71820bf129
(svn r13700) -Fix: possible buffer overflow in string truncation code.
2008-07-14 18:22:15 +00:00
rubidium
b7c69ba5f0
(svn r13699) -Fix: handle SETX(Y) properly when truncating a string instead of ignoring it and returning a too long string.
2008-07-14 17:31:41 +00:00
frosch
1c17405721
(svn r13698) -Fix (r13697): MorphOS compilation.
2008-07-13 19:44:05 +00:00
frosch
1655a6f2a8
(svn r13697) -Feature: Add some support for symbolic links in .tar files.
2008-07-13 16:09:00 +00:00
belugas
f666fd5a9b
(svn r13696) -Fix[GUI]: The Build button of the vehicle list is now hidden, instead of just disabled. It will be only visible when called from the Depot Building Window.
...
Less confusion, hopefully. Suggested by Eddi.
2008-07-13 02:43:46 +00:00
rubidium
53436082a2
(svn r13695) -Fix [FS#2120]: in some cases the (sound) mixer could overflow causing artefacts in the sound.
2008-07-12 22:30:10 +00:00
rubidium
e74743227b
(svn r13694) -Change: make it more explicit that you've opened the available train/ship/etc. list instead of the one where you can actually build vehicles by setting the appropriate title for the window.
2008-07-12 22:28:34 +00:00
frosch
2b6dee7f64
(svn r13693) -Fix (r11106, r11117): Do not rely on .tar files always ending with a block of zeros.
2008-07-12 14:49:43 +00:00
rubidium
56379fff51
(svn r13692) -Fix (r13674): loading PNG sprites could very quickly fill the sprite cache.
2008-07-12 14:03:36 +00:00
smatz
447ec39f49
(svn r13691) -Codechange: make it easier to determine whether a command is ran in the context of autoreplace or not
2008-07-09 20:55:47 +00:00
belugas
33150af3e2
(svn r13683) -Codechange: privatize a function that is not used outside of the class who calls it
2008-07-09 02:18:51 +00:00
belugas
cb452bcc7d
(svn r13682) -Codechange: -Codechange: remove a now useless variable(dih).
2008-07-08 23:07:58 +00:00
rubidium
d974acac89
(svn r13681) -Revert (r13678, r13677): the fixes didn't work in all cases (assertions on savegame loads).
...
-Fix [FS#2102]: but now in a hopefully beter way.
2008-07-08 15:10:23 +00:00
rubidium
03d32e12fb
(svn r13680) -Fix: NPF crashing when a ship tried to find a nearby depot when on an aqueduct.
2008-07-07 16:04:38 +00:00
rubidium
fbdc1c0476
(svn r13679) -Fix [FS#2131]: saving TTD imported games in recession failed due to wrong (and unneeded) type conversions in the saveload code.
2008-07-07 09:23:54 +00:00
rubidium
3a793ceea9
(svn r13678) -Fix (r13677): electric trains from pre elrail savegames would get stopped on load.
2008-07-06 11:08:40 +00:00
rubidium
22249a7317
(svn r13677) -Fix [FS#2102]: in the case that elrails and 'realistic' acceleration are disabled all electrified engines would have no power on load, until the vehicle got turned around, loaded or got into a depot.
2008-07-04 21:43:17 +00:00
rubidium
0cc206e662
(svn r13676) -Fix [FS#2126]: inactive companies from old (TTD) saves could be marked active in some cases, which then loads garbage in their statistics and such.
2008-07-04 19:00:11 +00:00
rubidium
b5f7633883
(svn r13675) -Fix: memory leak when NewGRFs got forcefully disabled and they defined GOTO labels.
2008-07-04 18:42:04 +00:00
rubidium
173f0f4cd5
(svn r13674) -Fix [FS#2127]: crash when drawing a non-real sprite. The drawing of the non-real sprite is caused when two NewGRFs replace the same sprite and the first replaces it with a real sprite (and thus assumes it remains a real sprite) and the second replaces it with a non-real sprite. OpenTTD already looked at whether the sprite to load should be seen as a real or non-real sprite, but it failed to replace non-real sprites with a substitute real sprite when getting the sprite from the cache.
2008-07-04 14:45:51 +00:00
rubidium
f37a47c0cb
(svn r13673) -Fix [FS#2122]: desync when building electrified trains on a dedicated server that was started with electrification disabled.
2008-07-03 18:00:36 +00:00
belugas
aede445e2a
(svn r13672) -Fix(r13670): silent warnings that MSVC did not raised. Looks like enums can not be easily matched :(
2008-07-03 01:08:35 +00:00
frosch
4cb2fba8fb
(svn r13671) -Cleanup: Zeros for sell.
2008-07-01 18:56:40 +00:00
belugas
ce721a579f
(svn r13670) -Codechange : Merge some very alike events handlers.
2008-07-01 00:04:09 +00:00
frosch
e9e453cf8b
(svn r13667) -Documentation: Comment 'tgp.cpp' a bit. Based on patch by CommanderZ.
2008-06-30 19:54:03 +00:00
belugas
ac3896feaf
(svn r13665) -Fix[FS#2119]: Wrong PlayerID used for sending a message to.Patch by Yexo
2008-06-30 16:59:35 +00:00
rubidium
f06daceb16
(svn r13664) -Fix [FS#2117]: bus/truck forgetting go-to-depot order when entering a non-drivethrough road stop.
2008-06-30 15:13:40 +00:00
belugas
4f5eae2789
(svn r13663) -Codechange: Use a default parameter, hoping to reduce the different signatures of functions in menus
2008-06-30 14:58:58 +00:00
rubidium
7ed892411a
(svn r13662) -Fix [FS#2113]: crash when adding conditional orders to ships.
2008-06-30 14:49:50 +00:00
rubidium
6a216ee4f6
(svn r13661) -Fix: server crashing when banning the rconning client.
2008-06-30 14:48:44 +00:00
frosch
ecc5d648df
(svn r13649) -Codechange: Split the GfxFillRect() special flags from 'color' into their own parameter.
2008-06-28 15:44:24 +00:00
frosch
06049563da
(svn r13648) -Cleanup (r5303): Amplitudes should be amplitudes and not amplitudes/16.
2008-06-27 20:59:30 +00:00
skidd13
9335a28cb5
(svn r13647) -Codechange: replace MAX_UVALUE() for std types with the equivalent constant
2008-06-27 17:46:43 +00:00
belugas
de86235274
(svn r13646) -Change: typos and miss-aligned enum values
2008-06-27 16:16:35 +00:00
frosch
3e5f10fca6
(svn r13645) -Codechange: Convert a macro into an inlined member function.
2008-06-27 15:01:18 +00:00
belugas
dde4de5e20
(svn r13644) -Fix(r13643): compare an apple with an apple. MSVC seems to not care, but some other compilers do.
...
Thanks to glx :)
2008-06-27 02:26:51 +00:00
belugas
e8cddf8baa
(svn r13643) -Codechange: Enumify some loosely related values been used in the toolbar resizing processes
2008-06-27 01:26:13 +00:00
belugas
32ea99a741
(svn r13642) -Documentation: Add the enum values to the widget arrays, in concordance with code style
2008-06-26 17:43:56 +00:00
belugas
6d1e5a3f5b
(svn r13641) -Fix: Misleading enum name.
2008-06-26 17:13:39 +00:00
smatz
1834a2f670
(svn r13640) -Codechange: make colours behind not fully solid objects less darker for BM_TRANSPARENT (for 32bpp blitters)
2008-06-26 16:47:29 +00:00
smatz
114c820c56
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
...
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
2008-06-26 15:46:19 +00:00
smatz
0b75129c24
(svn r13638) -Fix: signed/unsigned warning for MSVC9 and gcc2
2008-06-26 00:40:42 +00:00
miham
35c8cdb5fa
(svn r13637) -Update: WebTranslator2 update to 2008-06-25 23:36:50
...
brazilian_portuguese - 9 fixed by tucalipe (9)
bulgarian - 25 fixed by thetitan (11), kokobongo (14)
catalan - 9 fixed, 4 changed by arnaullv (13)
croatian - 5 fixed by knovak (5)
czech - 8 fixed, 9 changed by Hadez (17)
dutch - 9 fixed by habell (9)
french - 12 fixed by glx (10), belugas (2)
italian - 12 fixed by lorenzodv (12)
korean - 8 fixed, 7 changed by leejaeuk5 (15)
russian - 9 fixed by Smoky555 (9)
slovenian - 18 fixed by Necrolyte (18)
spanish - 9 fixed by eusebio (9)
swedish - 8 fixed by daishan (8)
traditional_chinese - 38 fixed, 108 changed by tiberiusteng (146)
ukrainian - 12 fixed, 2 deleted, 55 changed by mad (69)
2008-06-25 21:37:59 +00:00
frosch
17de6f9ced
(svn r13634) -Codechange: Let house var 0x65 ignore the house, the variable is queried for.
2008-06-25 20:04:27 +00:00
rubidium
7e50278d8e
(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
2008-06-25 19:33:11 +00:00
frosch
4e6d827ea6
(svn r13632) -Codechange: Use 'void *' for user-data of CircularTileSearch().
2008-06-25 18:46:05 +00:00
smatz
644fa40339
(svn r13631) -Fix (r13618): forgot #define avoiding multiple inclusions
2008-06-25 17:45:05 +00:00
skidd13
7a0ad3af52
(svn r13630) -Update: apply english.txt changes from r13628 to other languages
2008-06-25 17:37:12 +00:00
frosch
983e5a96f0
(svn r13629) -Fix [FS#2108](r13603): diameter != radius
2008-06-25 17:30:53 +00:00
skidd13
41b09d4027
(svn r13628) -Feature: enable building of aqueducts in the scenario editor
...
-Codechange: related to this split the waterway based buttons from the landscape generation window
2008-06-25 17:30:16 +00:00
smatz
7c7e08df59
(svn r13626) -Fix (r11871): signals were not updated when player removed signals from nonexistent track sharing bits with existing track
...
So disallow removing signals from nonexistent track
2008-06-24 23:38:10 +00:00
rubidium
fdbb1f475b
(svn r13624) -Fix [FS#2106]: crash when one tries to raise the nothern corner of MP_VOID tiles (i.e. the southern corner of the tiles on the southern map edge) in the scenario editor.
2008-06-24 15:58:01 +00:00
rubidium
c3009c34ee
(svn r13623) -Codechange: only show the 'load' of articulated RV parts that have a capacity instead of showing 'empty' parts when a vehicle is completely full.
2008-06-24 13:49:13 +00:00
rubidium
5b973282de
(svn r13622) -Fix [FS#2109]: only the front of a RV would be considered when determining to what cargos a vehicle can be refitted instead of all cargos.
2008-06-24 13:47:15 +00:00
rubidium
47933d2ddb
(svn r13621) -Fix: building roadbits in the wrong direction on bridges or building roadbits from underneath the bridge to the bridgehead is impossible, so don't silently ignore that error when building over houses and industries is not ignored.
2008-06-24 11:42:01 +00:00
smatz
61847389d6
(svn r13619) -Codechange: use 'const char *' instead of std::string for blitter and driver names
...
Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
2008-06-24 09:15:45 +00:00
smatz
fee2adb299
(svn r13618) -Codechange: move tar-specific declarations to separate file
...
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
skidd13
6e1dd7f719
(svn r13617) -Codechange: calculate the diff in StationWaitingSorter directly
2008-06-23 22:51:21 +00:00
rubidium
469ecf4bd2
(svn r13612) -Fix [FS#2104]: wrong comment of CmdSetAutoReplace. Patch by Yexo.
2008-06-23 08:49:09 +00:00
rubidium
67e610a8a8
(svn r13611) -Fix [FS#2100]: if the first bridge can't be build for a given length, then none of the other bridges can. Effectively meaning that if someone replaces the first bridge with a bridge that can be only 3 tiles longs then only other bridges that can be 3 tiles long will be buildable, but only if they are 3 tiles long.
2008-06-23 08:38:07 +00:00
skidd13
b4ef380c49
(svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken
2008-06-22 15:41:38 +00:00
skidd13
640e547886
(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead)
2008-06-22 15:21:51 +00:00
belugas
31b002dab0
(svn r13603) -Feature{newGRF]: Add var 65 in Variational Action 2 Variables for Houses.
...
This var will return the manhattan distance of the nearest house that match a given criteria.
The criterias can be: 0 : house ID/ 1 : Class ID/ 2 : grf ID
The search radius can be defined too, up to 64.
2008-06-21 23:59:38 +00:00
smatz
37b8e87454
(svn r13602) -Codechange: little speedup for 8bpp-optimized blitter
2008-06-21 20:58:34 +00:00
smatz
2ca4b8b2e4
(svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable
2008-06-21 18:59:15 +00:00
belugas
a6e0e2d837
(svn r13597) -Codechange: Enumification of the Map menu items.
...
The rework allowed to remove a function, by merging two quite similar ones.
2008-06-21 01:40:56 +00:00
frosch
4236dd3be5
(svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', 'leap year' and 'day of year'.
2008-06-20 21:14:10 +00:00
smatz
c406ea35ec
(svn r13593) -Fix [FS#2095](r13524): sorting by cargo capacity was broken
2008-06-20 20:40:47 +00:00
skidd13
fd49e1c379
(svn r13592) -Fix: window size remembering was broken
2008-06-20 14:54:47 +00:00
peter1138
52c06f1baa
(svn r13591) -Codechange: Support CB36 in the vehicle offer window.
2008-06-20 07:23:00 +00:00
belugas
1f4475d518
(svn r13590) -Codechange: Enumification of the Save/Load menu items
2008-06-20 01:55:00 +00:00
smatz
1cf74e7667
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
2008-06-19 20:06:55 +00:00
belugas
bee7934220
(svn r13588) -Documentation: Document the function PopupMainPlayerToolbMenu. Makes it a bit clearer, don't you think?
2008-06-19 20:04:24 +00:00
skidd13
32c2041f89
(svn r13587) -Codechange: make some globals members of VehicleListBase since they are used as such
...
-Cleanup: some small things referring the change
2008-06-19 19:58:30 +00:00
belugas
4cc9439d65
(svn r13586) -Codechange: Using default parameter, for cases where there are few exceptions.
2008-06-19 19:58:26 +00:00
bjarni
6bd2d0ffcb
(svn r13584) -Fix: [OSX] Fixed issue where 10.5 failed to switch to fullscreen
...
This is done by selecting the 32bpp-anim blitter by default as it seems Apple removed some 8bpp support
Since this is done at runtime the same binary will still select 8bpp on 10.3 and 10.4
2008-06-19 17:54:23 +00:00
rubidium
bd31dda2fb
(svn r13581) -Fix [FS#2040]: RVs continueing onto next DT station when they are build adjacent to them.
2008-06-19 13:04:41 +00:00
rubidium
525c964f53
(svn r13579) -Fix [FS#2088]: process the order coming after a conditional order, otherwise the vehicle would already leaving the station before it knows where the next destination is, making it leave in the wrong way. However, after processing as many conditional orders as there are in the order list it will stop processing them in order to not create an infinite loop.
2008-06-19 11:45:52 +00:00
rubidium
4ccd8a6786
(svn r13576) -Codechange: disable static NewGRFs when non-static NewGRFs query them in the context of network games. This makes it impossible for static NewGRFs to disable non-static NewGRFs and 'bad' things happening because the non-static NewGRF doesn't know about the static NewGRF.
2008-06-19 10:20:45 +00:00
skidd13
2f65d35ead
(svn r13575) -Codechange: Move small vector to core since it fits better in there
...
-Codechange: convert smallvector from struct to class
2008-06-19 10:19:02 +00:00
skidd13
c4cc5cdf3b
(svn r13574) -Doc: Document the small vector template class
2008-06-19 09:33:50 +00:00
skidd13
e7f2765f4c
(svn r13573) -Codechange: Use smallvec class functions instead of class members
2008-06-19 09:32:25 +00:00
rubidium
f2730396da
(svn r13572) -Fix: MSVC x64 complains.
2008-06-19 09:15:52 +00:00
smatz
7a7ff65ac5
(svn r13571) -Codechange: define channels in struct Colour in different order on LE and BE machines
2008-06-18 21:19:04 +00:00
smatz
bc12e5453c
(svn r13568) -Fix (r13564): Windows build asserts where I wouldn't expect it to
2008-06-18 20:20:12 +00:00
smatz
29985b768c
(svn r13565) -Change [FS#2077]: when invisibility is set, sprite sequences are now drawn until first non-opaque sprite is found (bit 14 not set)
...
This is to balance performance, code complexity and NewGRF requirements
2008-06-18 16:48:58 +00:00
smatz
cc2f9187cc
(svn r13564) -Codechange: do not use SetPixel in PaletteAnimate, access destination directly instead. Makes palette animation ~40% faster.
2008-06-18 13:11:02 +00:00
belugas
be4e7b86f3
(svn r13562) -Codechange: Yet another enumification, which required a bit of explanation/documentation of a trickery some would call a hack
2008-06-18 03:19:31 +00:00
belugas
22c017c0c2
(svn r13561) -Codechange: two more enumifications of widgets
2008-06-18 02:38:28 +00:00
belugas
f16b9dcd2b
(svn r13560) -Fix(r13550): This section widget_count did not required to be lowered. So small revert
2008-06-18 02:04:01 +00:00
belugas
5408e1a51b
(svn r13559) -Codechange: Enumification of the Options menu items
2008-06-17 23:51:17 +00:00
smatz
9da745b381
(svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined
2008-06-17 19:38:00 +00:00
smatz
dedb0033b3
(svn r13551) -Codechange: store offsets to different zoom levels in a distinguished struct instead in the data stream for 8bpp-optimized
2008-06-17 17:25:22 +00:00
belugas
6d4590ec7c
(svn r13550) -Fix(r13540, r13542): widget_count did not had the same value as 27. So, it has to be lowered by one, so it can be used as a widget "pointer"
2008-06-17 16:33:55 +00:00
peter1138
26879ce24a
(svn r13544) -Codechange: Add support for NewGRF varaction2 variable 5F.
2008-06-17 07:05:17 +00:00
belugas
d3fa4228cb
(svn r13543) -Codechange: Enumification of the InGame toolbar and some leftovers of scenario editor one.
...
Still more go do
2008-06-17 03:20:04 +00:00
belugas
37c58f606b
(svn r13542) -Codechange: Less a few more magic numbers and a code a bit more adaptable, still
2008-06-17 03:13:09 +00:00
belugas
da5fb0cf7e
(svn r13541) -Codechange: Aligning some switch case. Code cosmetics.
2008-06-17 02:33:42 +00:00
belugas
f5f05b4e86
(svn r13540) -Codechange: Less a magic number and a more adaptable code
2008-06-17 02:25:45 +00:00
glx
4782df757c
(svn r13539) -Fix (r13537): signed/unsigned warnings
2008-06-16 20:16:43 +00:00
frosch
0fff18b044
(svn r13538) -Fix (r12740)[FS#2087]: ChildSprites of foundations are not necessarily consecutive.
2008-06-16 20:08:30 +00:00
smatz
2299181c4b
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
2008-06-16 19:38:41 +00:00
belugas
0c342f3292
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
...
Even more when it's a parameter.
2008-06-16 17:28:15 +00:00
skidd13
f1cecb1795
(svn r13535) -Codechange: Protect GUIList internals
...
-Fix: VL_FIST_SORT should be set after list rebuild too
2008-06-16 17:10:55 +00:00
skidd13
0a19f738bc
(svn r13534) -Codechange: Replace the main part of VehiclesListBase sorting with GUIList function calls
2008-06-16 17:09:52 +00:00
skidd13
6b8a758339
(svn r13533) -Codechange: Replace direct class member access of GUIList with the appropriate function calls
2008-06-16 17:05:17 +00:00
skidd13
617e1f16c0
(svn r13524) -Codechange: use the typesafe QSort for vehicle sortings
...
-Prepare: vehicles sorting for convsersion to GUIList
2008-06-15 22:10:22 +00:00
skidd13
f95cee3057
(svn r13523) -Codechange: replace qsort by the internal typesafe QSortT for resolution sorting
2008-06-15 16:40:41 +00:00
skidd13
dd5f4f0a2c
(svn r13522) -Codechange: Replace the qsort of the highscore with one of the internal sorters
2008-06-15 16:11:25 +00:00
skidd13
1ddafcadd2
(svn r13521) -Codechange: Use GUIList sorting instead of poll & sort for CompanyLeagueWindow
2008-06-15 15:48:33 +00:00
smatz
704c9be0b8
(svn r13520) -Fix (r13375): pointer has to be valid before it can be loaded to (SLE_STR)
2008-06-15 13:52:51 +00:00
belugas
237a6f554a
(svn r13519) -Feature[newGRF]: Implement var 63, variational action2 variable for Houses.
...
Or, in more simple terms, the check for the animation frame of nearby house.
2008-06-15 02:48:25 +00:00
frosch
8bc42a8c2f
(svn r13518) -Fix [FS#2083]: Properly count number of non-north housetiles.
2008-06-14 19:13:23 +00:00
skidd13
03854bf27c
(svn r13517) -Add: remaining used typesafe versions of the mem* functions from <string.h>
2008-06-14 16:41:03 +00:00
skidd13
96fc91baf3
(svn r13516) -Codechange: Move MemCpyT to a fitting core header
...
-Codechange: Split the sorting code from the sortlist to an appropriate header
2008-06-14 16:23:08 +00:00
belugas
bf9a32b475
(svn r13515) -Codechange: Widget enumification for scenario editor
2008-06-14 02:00:20 +00:00
belugas
8cbb17384d
(svn r13514) -Codechange: Removal of dead code (or useless, to be more exact)
2008-06-14 01:45:58 +00:00
belugas
bcb71a011e
(svn r13513) -Codechange: Give proper message when building a river fails.
...
Give proper description of a river tile with the Query Tool.
Extracted (in part) from FS#1884, by Ammler
2008-06-14 01:08:59 +00:00
glx
fd08e7b51a
(svn r13508) -Fix (r7733): incorrect usage of strtoul
2008-06-13 15:18:29 +00:00
peter1138
24d35c58b7
(svn r13507) -Fix (r12856): first engine change should've been moved too
2008-06-13 13:28:55 +00:00
rubidium
f2404ac20f
(svn r13505) -Fix: clear the memory for the new AI during the loading of a savegame so it does not try to execute commands generated in a different savegame, which could be resulting in the AI trying to give orders to stations that do not exist.
2008-06-13 05:50:24 +00:00
belugas
5d828d8eee
(svn r13504) -Codechange: enumify some widgets for scenario editor. More work is required.
2008-06-13 01:57:48 +00:00
belugas
3d07e5ca10
(svn r13503) -Fix(r13173)[FS#2073]: Wrong widget numbers & event handlers were assigned to the zoom in and out buttons in the scenario editor
2008-06-13 01:17:03 +00:00
smatz
e40f835a7e
(svn r13502) -Fix (r11212): drawing of zoomed out partial sprites could cause deadlocks or crashes
2008-06-13 00:00:04 +00:00
smatz
421a040e89
(svn r13501) -Feature(tte): ctrl+click on sign you own to remove it (Osai, planetmaker)
2008-06-12 22:29:42 +00:00
frosch
79ad51867a
(svn r13499) -Codechange: Allow drawing (ugly) leveled foundations on steep slopes, just in case someone needs them for fallback.
2008-06-12 21:36:56 +00:00
rubidium
7dcc69e617
(svn r13495) -Fix: scrolling the main map with the keys speed was influenced by movement of the mouse.
2008-06-12 19:06:30 +00:00
rubidium
005d612227
(svn r13494) -Fix: a little documentation + copy-paste mistake for sprite.h.
2008-06-12 18:51:35 +00:00
skidd13
d99aef2f71
(svn r13490) -Add: a seperate icon for aqueducts
2008-06-12 16:30:41 +00:00
rubidium
a5486e626d
(svn r13489) -Fix: first determine where to *exactly* build a house before asking a NewGRF whether the location is good instead of possibly moving the house a tile after the NewGRF said the location is good.
2008-06-12 14:41:29 +00:00
smatz
39b397438c
(svn r13488) -Fix (r13485): track wasn't removed on company bankrupcy when there was a ship on lower halftile
2008-06-12 13:40:07 +00:00
rubidium
43622f95e1
(svn r13485) -Fix: let ships also navigate on half-tile sloped watery rail tiles.
2008-06-12 11:15:43 +00:00
peter1138
d61da119d3
(svn r13482) -Codechange: Use "extended bytes" in Actions 3 and 4 for vehicles
2008-06-12 09:25:04 +00:00
smatz
9d359641ec
(svn r13481) -Codechange: add 'B' keyboard shortcut to build aqueduct (planetmaker)
2008-06-11 21:37:36 +00:00
rubidium
da524e71ae
(svn r13480) -Fix [FS#2050]: RVs stoppping at drive through stations of other companies.
2008-06-11 19:57:45 +00:00
smatz
5d5d9f682e
(svn r13479) -Codechange: don't use word 'bridge' for aqueducts that often
2008-06-11 17:35:55 +00:00
smatz
1a043128e1
(svn r13478) -Codechange: don't use GetBridgeSpec() for aqueducts
2008-06-11 17:10:36 +00:00
smatz
881d384e56
(svn r13477) -Fix (r13464): correct tile type in the Query tile info window
2008-06-11 16:24:00 +00:00
rubidium
232a2a8e3c
(svn r13476) -Fix: draw canal borders for locks and when directly next to a aquaduct entrace but under the aqueduct.
2008-06-11 16:22:07 +00:00
smatz
58d63ec726
(svn r13475) -Fix (r13464): crash on destroying aquaduct with ship on in and on company bankrupt
2008-06-11 15:56:55 +00:00
glx
f56fe58d48
(svn r13472) -Backport (r13467 from NoAI): make CmdRemoveRoadStop use p2 as documented (only look at bit 0, not at the complete value)
2008-06-11 15:08:52 +00:00
rubidium
3d5fe9bfc1
(svn r13469) -Codechange: add support for loading Action 0x05, type 0F: "tracks for slopes". It's not useful right now, but it will be in the future.
2008-06-11 14:55:02 +00:00
rubidium
f858e5bbf4
(svn r13468) -Fix: make aqueducts a little more expensive than normal bridges and disable terraforming of aqueduct bridgeheads; one can't terraform normal canal tiles either.
2008-06-11 14:51:31 +00:00
rubidium
93fb5bc63d
(svn r13466) -Fix (r13464): slope checking got lost during development...
2008-06-11 14:13:07 +00:00
rubidium
7f6382badd
(svn r13464) -Codechange: support NewGRF Action 0x05, type 12.
2008-06-11 13:54:01 +00:00
smatz
dc5ceacd77
(svn r13462) -Codechange: move DriverFactoryBase destructor definition from header file (saves ~16kB)
2008-06-11 12:46:28 +00:00
smatz
bd5067b5a0
(svn r13456) -Codechange: use AllocaM() macro instead of alloca() at most places
2008-06-10 21:59:22 +00:00
belugas
f4153bcbde
(svn r13446) -Fix(r13443): changed the var previously introduced from 69 to 46, as no param was required (thanks frosch)
2008-06-10 17:47:55 +00:00
smatz
8123d4de11
(svn r13445) -Codechange: make 32bpp_optimized blitter ~10-20% faster in drawing (depends on architecture and compiler)
2008-06-10 17:28:37 +00:00
rubidium
0900f3388a
(svn r13444) -Codechange: make the order GUI somewhat more efficient. The most used options can be done with a single click now.
2008-06-10 16:46:11 +00:00
belugas
bb7e9ee138
(svn r13443) -Feature[newGRF]: Add var 0x69 for industries, long format construction date.
...
Same as var B0, but base year is now 0, instead of 1920
2008-06-10 16:10:54 +00:00
belugas
54e7a3b196
(svn r13437) -Feature[newGRF]: Add long format introduction and maximum construction year for house.
2008-06-10 00:42:19 +00:00
smatz
bf8afb4c38
(svn r13434) -Fix (r13317): news window with invalid news item could be shown
2008-06-09 12:20:00 +00:00
rubidium
657bbf305e
(svn r13433) -Codechange: remove a now useless global variable.
...
-Fix: MP advertising was not advertising.
2008-06-09 12:17:01 +00:00
rubidium
2f59734909
(svn r13419) -Fix [FS#2063]: Entries in the bridge list were not sorted when the window was just opened.
2008-06-08 19:18:01 +00:00
rubidium
e43d050730
(svn r13417) -Fix (r12945, r13413): freeing the ThreadObjects in a manner that hopefully doesn't cause crashes.
2008-06-08 15:27:57 +00:00
rubidium
eac3301b63
(svn r13413) -Codechange: remove some enums that haven't been used for years.
2008-06-08 12:28:23 +00:00
truebrain
b95042b05c
(svn r13412) -Add: OTTDThreadTerminateFunc, for all thread systems, which is called when a thread is terminated. Now GenWorld- and SaveLoad-thread cleanup theirselves correctly, while Fibers don't (as that causes access-violations)
2008-06-08 12:06:27 +00:00
rubidium
96d7f87cc9
(svn r13411) -Codechange: remove the return value from the thread procs because it is never used.
2008-06-08 10:51:36 +00:00
rubidium
b1dc705492
(svn r13409) -Fix: division by zero when one would press 'd' (skip order) when there's no order.
2008-06-08 09:14:30 +00:00
rubidium
d083afea90
(svn r13408) -Codechange: some stricter checking.
2008-06-08 08:44:19 +00:00
miham
04e31cae5a
(svn r13400) -Update: WebTranslator2 update to 2008-06-07 18:14:28
...
korean - 8 fixed, 16 changed by leejaeuk5 (24)
romanian - 5 fixed, 185 changed by CrystyB (190)
russian - 1 changed by Smoky555 (1)
2008-06-07 16:15:20 +00:00
frosch
77ff05a5f1
(svn r13397) -Fix: Do not crash when resolving vehicle sprite groups with zero sprites.
2008-06-07 00:06:36 +00:00
glx
a43c7af33b
(svn r13396) -Fix (r13375): assertion failing when changing grfs in game (compatible grfs)
2008-06-06 19:27:09 +00:00
glx
ee256e770a
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
2008-06-05 20:54:52 +00:00
rubidium
5176319dd5
(svn r13389) -Codechange: remove NM_CALLBACK because that information could be gathered from the fact that a callback has been specified. Patch by Cirdan.
2008-06-05 16:55:00 +00:00
peter1138
261018fc8c
(svn r13388) -Codechange: Remove "my invented flag for something that is a wagon"
2008-06-05 12:08:20 +00:00
rubidium
94718ae0de
(svn r13387) -Fix: industry directory sorting not working correctly (= != ==)
2008-06-05 11:34:26 +00:00
rubidium
9e811a2f8b
(svn r13386) -Fix: global currency/units setting being overriden when loading a savegame.
2008-06-05 11:26:38 +00:00
peter1138
9b971dab60
(svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles.
2008-06-05 07:38:22 +00:00
miham
c217a11bbd
(svn r13384) -Update: WebTranslator2 update to 2008-06-05 08:15:43
...
brazilian_portuguese - 9 fixed, 6 changed by tucalipe (15)
catalan - 9 fixed by arnaullv (9)
croatian - 13 fixed by knovak (13)
czech - 33 fixed by Hadez (33)
danish - 47 fixed by ThomasA (47)
dutch - 9 fixed by habell (9)
estonian - 42 fixed, 5 changed by kristjans (47)
finnish - 5 fixed, 1 changed by kerba (6)
french - 9 fixed, 2 changed by glx (8), belugas (3)
icelandic - 75 fixed by scrooge (75)
italian - 9 fixed, 12 changed by lorenzodv (21)
korean - 76 fixed, 15 changed by leejaeuk5 (91)
portuguese - 7 fixed by izhirahider (7)
romanian - 97 fixed, 302 changed by CrystyB (399)
russian - 12 fixed by Smoky555 (12)
spanish - 12 fixed by eusebio (12)
swedish - 13 fixed by ChrillDeVille (6), daishan (7)
turkish - 39 fixed, 1 changed by jnmbk (40)
ukrainian - 10 fixed by mad (10)
2008-06-05 06:17:04 +00:00
belugas
4f3eb7f3cd
(svn r13383) -Codechange: Put the cost of house removal in a class member
2008-06-05 01:43:03 +00:00
glx
dc22170c99
(svn r13380) -Fix (r13327): MSVC signed/unsigned warning
2008-06-04 22:30:44 +00:00
glx
0c1d792d5e
(svn r13379) -Fix (r13255): drive side can't be changed in intro
2008-06-04 22:03:22 +00:00
smatz
ce692c16ee
(svn r13378) -Fix (r13375): compilation without network support was broken
2008-06-04 11:21:36 +00:00
peter1138
f78ea7c6bf
(svn r13377) -Codechange: Let 'long format' build year work in vehicle purchase list.
2008-06-04 06:40:07 +00:00
belugas
2550f353e9
(svn r13376) -Feature: Add access to current long year and date from Action 7/9/D and VarAction2 (23/24 or A3/A4)
...
Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
2008-06-04 00:17:48 +00:00
smatz
c7a9637834
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
2008-06-03 18:35:58 +00:00
peter1138
d58f055876
(svn r13374) -Fix (r13364): Some common compilers do not yet support 9 year old specifications.
2008-06-03 12:11:16 +00:00
smatz
7ec0a9ec3f
(svn r13373) -Fix (r10210): loading of very old savegames was broken
2008-06-03 11:39:15 +00:00
peter1138
722f48a1d6
(svn r13372) -Cleanup: Excessive whitespace
2008-06-03 10:22:42 +00:00
peter1138
7b75cee876
(svn r13371) -Fix (r4510 ... r12924): Engine array size is not related to the ID used when setting a vehicle's name (it is vehicle type specific). Instead just test for a generic string.
2008-06-03 09:58:13 +00:00
rubidium
1ddfdda02c
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
2008-06-03 08:06:58 +00:00
rubidium
abf2b0efc3
(svn r13369) -Codechange: remove duplication of network configuration settings between NetworkSettings and NetworkGameInfo.
...
-Fix: failure of changing the server password during games because the password wasn't duplicated properly.
2008-06-03 08:04:35 +00:00
belugas
4b4e73c1dd
(svn r13368) -Codechange: give house's min/max_date a better name, as it is really year, not date
2008-06-03 03:06:16 +00:00
belugas
b0ada3fbbf
(svn r13367) -Codechange: Allow CircularTileSearch function to return the tile where search has been successful, or INVALID_TILE if it has not
2008-06-03 02:20:27 +00:00
smatz
00851610e1
(svn r13366) -Fix: clicking in the Subsidies window was broken
2008-06-03 00:23:54 +00:00
rubidium
def3177d3a
(svn r13365) -Fix: don't segfault on trying to set a non-existing patch setting.
2008-06-02 23:01:57 +00:00
peter1138
7b66180d78
(svn r13364) -Codechange: Refactor action 3 mapping to use grf_load_*() instead of direct byte array access.
2008-06-02 19:52:41 +00:00
peter1138
86ab690ec5
(svn r13363) -Codechange: Code duplication tidy up
2008-06-02 19:35:30 +00:00
smatz
2e8b9a70ec
(svn r13362) -Fix: make the town authority window a bit less glitchy
2008-06-02 14:34:23 +00:00
glx
014cb33bb9
(svn r13361) -Fix (r13360): regexp failed
2008-06-02 14:30:55 +00:00
skidd13
11cdcf875c
(svn r13360) -Fix (r13359): Forgot to remove some instances of FiosAlloc()
2008-06-02 14:27:58 +00:00
skidd13
8a40ca49c6
(svn r13359) -Codechange: convert _fios_items to a SmallVector
...
-Cleanup: some reincarnations of _fios_items in the code
2008-06-02 14:19:27 +00:00
rubidium
fd0be850fe
(svn r13358) -Codechange: split next order determination and conditional order processing functionality from the order handling. Patch based on work by michi_cc.
2008-06-02 08:33:38 +00:00
rubidium
3efece1284
(svn r13357) -Codechange: add constness to YAPF.
2008-06-02 06:44:06 +00:00
peter1138
10b494d260
(svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates
2008-06-02 06:42:27 +00:00
smatz
0812e2f959
(svn r13354) -Codechange: make 8bpp_optimized blitter ~25% faster in encoding and ~15% faster in drawing (depends on architecture)
2008-06-01 19:36:55 +00:00
smatz
ed462507b2
(svn r13351) -Codechange: disable warnings about unused variable for builds without asserts
2008-06-01 15:08:14 +00:00
glx
10d6f6c5b8
(svn r13350) -Fix: wrong tooltip for waypoint picker scrollbar
2008-06-01 13:23:40 +00:00
rubidium
92c80dab4c
(svn r13349) -Codechange: remove a pointless flag; the flag is set before calling a function and is then reset in the function without ever reading it. Patch by Cirdan.
2008-06-01 10:11:31 +00:00
rubidium
d19c347fd0
(svn r13348) -Fix: an industry does not always need foundations; in the case of NewGRFs an industry can be built on a steep slope, however when 'querying' the foundation type of an industry we neglected the fact that these steep slope tiles do not have a foundation. As a result of this when one built a structure requiring foundations on a tile SW or SE of a steep slope industry tile it would try to apply the foundation on the steep slope to determine whether to draw the wall of the foundation and trigger an assert.
2008-05-31 22:43:42 +00:00
glx
0268076337
(svn r13347) -Fix (r12396): ottdres.rc.in was forgotten
2008-05-31 22:12:53 +00:00
rubidium
3d75eb446d
(svn r13346) -Fix (r13322): scrolling the main viewport with keyboard when having a build tool selected failed.
2008-05-30 21:06:43 +00:00
rubidium
5a6f6bf067
(svn r13345) -Codechange: only one of all the NewsItem's instance duration variable, so move it so there is only once instance of that variable. Patch by Cirdan.
2008-05-30 20:57:19 +00:00
rubidium
6d90affce0
(svn r13344) -Codechange: remove some code duplication.
2008-05-30 20:08:32 +00:00
rubidium
2f3b88ef9a
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
2008-05-30 18:20:26 +00:00
rubidium
e81386476f
(svn r13342) -Fix: smallvec.h/sortlist_type.h didn't include everything they needed.
2008-05-30 09:32:24 +00:00
rubidium
00ccb1dc33
(svn r13341) -Codechange: make most of the network settings configurable via the patch command.
2008-05-30 09:23:05 +00:00
rubidium
933c9df335
(svn r13339) -Feature: splitting of the main toolbar when the resolution becomes very low so the buttons are still visible and useable. Patch by Dominik.
2008-05-29 23:33:37 +00:00
rubidium
e2997c9976
(svn r13338) -Doc: add documentation about the window placement. Patch by Alberth.
2008-05-29 22:22:02 +00:00
rubidium
fdb4214525
(svn r13337) -Doc: add documentation to some variables in settings_type.h.
2008-05-29 21:36:29 +00:00
rubidium
2854cc968f
(svn r13336) -Fix: loading old savegames, e.g. the intro game, would reset the autosave settings.
2008-05-29 21:36:10 +00:00
rubidium
d58080fd44
(svn r13335) -Fix: remove rogue (debugging) printf.
2008-05-29 21:35:49 +00:00
rubidium
c33164831d
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
2008-05-29 20:21:28 +00:00
rubidium
61507ffeab
(svn r13333) -Fix: compilance without networking enabled.
2008-05-29 19:58:17 +00:00
rubidium
be93c2c089
(svn r13332) -Fix (r13325): network games got somewhat broken.
2008-05-29 19:06:54 +00:00
peter1138
79d008cd2e
(svn r13331) -Fix (r12924): Wrong include type for (sdt::)map
2008-05-29 17:54:02 +00:00
smatz
a0c62f1752
(svn r13330) -Fix: 'Player name' dialog was broken in two ways
2008-05-29 17:01:42 +00:00
skidd13
bed7719967
(svn r13328) -Fix (r13327): Don't access an item when there isn't any
2008-05-29 16:47:22 +00:00
skidd13
a8abdaec92
(svn r13327) -Codechange: NetworkGameWindow uses GUILists Sort() now
2008-05-29 16:37:26 +00:00
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-29 15:13:28 +00:00
peter1138
2a816fb685
(svn r13323) -Codechange: scrollbars are not refresh counters
2008-05-29 11:47:56 +00:00
rubidium
22d7b25296
(svn r13322) -Codechange: _no_scroll belongs more with the window code.
2008-05-29 11:13:11 +00:00
rubidium
f2869bb7db
(svn r13321) -Codechange: move some GUI/viewport related functions out op openttd.cpp to viewport.cpp/window.cpp.
2008-05-29 10:16:59 +00:00
rubidium
34e2d8f1e1
(svn r13320) -Codechange: move some enums from openttd.h to more logical locations.
2008-05-29 09:54:47 +00:00
peter1138
8ea996e246
(svn r13319) -Codechange: Remove use of imaginary horizontal scrollbar in the group vehicle list
2008-05-29 07:34:40 +00:00
rubidium
27bca407de
(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there.
2008-05-29 06:49:56 +00:00
rubidium
7f8f5fa52c
(svn r13317) -Codechange: make news messages use a linked list instead of a moving circular buffer. This makes it possible to store more news messages in the history. Based on a patch by Cirdan.
...
-Codechange: the number of news messages is reduced by removing every news message that is a configurable amount older than when it would not be shown in the newspaper popup/ticker, which is e.g. a month for industry production changes and half a year for subsidy offers. As a result the more important messages will stay longer in the message history (if longer than 30 messages).
2008-05-28 21:36:16 +00:00
rubidium
b4e431bf7c
(svn r13316) -Codechange: move some functions around to make them grouped more logically.
2008-05-28 20:13:28 +00:00
peter1138
53aebc84c6
(svn r13315) -Fix (r13314): Assert if no engines or wagons available
2008-05-28 20:06:00 +00:00
peter1138
f954a93ee0
(svn r13314) -Codechange: Switch EngineList from std::vector to GUIList
2008-05-28 17:29:27 +00:00
peter1138
f44a2c38f8
(svn r13313) -Fix-ish (r13306): List was copied in another place the autoreplace gui...
2008-05-28 17:08:45 +00:00
skidd13
6e334d10bb
(svn r13312) -Update: apply english.txt changes from r13311 to other languages
2008-05-28 16:50:05 +00:00
skidd13
b80425fdf9
(svn r13311) -Codechange: Use GUIList for the industry directory window
...
-Codechange: Replaced the four sort buttons by a dropdown
-Codechange: Reduced the default window size
2008-05-28 16:45:00 +00:00
smatz
f7233786d2
(svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard)
2008-05-28 15:28:27 +00:00
rubidium
17ccd5ec65
(svn r13309) -Fix: the difficulty settings from the savegame would be reset by the ones of the intro game.
2008-05-28 14:36:06 +00:00
peter1138
f9fc53f98a
(svn r13307) -Codechange: Separate VehicleList and its two functions so only the 3 users include it, reducing dependencies on misc/smallvec.h
2008-05-28 11:56:21 +00:00
peter1138
bb00206736
(svn r13306) -Fix (r8362): Pass engine list by pointer instead of making a copy of it.
2008-05-28 10:29:48 +00:00
peter1138
504d0d1ae5
(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.
2008-05-28 06:30:55 +00:00
smatz
e15863fa77
(svn r13304) -Fix (r13042): possible double free (showed up in r13092)
2008-05-27 23:40:36 +00:00
smatz
8aa797603c
(svn r13303) -Fix (r13301): 64bit gcc compilation was broken
2008-05-27 23:10:42 +00:00
rubidium
14d8aacebb
(svn r13302) -Fix (r13301): GCC doesn't necessarily like what MSVC likes...
2008-05-27 22:02:26 +00:00
rubidium
5c5ee7eb57
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
2008-05-27 21:41:00 +00:00
skidd13
49a0bd7f90
(svn r13299) -Fix (r13286): Stations sort type isn't updated correctly
2008-05-27 20:33:44 +00:00
smatz
437d5d9798
(svn r13298) -Codechange: remove unused _total_signs
2008-05-27 20:25:28 +00:00
peter1138
cfb962c7f1
(svn r13297) -Codechange: Use GUIList for the town directory window
2008-05-27 20:05:36 +00:00
smatz
ee9a9503ce
(svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset
2008-05-27 19:58:32 +00:00
smatz
ee904e1df5
(svn r13295) -Codechange: remove now redundant check
2008-05-27 19:03:06 +00:00
skidd13
83c442cc57
(svn r13294) -Codechange: convert the inheritance of GUIList in IndustryDirectoryWindow to a member object
2008-05-27 18:50:31 +00:00
smatz
9c7d4ffd4c
(svn r13293) -Fix (r13226): airport far from a town generated too much noise
2008-05-27 18:20:14 +00:00
glx
20f2bc3138
(svn r13292) -Fix (r13285): MSVC warnings
2008-05-27 16:56:58 +00:00
peter1138
0ce9343fb6
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
2008-05-27 15:30:51 +00:00
peter1138
f7a9c4f522
(svn r13287) -Codechange: move engine list gui code away from engine.cpp (and its headers) to engine_gui.cpp
2008-05-27 12:24:23 +00:00
skidd13
6d46851b61
(svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered
2008-05-27 10:27:30 +00:00
skidd13
e42690b381
(svn r13285) -Codechange: station sorting uses GUILists Sort() now
2008-05-27 09:57:29 +00:00
skidd13
825f8266e2
(svn r13283) -Codechange: convert the inheritance of GUIList in PlayerStationsWindow to a member object
2008-05-27 09:24:45 +00:00
smatz
e424367938
(svn r13280) -Fix (r13276): MSVC compilation was broken
2008-05-27 00:13:51 +00:00
smatz
a7761332f6
(svn r13279) -Codechange: simplify condition for terminating loop when reversing list order
2008-05-26 21:45:57 +00:00
peter1138
88f2ef652e
(svn r13278) -Fix: Missing call to FindWindowPlacementAndResize() for drop down lists
2008-05-26 21:40:52 +00:00
rubidium
495ca8fdb9
(svn r13277) -Fix: opntitle 'jumping' to the temperate climate when closing the NewGRF settings window.
2008-05-26 21:38:17 +00:00
smatz
a0b14f02c8
(svn r13276) -Codechange: use qsort() for initial sorting of a list for better performance (credits go to skidd13 and peter1138)
2008-05-26 21:27:06 +00:00
smatz
a509746288
(svn r13275) -Fix: sort lists with 2 items, too
...
-Fix: reset VL_RESORT and resort timer even when no sort was needed
2008-05-26 21:08:03 +00:00
glx
6e6014918e
(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
2008-05-26 20:20:38 +00:00
skidd13
0972b3dd15
(svn r13271) -Codechange: groups sorting uses GUILists Sort() now
2008-05-26 18:30:58 +00:00
peter1138
4c69d11f5e
(svn r13270) -Codechange: There is no need to clear lists in the window constructor
2008-05-26 18:25:27 +00:00
skidd13
515e0fa22d
(svn r13269) -Codechange: build bridge window uses GUILists Sort() now
...
-Cleanup: make some globals part of the build bridge window
2008-05-26 17:53:37 +00:00
skidd13
18acb21d65
(svn r13267) -Codechange: extend GUIList with a GnomeSort
2008-05-26 16:44:48 +00:00
peter1138
02b5ffa13f
(svn r13266) -Codechange: Use SmallVector in GUIList
2008-05-26 16:23:23 +00:00
smatz
e4be8c6e70
(svn r13260) -Fix: linked terraform toolbar wasn't marked dirty after moving
2008-05-26 10:41:30 +00:00
peter1138
feebf3f3c9
(svn r13259) -Fix: Subsidy text could still overflow
2008-05-26 10:28:59 +00:00
rubidium
3a4b397961
(svn r13258) -Codechange: add support for using (most) of the old patch names in the console.
2008-05-26 05:58:15 +00:00
belugas
5f782d06be
(svn r13257) -Fix(r13226): Typo has found its way on the code... Thanks cirdan
2008-05-26 02:25:17 +00:00
rubidium
cd8e589fa9
(svn r13256) -Codechange: merge the OPTS and PATS chuncks.
...
-Codechange: split the diff_custom variable.
-Feature: allow changing some of the diff_custom variables via the console in network games.
2008-05-26 00:31:36 +00:00
rubidium
8c9cc415e3
(svn r13255) -Codechange: move _opt to _settings.
2008-05-25 22:36:44 +00:00
smatz
51ca426c4b
(svn r13254) -Fix: waypoint orders could have invalid flags set after conversion
2008-05-25 20:00:10 +00:00
smatz
9fa52f7316
(svn r13253) -Codechange: simplify conversion of old orders a bit
2008-05-25 19:38:17 +00:00
smatz
f9e7fa4c88
(svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders
2008-05-25 19:29:24 +00:00
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-25 19:17:03 +00:00
peter1138
6ea832ec7c
(svn r13250) -Codechange: Use VehicleList in SendAllVehiclesToDepot()
2008-05-25 17:36:49 +00:00
smatz
31a266b5b3
(svn r13249) -Fix [FS#2039]: make industry sorting by transported percentage more consistent
2008-05-25 17:26:16 +00:00
peter1138
56f78e6412
(svn r13248) -Codechange: Use VehicleList for depot GUI.
2008-05-25 17:22:49 +00:00
rubidium
5292ee981e
(svn r13247) -Codechange: small amount of coding style for settings.cpp.
2008-05-25 17:04:09 +00:00
peter1138
cfc8ed1f5b
(svn r13246) -Fix (r13245): incorrect parameters to memcpy
2008-05-25 16:22:34 +00:00
peter1138
da8bb14cec
(svn r13245) -Codechange: Use SmallVectors for generating vehicle lists, simplifying calling code somewhat.
2008-05-25 16:12:13 +00:00
smatz
32380e257c
(svn r13244) -Fix: allow only one town directory window to be opened
2008-05-25 15:57:45 +00:00
rubidium
5fa0946c08
(svn r13242) -Codechange: remove _opt_ptr.
2008-05-25 12:57:39 +00:00
peter1138
f6ea07e7d8
(svn r13241) -Codechange: Simplify CmdDepotSellAllVehicles() a bit
2008-05-25 11:18:57 +00:00
peter1138
d9805b46b9
(svn r13240) -Codechange: More const-ness for GUI code.
2008-05-25 09:40:44 +00:00
smatz
60ae799321
(svn r13239) -Fix: certain compilers give false warning about uninitialized variable
2008-05-24 23:18:21 +00:00
frosch
ca30288c9d
(svn r13234) -Fix: Check/affect town rating when removing/bulldozing town-owned road under drivethrough stops.
...
-Fix: Reset the 'town-owned-road'-flag when removing and rebuilding road under drivethrough stops.
2008-05-24 22:15:10 +00:00
frosch
6e7a7412cd
(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
...
-Fix: Before evaluating RoadOwner, check if the roadtype is present.
-Fix: Some places assumed that MP_ROAD means normal street.
2008-05-24 19:36:20 +00:00
peter1138
c34b458ace
(svn r13232) -Codechange: Simplify BuildDepotVehicleList()
2008-05-24 12:12:02 +00:00
rubidium
68bb5a08c5
(svn r13231) -Codechange: split the core console code and the console GUI.
2008-05-24 11:55:25 +00:00
frosch
8b1e7c8189
(svn r13230) -Fix [FS#2030](r13171): When closing toolbars, also close their PickerWindows.
2008-05-24 11:19:30 +00:00
rubidium
6884f9cb41
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
2008-05-24 10:35:15 +00:00
rubidium
6c20f77330
(svn r13228) -Codechange: split console.h.
2008-05-24 10:15:06 +00:00
peter1138
0c47d3fc14
(svn r13227) -Codechange: Apply code style
2008-05-24 10:02:49 +00:00
belugas
fc35ad9ee9
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
...
Initial concept : TTDPatch (moreairpots), Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
2008-05-24 02:54:47 +00:00
peter1138
6f233b1f8f
(svn r13225) -Fix (r13041): Missing calls to FindWindowPlacementAndResize() from lots
...
of windows causing 'two stage' opening effect.
2008-05-23 23:02:13 +00:00
rubidium
95c2307595
(svn r13224) -Fix (r13107): set the location of the old SelectPlayerFaceWindow when switching from simple to advanced or vice versa instead of letting the new window popup somewhere 'randomly'.
2008-05-23 22:55:32 +00:00
smatz
3866effe71
(svn r13222) -Change: allow old AI building helistations and helidepots for oil rig routes
2008-05-23 16:08:58 +00:00
smatz
0b07ed0bcd
(svn r13221) -Fix (r8747): old AI failed to build oil rig routes
2008-05-23 15:57:18 +00:00
smatz
2d14e889b2
(svn r13217) -Fix: old AI was building small airports in years when they were not available in original game, causing small planes and helis everywhere
2008-05-23 00:28:13 +00:00
smatz
a1bf80933d
(svn r13216) -Codechange [FS#2026]: enumify and comment Editor Terraform Toolbar widgets (Roujin)
2008-05-22 20:44:24 +00:00
smatz
e9cd783e66
(svn r13215) -Codechange [FS#2029]: enumify and comment Build Dock widgets (Roujin)
2008-05-22 20:37:14 +00:00
belugas
1e79665b45
(svn r13210) -Codechange: make town (previously named t) a private member of the different Town guis and assign it only once, at creation
2008-05-22 02:13:24 +00:00
belugas
b4128cbc25
(svn r13209) -Codechange: Privatize what should be private.
2008-05-22 02:03:05 +00:00
smatz
0d2266a3ac
(svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns
2008-05-22 00:47:42 +00:00
smatz
0b54ea39db
(svn r13207) -Fix: misleading comments (michi_cc)
2008-05-22 00:37:27 +00:00
frosch
eca692ef90
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
2008-05-21 22:15:39 +00:00
peter1138
510c0acb4a
(svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro.
2008-05-21 12:06:05 +00:00
glx
621e205f74
(svn r13202) -Fix (r13149): MSVC signed/unsigned warning
2008-05-20 21:55:45 +00:00
smatz
f244b6b361
(svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window
2008-05-19 19:17:56 +00:00
smatz
5cedf77a9a
(svn r13190) -Cleanup: remove unused variable
2008-05-19 16:44:50 +00:00
rubidium
27c38052b7
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
2008-05-19 09:48:47 +00:00
rubidium
fc29abf621
(svn r13184) -Codechange: make a window class of the signs list.
2008-05-19 09:45:24 +00:00
rubidium
eb35fce734
(svn r13183) -Codechange: make a window class of the VehicleViewWindow.
2008-05-19 09:39:05 +00:00
rubidium
c3fd582c55
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
2008-05-19 09:24:03 +00:00
rubidium
a1137fcdfe
(svn r13181) -Codechange: make news callback handling a little simpler. Patch by Cirdan.
2008-05-19 09:18:51 +00:00
peter1138
b1e324dd47
(svn r13180) -Codechange: make a window class of the TownDirectoryWindow.
2008-05-19 09:17:26 +00:00
smatz
6864eedb1b
(svn r13179) -Fix (r13173): r13178 applies to the main toolbar in Scenario Editor, too
2008-05-19 02:01:44 +00:00
smatz
70127934d1
(svn r13178) -Fix (r13173): the main toolbar didn't respect patch settings, it was always positioned on the right side
2008-05-19 01:57:30 +00:00
belugas
cbd0349251
(svn r13177) -Fix[FS#2002]: Using level tool in scenario editor makes tiles brown. That is the only tool that does so in Scenario Editor (apart dynamite, of course).Report and Fix by Roujin
2008-05-19 01:51:57 +00:00
smatz
290cedade2
(svn r13176) -Fix (r13153): town window was glitchy while opening
2008-05-19 01:50:07 +00:00
glx
fa72187bbf
(svn r13175) -Fix (r13174): sorting criteria and order for industry directory was always reset on window opening
2008-05-19 01:10:52 +00:00
glx
17a1873843
(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.
2008-05-18 23:36:33 +00:00
rubidium
09b5320a81
(svn r13173) -Codechange: make windows of the main toolbars.
2008-05-18 22:11:46 +00:00
rubidium
9fc630422d
(svn r13172) -Codechange: make a window class of the terraform toolbars.
2008-05-18 21:53:45 +00:00
rubidium
ade538828d
(svn r13171) -Codechange: make a class of the Build[Air|Rail|Road|Dock]ToolbarWindows.
2008-05-18 21:34:35 +00:00
rubidium
eb2f19ed66
(svn r13170) -Codechange: make classes of the EnginePreview and BuyCompany windows.
2008-05-18 20:49:22 +00:00
rubidium
6da56ee87e
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
2008-05-18 20:40:30 +00:00
smatz
9aa69db2e6
(svn r13168) -Fix (r13072): forgot to 'fix' EngList_SortPartial() together with EngList_Sort()
2008-05-18 20:01:54 +00:00
rubidium
629c5ce740
(svn r13167) -Codechange: prepend _ to a global variable.
2008-05-18 19:41:47 +00:00
rubidium
2e25df3ddf
(svn r13166) -Codechange: CmdSetRoadDriveSide belongs in road_cmd.cpp, not settings_gui.cpp.
2008-05-18 17:40:13 +00:00
rubidium
9defec7876
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
2008-05-18 16:51:44 +00:00
glx
aab9e191f5
(svn r13163) -Codechange: remove unused code
2008-05-18 14:12:16 +00:00
smatz
4bf7ab0d1c
(svn r13162) -Fix (r13160): trees couldn't be planted, correct function wasn't overloaded
2008-05-18 14:04:51 +00:00
glx
e82bab5323
(svn r13161) -Fix: free the blitter list when the last blitter is removed.
2008-05-18 12:47:08 +00:00
rubidium
fc4393dcfe
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
2008-05-18 12:40:38 +00:00
skidd13
a426047441
(svn r13159) -Feature: Add the ability to sort availible bridges in the build bridge GUI
2008-05-18 12:25:46 +00:00
rubidium
fc7e8100e1
(svn r13158) -Codechange: make a class of the GameOptionsWindow.
2008-05-18 12:17:52 +00:00
rubidium
3455844ea3
(svn r13156) -Codechange: make classes of the GraphWindows.
2008-05-18 11:23:41 +00:00
rubidium
cc3a41bfa9
(svn r13155) -Codechange: make a window class of the company league and graph legenda windows.
2008-05-18 09:39:40 +00:00
rubidium
50203f8786
(svn r13154) -Codechange: make a window class of the news message history window.
2008-05-18 08:50:51 +00:00
rubidium
33b822faf7
(svn r13153) -Codechange: make classes of the TownViewWindow and the ScenarioEditorTownGenerationWindow.
2008-05-18 08:13:13 +00:00
rubidium
62e36abd2e
(svn r13152) -Codechange: make a class of the subsidy window.
2008-05-18 08:12:29 +00:00
rubidium
f5681547ef
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
2008-05-17 23:11:06 +00:00
glx
c1713c9ab7
(svn r13150) -Codechange: make classes of the Music[TrackSelection]Window.
2008-05-17 22:52:51 +00:00
skidd13
736671347b
(svn r13149) -Codechange: make a class of the BuildBridgeWindow.
2008-05-17 22:07:04 +00:00
glx
8e47178919
(svn r13148) -Codechange: make a class of the SelectGameWindow.
2008-05-17 21:20:58 +00:00
rubidium
152e82ba92
(svn r13147) -Codechange: move the code to draw bankruptcy news to news_gui.cpp.
2008-05-17 21:13:05 +00:00
rubidium
9717e1ef07
(svn r13146) -Codechange: vehicle_base.h doesn't need to be included in vehicle_gui.h.
2008-05-17 20:54:18 +00:00
glx
dbdfccc2da
(svn r13145) -Codechange: make classes of the BuildDocks[Depot|Station]Window.
2008-05-17 20:49:45 +00:00
glx
b68943e4df
(svn r13144) -Codechange: make classes of the BuildRoad[Depot|Station]Window.
2008-05-17 17:37:44 +00:00
smatz
88f9fa89bc
(svn r13143) -Fix (r13142): the Build Waypoint window wasn't resized when it was opened
2008-05-17 16:59:12 +00:00
glx
fdcb4e6402
(svn r13142) -Codechange: make classes of the Build[RailDepot|RailStation|RailWaypoint|Signal]Window
2008-05-17 16:27:36 +00:00
rubidium
7812b24a77
(svn r13141) -Codechange: remove an unused variable from Window.
2008-05-17 13:04:30 +00:00
rubidium
87015f5b63
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
2008-05-17 13:01:30 +00:00
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
2008-05-17 12:48:06 +00:00
rubidium
d8154e00ac
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
2008-05-17 12:26:00 +00:00
rubidium
976f86e7a7
(svn r13137) -Fix: do not send rcon commands of the server to the first client but do directly execute those on the server.
2008-05-17 11:46:35 +00:00
rubidium
9f41e0cf18
(svn r13136) -Codechange: make a window class of the console window.
2008-05-17 09:39:29 +00:00
rubidium
edb2e77035
(svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow.
2008-05-17 08:00:13 +00:00
belugas
27c3d210c4
(svn r13134) -Codechange: make a class of the Airport Picker Window.
2008-05-17 03:31:22 +00:00
belugas
17bd325574
(svn r13133) -Codechange: Add a base class (descending from Window) for all new windows that are going to require a ResetObjectToPlace to be performed on closing.
...
This will allow to free the said window only once, and not twice otherwise
2008-05-17 03:29:16 +00:00
glx
5199f5ff47
(svn r13132) -Codechange: make a class of the GenerateProgressWindow.
2008-05-17 03:16:04 +00:00
glx
5b54c9e373
(svn r13131) -Codechange: make a class of the ErrmsgWindow.
2008-05-17 02:54:04 +00:00
rubidium
cc0dae2271
(svn r13130) -Codechange: remove some of the (old) WindowEvent wrapper functions/enums/variables as they are not used anymore.
2008-05-16 23:30:10 +00:00
rubidium
55546ae82c
(svn r13129) -Codechange: remove the WP macro and it's related variables.
2008-05-16 23:29:31 +00:00
peter1138
7ae25c25b6
(svn r13128) -Codechange: Make a class of the refit window
2008-05-16 23:23:38 +00:00
glx
670eca936f
(svn r13127) -Fix (r13122): of course WIN32_LEAN_AND_MEAN excludes too much stuff
2008-05-16 22:29:27 +00:00
glx
180272ed86
(svn r13126) -Fix (r13022) [FS#2009, FS#2010]: driver list should be dynamically allocated as static uninitialistion order is undetermined. The list is freed when the latest driver is removed.
2008-05-16 21:32:10 +00:00
bjarni
5469686001
(svn r13125) -Fix [FS#2000](r12913): [autoreplace] failing replacement and restoring a vehicle will no longer decrease the vehicle count in groups
2008-05-16 21:04:49 +00:00
glx
ced7ee3043
(svn r13124) -Codechange: make a class of the OrdersWindow.
2008-05-16 20:08:20 +00:00
rubidium
5ede3da220
(svn r13123) -Codechange: passing the bankrupt type via data_b is not needed anymore. Patch by Cirdan.
2008-05-16 20:04:17 +00:00
glx
5ea41a57b8
(svn r13122) -Fix: WIN32_LEAN_AND_MEAN define is needed for all WIN32 compilers
2008-05-16 17:53:19 +00:00
rubidium
3b97cc2e30
(svn r13121) -Codechange: make a class of the PerformanceRatingDetailWindow.
2008-05-16 17:45:43 +00:00
rubidium
2da844b146
(svn r13120) -Codechange: make a class of the VehicleDetailsWindow.
2008-05-16 17:33:09 +00:00
rubidium
e1cce4dd3c
(svn r13119) -Codechange: make a class of the timetable window.
2008-05-16 13:39:25 +00:00
rubidium
feba3ac1e7
(svn r13118) -Codechange: make classes of the EndGameWindow and the HighScoreWindow.
2008-05-16 13:21:43 +00:00
rubidium
b39525581d
(svn r13117) -Codechange: make a window class of the PlayerFinancesWindow.
2008-05-16 07:34:48 +00:00
rubidium
1a2413d59e
(svn r13116) -Codechange: make a window class of the statusbar window.
2008-05-16 07:24:21 +00:00
rubidium
6ac20f00bb
(svn r13115) -Codechange: make a window subclass of the MessageOptionsWindow.
2008-05-16 07:15:32 +00:00
rubidium
7491b792e2
(svn r13114) -Codechange: use InvalidateData instead of direct window access to modify the state of the statusbar from outside the statusbar.
2008-05-16 07:08:04 +00:00
rubidium
7c7a4de3e5
(svn r13113) -Codechange: make a class of the TownAuthorityWindow.
2008-05-15 22:47:03 +00:00
rubidium
b84adf1d89
(svn r13112) -Codechange: make classes of the patches and custom currency windows.
2008-05-15 21:48:47 +00:00
rubidium
9e4d664a24
(svn r13111) -Documentation: update the documentation of AddNewsItem to reflect reality. Patch by Cirdan.
2008-05-15 20:53:44 +00:00
rubidium
c81a333cb6
(svn r13110) -Fix [FS#2018]: some toolbar buttons not being unpressed properly.
2008-05-15 20:52:28 +00:00
rubidium
9013632325
(svn r13109) -Codechange: make a class out of the CheatWindow.
2008-05-15 20:51:52 +00:00
rubidium
b08d728ac9
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
2008-05-15 20:04:10 +00:00
glx
6a50687bdc
(svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow.
2008-05-15 19:24:15 +00:00
rubidium
eeb6381690
(svn r13106) -Codechange: rework the toolbar code a little so functions do not have to return the Window they just created.
2008-05-15 19:00:20 +00:00
rubidium
8ba6f08ca6
(svn r13105) -Fix [FS#2015]: the title of a query window would (sometimes) change when the on screen keyboard was opened.
2008-05-15 18:26:45 +00:00
rubidium
5ae795953a
(svn r13104) -Codechange: make ResetObjectToPlace safe to be called recursively via the OnPlaceObjectAbort callback and use this knowledge to simplify closing some windows.
2008-05-15 14:41:56 +00:00
rubidium
8fff6e8638
(svn r13103) -Codechange: make a class of the PlayerCompanyWindow.
2008-05-15 14:12:22 +00:00
rubidium
d94bef9d5c
(svn r13102) -Codechange: make a class of the NewsWindow.
2008-05-15 13:47:55 +00:00
rubidium
d1ab9908bc
(svn r13101) -Codechange: remove a unused global function.
2008-05-15 13:47:22 +00:00
rubidium
76b8970a33
(svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls.
2008-05-15 13:39:36 +00:00
rubidium
009a748ab3
(svn r13099) -Fix [FS#2014]: when a window had children only one of them would be closed (on a parent closure) instead of all children.
2008-05-15 11:17:56 +00:00
rubidium
15e89b32b9
(svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot.
2008-05-15 08:01:46 +00:00
glx
534bf5b402
(svn r13097) -Codechange: make a class of the GameDifficultyWindow.
2008-05-15 00:01:42 +00:00
glx
bdd75a65f8
(svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes
2008-05-14 23:02:05 +00:00
glx
7728ef7204
(svn r13095) -Codechange: make a class of the SelectPlayerLiveryWindow.
2008-05-14 22:52:12 +00:00
rubidium
0449abe88b
(svn r13094) -Fix: closing the QueryWindow would always send a 'query has been cancelled message' even when it was not cancelled causing joining passworded servers/companies to fail.
2008-05-14 20:28:11 +00:00
glx
be43bbc3f3
(svn r13093) -Codechange: make a class of AboutWindow.
2008-05-14 20:01:06 +00:00
glx
22960e82aa
(svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it
2008-05-14 19:08:09 +00:00
smatz
7890344bbd
(svn r13091) -Fix: certain compilers give false warning about uninitialized variable
2008-05-14 18:35:15 +00:00
smatz
ec627dedf8
(svn r13090) -Codechange: add functions for direct conversion from DiagDirection to Track and Trackbits
2008-05-14 18:31:21 +00:00
smatz
56f15b3544
(svn r13089) -Fix (r13072): MorphOS compilation was broken
2008-05-14 18:27:39 +00:00
smatz
08814d50ea
(svn r13088) -Codechange: use SigSegState enum instead of bool variable (michi_cc)
2008-05-14 16:38:53 +00:00
peter1138
6bfd695002
(svn r13087) -Codechange: Constify CalcPercentVehicleFilled() (michi_cc)
2008-05-14 15:34:04 +00:00
smatz
f64c4fc4fb
(svn r13086) -Fix: do not crash badly after loading a newgrf with engines in-game that often
2008-05-14 15:29:48 +00:00
glx
bbc173dfc6
(svn r13083) -Fix (r13042): another segmentation fault when OskWindow's parent closes it
2008-05-14 02:32:35 +00:00
glx
c9f26cceb7
(svn r13082) -Fix (r13042): segmentation fault due to too early deletion of OskWindow.
2008-05-14 01:57:12 +00:00
glx
b4682bff97
(svn r13081) -Fix: Empty while-loop warnings from gcc 4.3+
2008-05-13 22:42:10 +00:00
smatz
311f2482fa
(svn r13080) -Fix: warning about unused variable when compiling without asserts
2008-05-13 22:19:20 +00:00
smatz
a152d420a5
(svn r13079) -Fix: certain compilers give false warning about uninitialized variable
2008-05-13 22:02:14 +00:00
rubidium
cf91f6bf3e
(svn r13078) -Fix: group gui used the vehicle type before it was actually set.
2008-05-13 21:50:31 +00:00
smatz
a9cc987929
(svn r13077) -Codechange: move function that updates cached num_engines to engine.cpp, make it run only 1 loop
2008-05-13 21:36:09 +00:00
rubidium
bb3bd587a6
(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.
2008-05-13 21:16:23 +00:00
peter1138
9fa2e849f2
(svn r13075) -Codechange: Allow any value for a dropdown item instead of just positive.
2008-05-13 21:11:38 +00:00
peter1138
eb112946a7
(svn r13074) -Fix: For multiheaded engines, halve power and running cost when used instead of when loading, to allow callback values to work properly.
2008-05-13 20:39:57 +00:00
peter1138
153acec334
(svn r13073) -Codechange: make classes of the NewGRF windows
2008-05-13 20:26:48 +00:00
smatz
ad8057ab76
(svn r13072) -Fix (r12995): possible out-of-bounds access
2008-05-13 18:39:15 +00:00
rubidium
ab7a5568d7
(svn r13071) -Codechange: make also a class of the MainWindow.
2008-05-13 14:59:50 +00:00
rubidium
8e702d1053
(svn r13070) -Fix (r13069): do save before commit...
2008-05-13 14:58:41 +00:00
rubidium
dddfaaac7d
(svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore.
2008-05-13 14:43:33 +00:00
rubidium
db69f81fe7
(svn r13068) -Codechange: make a class of the BuildVehicleWindow.
2008-05-13 14:28:27 +00:00
rubidium
aa44fe3b69
(svn r13067) -Codechange: make a class of the DepotWindow.
2008-05-13 13:39:50 +00:00
rubidium
e6f96da537
(svn r13066) -Fix [FS#2005]: loading of TTDP savegames with rivers in them.
2008-05-13 12:15:52 +00:00
rubidium
d0c79e1164
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
2008-05-13 10:17:04 +00:00
glx
d0033bfb07
(svn r13064) -Codechange: make a class of the SelectPlayerFaceWindow.
2008-05-13 01:05:39 +00:00
belugas
3982160f50
(svn r13063) -Fix(13062): Removal of old handler was not followed by removal in descriptor
2008-05-13 00:46:04 +00:00
belugas
6c0d2b9132
(svn r13062) -Codechange: make a class of the TransparencyToolbar.
2008-05-13 00:37:29 +00:00
glx
ca4d92e2f2
(svn r13061) -Codechange: make a class of the BuildTreesWindow.
2008-05-12 21:46:08 +00:00
glx
18c33e1569
(svn r13060) -Codechange: update build industry window when raw_industry_construction setting is modified
2008-05-12 14:54:33 +00:00
glx
cffb7a834c
(svn r13058) -Codechange: make a class of the ExtraViewportWindow.
2008-05-12 00:26:44 +00:00
glx
ad19bf105a
(svn r13055) -Codechange: make a class of SmallMapWindow.
2008-05-11 19:47:10 +00:00
rubidium
526d5de867
(svn r13054) -Codechange: make a class of the PlayerStationsWindow.
2008-05-11 18:50:12 +00:00
rubidium
4a809a692c
(svn r13053) -Codechange: station sorting used it's own implementation of GUIList and the associated enums, now it doesn't anymore.
2008-05-11 18:32:33 +00:00
rubidium
5924346697
(svn r13052) -Codechange: make a class of the DropdownWindow.
2008-05-11 18:18:18 +00:00
rubidium
4caa813711
(svn r13051) -Codechange: depot_d belongs in depot_gui.cpp.
2008-05-11 18:17:56 +00:00
glx
56c3f828cd
(svn r13050) -Codechange: make a class of IndustryViewWindow.
2008-05-11 17:44:56 +00:00
rubidium
3ef0a1e3be
(svn r13049) -Codechange: make a class of the TooltipsWindow.
2008-05-11 17:44:38 +00:00
rubidium
1be2847668
(svn r13048) -Codechange: make a class of the StationViewWindow.
2008-05-11 17:24:52 +00:00
glx
c708ab3b48
(svn r13047) -Codechange: remove vp_d
2008-05-11 15:08:44 +00:00
rubidium
c47926311b
(svn r13046) -Codechange: make classes of the VehicleListWindow and the VehicleGroupWindow.
2008-05-11 15:00:11 +00:00
rubidium
75e3792aa3
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
2008-05-11 14:23:45 +00:00
rubidium
568464aa96
(svn r13044) -Fix: deleting an already deleted window.
2008-05-11 14:09:38 +00:00
rubidium
9066a961e7
(svn r13043) -Codechange: remove some duplicate variables from news_d.
2008-05-11 13:02:58 +00:00
rubidium
eb2d47b547
(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
2008-05-11 12:26:20 +00:00
rubidium
e63137f47f
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
2008-05-11 11:41:18 +00:00
rubidium
599bc8942e
(svn r13040) -Codechange: make a class of the NetworkLobbyWindow.
2008-05-11 07:22:13 +00:00
rubidium
46875e28be
(svn r13039) -Codechange: make a class of the Query window.
2008-05-11 06:59:51 +00:00
belugas
7884a4ff19
(svn r13038) -Fix: When switching the signal gui patch to off, delete the signal window accordingly
2008-05-11 02:15:02 +00:00
rubidium
b47a151bce
(svn r13037) -Codechange: make a class of the ReplaceVehicle window.
...
-Fix [FS#1997]: MSVC 64 bit build failing to compile due to std::vectors being very large..
2008-05-10 23:44:15 +00:00
glx
356473efa5
(svn r13036) -Codechange: make a class of the BuildIndustry Window.
2008-05-10 23:43:08 +00:00
rubidium
c32559ac12
(svn r13035) -Codechange: remove two needless global-ish variables.
2008-05-10 22:43:33 +00:00
rubidium
3749323e23
(svn r13034) -Fix: segmentation fault due do double delete when closing the OSK window in some cases.
2008-05-10 21:35:20 +00:00
smatz
d41f3def5c
(svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working
2008-05-10 19:59:41 +00:00
glx
6ad199d127
(svn r13032) -Codechange: make industry view window resizable and truncate strings
2008-05-10 15:58:22 +00:00
rubidium
83664c8bc4
(svn r13031) -Codechange: make AssignWidgetToWindow a static function instead of a global one as it should only be used from window.cpp.
2008-05-10 13:54:20 +00:00
rubidium
89c15ecb23
(svn r13030) -Codechange: do use MallocT instead of ReallocT when 100% sure that the pointer you are allocating to is NULL. Patch by Alberth.
2008-05-10 13:53:11 +00:00
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
2008-05-10 13:46:36 +00:00
rubidium
935434333b
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
2008-05-10 12:30:27 +00:00
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
2008-05-10 08:58:52 +00:00
belugas
e099831210
(svn r13026) -Codechange[FS#1999]: Further Dynamite Tool Unification.(Roujin)
2008-05-10 02:59:52 +00:00
rubidium
68a1d75d9e
(svn r13025) -Codechange: remove the need for two WindowEvents.
2008-05-09 15:27:00 +00:00
rubidium
f438700402
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
2008-05-09 09:29:27 +00:00
peter1138
486172e07f
(svn r13023) -Revert (r1444): Revert changes to multihead engine weight -- the original values were correct.
2008-05-09 07:47:30 +00:00
smatz
5e51833ee5
(svn r13022) -Fix: driver list wasn't freed, replace by statically allocated one
2008-05-08 23:26:17 +00:00
rubidium
2ba05f8987
(svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan.
2008-05-08 22:53:49 +00:00
glx
bc514a7f51
(svn r13020) -Codechange: make industry directory window horizontally resizable and truncate strings
2008-05-08 21:09:21 +00:00
glx
0b37b81956
(svn r13019) -Fix [FS#1997]: silence some more MSVC x64 warnings (michi_cc)
2008-05-08 20:05:32 +00:00
rubidium
ba853fdb0b
(svn r13018) -Codechange: make a class of the LandInfo Window.
2008-05-08 19:26:55 +00:00
smatz
386a3f1d20
(svn r13016) -Codechange: unify the detection if rail catenary should be drawn
2008-05-08 16:48:29 +00:00
rubidium
4a11ebe76f
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
2008-05-08 14:14:16 +00:00
glx
5fda77239e
(svn r13014) -Fix (r13008): mingw revealed some signed/unsigned warnings
2008-05-08 14:04:52 +00:00
rubidium
d7e0dd6e82
(svn r13013) -Fix: GCC 4.3 warning about a clobbering mask due to longjmp. This can't be solved by using exceptions because the longjmp is needed for PNG (C-code) handling.
2008-05-08 13:51:15 +00:00
rubidium
ea218de179
(svn r13012) -Fix (r13011): the PlaceProc that was moved depended on another function...
2008-05-08 13:48:34 +00:00
rubidium
c74ca38970
(svn r13011) -Codechange: move PlaceProc_BuyLand out of rail_gui.cpp to the place where it is used and remove some unneeded globalisations of some other PlaceProc functions.
2008-05-08 13:30:50 +00:00
rubidium
cd3dda5c0c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
2008-05-08 13:29:35 +00:00
rubidium
cabd771fc0
(svn r13009) -Codechange: move more tile highlighting related functions/types to tilehighlight_*.h.
2008-05-08 13:21:55 +00:00
glx
e48a351f8e
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
2008-05-08 13:20:54 +00:00
rubidium
9ed36409c5
(svn r13006) -Codechange: GetMenuItemIndex is only used for the toolbar, so move it to there.
2008-05-08 12:59:47 +00:00
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
2008-05-08 11:50:34 +00:00
rubidium
2eef026fe3
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
2008-05-08 11:31:41 +00:00
bjarni
d3650ecb3a
(svn r13002) -Fix (r13001): [autoreplace] previous fix broke updating of a pointer to the front vehicle in certain cases
...
Now it's updated when it's the front vehicle and it's every time it's the front vehicle and only if it's the front vehicle (nomatter if the replacement works or not)
2008-05-07 23:00:11 +00:00
bjarni
02709df7e3
(svn r13001) -Fix [FS#1994](r12913): [autoreplace] we should stop working on vehicles right away if we fail to replace them and certainly not presume their data is valid
2008-05-07 22:08:20 +00:00
glx
6e6102e20d
(svn r13000) -Fix (r12991): broken win9x compilation
2008-05-07 21:51:13 +00:00
rubidium
19910188fa
(svn r12999) -Fix [FS#1995]: when a Window got deleted on a double click event, we should not send a click event to the now non-existant Window as that causes segfaults.
2008-05-07 21:45:27 +00:00
smatz
3445b8054c
(svn r12995) -Codechange: use std::vector for EngineList instead of C/C++ wrapper for CBlobT
2008-05-07 18:31:29 +00:00
smatz
220bc49731
(svn r12994) -Fix (r12976): another case main toolbar wasn't marked dirty
2008-05-07 18:14:09 +00:00
smatz
c3822e3a90
(svn r12993) -Fix (r11175): list used for sorting GRFs wasn't freed
2008-05-07 17:36:28 +00:00
smatz
0c4715d825
(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
2008-05-07 15:53:58 +00:00
glx
c2c9121307
(svn r12991) -Codechange: removed some unneeded includes
2008-05-07 14:12:20 +00:00
rubidium
694ba37377
(svn r12990) -Fix: silence the redundanct declaration warning when compiling with iconv.
2008-05-07 13:37:53 +00:00
rubidium
cd7c99452f
(svn r12989) -Codechange: move ViewportSign to viewport_type.h.
2008-05-07 13:18:33 +00:00
bjarni
0cfd2baa3c
(svn r12988) -Fix [FS#1992](r12913): [autoreplace] failing to replace a road vehicle could free it's slot without the vehicle knowing it (leading to assert)
2008-05-07 13:11:33 +00:00
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
2008-05-07 13:10:15 +00:00
rubidium
7ccda80b0b
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
2008-05-07 09:07:19 +00:00
bjarni
8fea5a62c9
(svn r12985) -Fix (r12977): [OSX] fixed missing includes in the cocoa files
2008-05-07 08:38:56 +00:00
rubidium
ca4349b517
(svn r12984) -Codechange: some coding style in window.cpp.
2008-05-07 08:27:55 +00:00
belugas
fa8ab829e9
(svn r12983) -Codechange [FS#1987] : Unification of all dynamite tools calls to only one. Thanks to Roujin
2008-05-07 00:04:40 +00:00
smatz
75a87a7266
(svn r12982) -Fix: compiler warning when compiling without asserts
2008-05-06 23:45:25 +00:00
glx
a9d263c459
(svn r12981) -Codechange: remove some useless includes and defines
2008-05-06 23:43:47 +00:00
rubidium
3b9e4f6d17
(svn r12980) -Fix: MorphOS threading support. Patch by Fabien Coeurjoly.
2008-05-06 22:50:55 +00:00
rubidium
822c130b70
(svn r12978) -Codechange: "\\0" is not needed for the MorphOS revision string. Patch by tokai.
2008-05-06 22:41:28 +00:00
rubidium
402a1e24ba
(svn r12977) -Codechange: remove quite some redundant (duplicate) function declarations.
2008-05-06 22:17:12 +00:00
rubidium
9bf519f26b
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
2008-05-06 22:08:18 +00:00
rubidium
e6c944a6c4
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
2008-05-06 21:28:30 +00:00
rubidium
46a0ebe1d9
(svn r12974) -Codechange: check whether loading/saving highscores goes as it should be.
2008-05-06 21:07:47 +00:00
peter1138
c025d7a152
(svn r12973) -Codechange: Rename GRMSpriteEntry to GRFLocation, as it is not necessarily specific to GRM sprites...
2008-05-06 17:24:27 +00:00
glx
780db88e99
(svn r12972) -Fix (r12971): forgot to close a comment
2008-05-06 15:36:55 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
glx
fb938a2cb3
(svn r12970) -Codechange: coding style for some function names
2008-05-06 15:06:19 +00:00
rubidium
fb1db90cc6
(svn r12969) -Codechange: remove a completely pointless file.
2008-05-06 14:24:33 +00:00
maedhros
8da41ec62e
(svn r12968) -Fix: Don't segfault when adding a server if 0.0.0.0 was entered for the address.
2008-05-06 10:31:50 +00:00
glx
7e1ac0ce57
(svn r12967) -Fix (r12966): my lang update script failed
2008-05-05 23:04:24 +00:00
glx
e326a03c4c
(svn r12966) -Update: apply english.txt changes from r12965 to other languages
2008-05-05 22:52:49 +00:00
glx
963dce0d47
(svn r12965) -Codechange: add support for callback 37 in industries directory window
2008-05-05 22:42:06 +00:00
glx
e7678a03cc
(svn r12964) -Codechange: rewrite callback 37 related code so it will be easier to add supported windows
2008-05-05 22:37:40 +00:00
rubidium
50516f2372
(svn r12963) -Fix (r12960): loading some NewGRFs could cause an infinite loop.
2008-05-05 22:35:33 +00:00
smatz
71800aa7c6
(svn r12962) -Fix (r12961): forgot one break
2008-05-05 22:22:12 +00:00
smatz
c9cf1d4cee
(svn r12961) -Codechange: store the type of savegame we are loading in a global variable
2008-05-05 22:03:01 +00:00
rubidium
56e1178dca
(svn r12960) -Codechange: handle return values of (some) file system related functions.
2008-05-05 21:54:05 +00:00
glx
1050f07ed1
(svn r12959) -Fix: don't assume no production when the first produced cargo is invalid in industries directory
2008-05-05 21:09:03 +00:00
peter1138
22aa011b57
(svn r12958) -Codechange: Allocate sprites reserved by GRM in advance of 'Action 1' sprites, giving much less chance of GRM reservation failure if lots of NewGRF sets are loaded.
2008-05-05 19:02:10 +00:00
rubidium
f200fc3b99
(svn r12957) -Codechange: do not misuse snprintf when you just want to copy a string, also use DEBUG instead of fprintf in one case.
2008-05-05 18:27:57 +00:00
belugas
0eab2c07c2
(svn r12956) -Codechange: Code-style application on switch-case aligment
2008-05-05 16:05:36 +00:00
smatz
72120a48c4
(svn r12955) -Fix (r12858): compilation with desync debug was broken
2008-05-05 15:07:09 +00:00
peter1138
4595d2c3b1
(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.
2008-05-05 11:36:43 +00:00
peter1138
57e104f97e
(svn r12952) -Cleanup: Indenting and codestyle
2008-05-05 11:24:58 +00:00
belugas
cdd22af5a1
(svn r12951) -Fix(r9762)[FS#1977): Revert the new difficulty settings of town and industries back to their initial values.
2008-05-05 02:11:12 +00:00
belugas
26f11fd181
(svn r12950) -Fix: two includes is one too much
2008-05-05 02:02:32 +00:00
rubidium
a1e77073fe
(svn r12949) -Fix [FS#1978]: no loading/no unloading orders were 'forgotten' during manual replaces.
2008-05-04 22:57:50 +00:00
rubidium
e6bc8fa3d8
(svn r12948) -Fix [FS#1982]: all vehicles would be available when an original scenario would be played.
2008-05-04 22:38:18 +00:00
glx
9eb498eb53
(svn r12947) -Fix: keep only first 15 bits for non failed callback results
2008-05-04 22:32:25 +00:00
rubidium
a51e32376e
(svn r12946) -Fix: do not allocate the OldNames table when creating a new game as it won't be used anyway.
2008-05-04 22:19:44 +00:00
rubidium
7a85e26268
(svn r12945) -Fix: (small) memory leak when joining/exiting threads.
2008-05-04 22:13:47 +00:00
smatz
297f99e100
(svn r12944) -Codechange: use rev.h instead of externs at many places
2008-05-04 21:53:36 +00:00
rubidium
0b8b5d1f3b
(svn r12943) -Fix: reading/modifying invalid data under some circumstances.
2008-05-04 21:47:36 +00:00
rubidium
762315c47c
(svn r12942) -Fix [FS#1979]: closing some windows caused recursion in the Window deletion causing the reading invalid/freed data which could cause crashes.
2008-05-04 21:36:37 +00:00
rubidium
cb680474c3
(svn r12941) -Codechange: don't access wndproc directly. Patch by Alberth.
2008-05-04 10:05:50 +00:00
bjarni
dbf6e344a4
(svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should include the cargo packets in the vehicle as well
2008-05-04 10:05:35 +00:00
rubidium
8ca1035316
(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.
2008-05-04 09:39:16 +00:00
rubidium
a26b25aecc
(svn r12938) -Codechange: coding style fixes. Patch by Alberth.
2008-05-04 08:56:59 +00:00
rubidium
5b44c68b19
(svn r12937) -Codechange: split allocating and finding the spot to place a window. Patch by Alberth.
2008-05-04 08:49:57 +00:00
rubidium
72eb1f100b
(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
2008-05-04 08:38:21 +00:00
rubidium
d1ddff90d9
(svn r12935) -Fix [FS#1975]: vehicles forget their manual depot order when stopping at a station. Now we just pass through the station without stopping when a vehicle has been given a depot order.
2008-05-02 08:15:36 +00:00
belugas
b49b4f627f
(svn r12934) -Codechange: Before verification of local authority, just make sure airport can physically be built there. Just moving tests
2008-05-02 02:06:57 +00:00
glx
49484eedca
(svn r12933) -Fix: minor errors related to industries accepted/produced cargo
2008-05-01 22:51:53 +00:00
peter1138
3e0b6199c4
(svn r12932) -Fix [FS#1970]: Articulated engines ignored GRF engine overrides.
2008-04-30 17:42:08 +00:00
rubidium
4097d81323
(svn r12930) -Add: build support for NetBSD and HP-UX. Patch by ahoka.
2008-04-30 07:39:46 +00:00
smatz
c76b2be644
(svn r12929) -Fix [FS#1967](r12560): town rating was too often reset to Mediocre
2008-04-29 23:11:55 +00:00
peter1138
a00371c8db
(svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-29 21:31:29 +00:00
rubidium
1d01390fa6
(svn r12921) -Codechange: coding style fixes and documentation updates.
2008-04-29 18:19:29 +00:00
smatz
a870a66877
(svn r12920) -Fix (r12859): town rating was affected even after the test run
2008-04-29 18:08:14 +00:00
smatz
fc60ef874d
(svn r12919) -Fix [FS#1965]: flood road tiles even when there are road works in progress
2008-04-29 16:36:44 +00:00
rubidium
9f3351fed4
(svn r12918) -Fix [FS#1963] (r12679): last airport would always be shown as buildable even when it was not.
2008-04-29 10:26:22 +00:00
peter1138
5ca6fd67fc
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
2008-04-29 07:11:54 +00:00
smatz
868c17a175
(svn r12916) -Fix: let ThreadObject_pthread::IsRunning() behave the same way as ThreadObject_Win32::IsRunning() does
2008-04-28 23:48:45 +00:00
smatz
dd00683a46
(svn r12915) -Fix [FS#1960](r12857): don't initialize Station struct with tile=0, buoys will never change that value
2008-04-28 23:34:23 +00:00
peter1138
a37ee93f8d
(svn r12914) -Fix: Game crash when a spectator/server tried to show an engine with no owner when a NewGRF requested a specific variable.
2008-04-28 11:15:13 +00:00
bjarni
757de2bdf5
(svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
...
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
2008-04-27 20:09:29 +00:00
bjarni
9f5f4e59cd
(svn r12912) -Codechange: overloaded ChangeVehicleViewWindow() so each argument can be either a Vehicle pointer or a VehicleID
2008-04-27 18:05:48 +00:00
peter1138
3f2513b5ac
(svn r12910) -Fix: Report reverse sprite status (FD/FE) to NewGRF for manually toggled vehicles.
2008-04-27 10:19:41 +00:00
smatz
9e1b8b69e3
(svn r12906) -Fix: vehicle groups, engine replacement rules and player/company names were not properly reset/freed after bankrupt (before new player start)
2008-04-26 14:20:39 +00:00
smatz
805e1db332
(svn r12904) -Fix [FS#1953]: remove trams from savegames saved in OTTD without tram support, it is better than to simply crash
2008-04-25 16:33:40 +00:00
rubidium
4e80f3f3b1
(svn r12898) -Codechange: coding style in unmovable_cmd.cpp.
2008-04-25 15:25:28 +00:00
rubidium
1aa7d9faff
(svn r12897) -Codechange: some coding style in station_cmd.cpp.
2008-04-25 15:22:32 +00:00
glx
9d7181abd7
(svn r12895) -Fix: restored Icelandic plural form and removed cases from Brazilian Portuguese (again)
2008-04-25 15:05:08 +00:00
rubidium
f1679bcbb7
(svn r12892) -Fix: too many items in the vehicle toolbars were greyed out.
2008-04-25 06:15:58 +00:00
belugas
bf702602c1
(svn r12875) -Codechange: Use defined const instead of cast magic
2008-04-24 18:30:41 +00:00
belugas
fbeaf0389d
(svn r12874) -Codechange: The closest town is already known. Do not search for it again.
2008-04-24 18:17:53 +00:00
rubidium
91fa34ea11
(svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand that bytes should be cast to ints.
2008-04-24 17:53:45 +00:00
peter1138
f8612ad5b9
(svn r12872) -Codechange: Remove obsolete unused engine list order function
2008-04-24 15:51:29 +00:00
smatz
345f160978
(svn r12870) -Codechange: remove some magic numbers from u.ship.state handling
2008-04-24 13:05:51 +00:00
rubidium
5ac07a2c34
(svn r12863) -Codechange: rewrite GeneratePlayerColour to be better understandable.
2008-04-24 11:11:50 +00:00
smatz
9fc355fca5
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
2008-04-24 09:55:20 +00:00
miham
48eda2b6ef
(svn r12861) -Update: WebTranslator2 update to 2008-04-24 10:49:17
...
brazilian_portuguese - 74 fixed, 2 changed by fukumori (38), tucalipe (38)
bulgarian - 59 fixed by thetitan (59)
catalan - 75 fixed by arnaullv (75)
czech - 70 fixed, 42 changed by Hadez (112)
danish - 46 fixed by MiR (46)
dutch - 75 fixed by habell (75)
estonian - 91 fixed, 33 changed by kristjans (124)
french - 74 fixed, 2 changed by glx (76)
italian - 76 fixed, 9 changed by lorenzodv (85)
latvian - 24 fixed, 39 changed by stripe4 (63)
russian - 86 fixed by Smoky555 (86)
slovak - 3 fixed by lengyel (3)
slovenian - 75 fixed by Necrolyte (75)
spanish - 91 fixed, 2 changed by eusebio (93)
swedish - 72 fixed by ChrillDeVille (72)
traditional_chinese - 82 fixed, 4 changed by xbddc (86)
ukrainian - 76 fixed, 36 changed by mad (112)
2008-04-24 08:53:04 +00:00
peter1138
60eb3c034f
(svn r12860) -Fix [FS#1947]: Train depart animation trigger was not called in some cases.
2008-04-24 07:44:21 +00:00
rubidium
9c675afb91
(svn r12859) -Fix: make the town rating tests use less memory and much quicker; from 13% to unnoticable in the profile in games with lots of towns and lots of very active AIs.
2008-04-23 22:55:11 +00:00
rubidium
739cb53fff
(svn r12858) -Add: small piece of code that can help hunting desyncs. Has to be enabled by --enable-desync-debug=1 though.
2008-04-23 22:17:33 +00:00
rubidium
dce1b33196
(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.
2008-04-23 22:16:41 +00:00
peter1138
10ab24a5f1
(svn r12856) -Fix: Taking r12377 further, ensure that prop 25 is set for all vehicles in the consist before other properties.
2008-04-23 21:55:24 +00:00
rubidium
6939569362
(svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though.
2008-04-23 20:56:08 +00:00
smatz
1ba6e3deeb
(svn r12854) -Codechange: make drawing of rail catenary a bit faster
2008-04-23 20:22:31 +00:00
smatz
459259aeec
(svn r12853) -Fix: catenary on tunnel entrances and middle bridge pieces was drawn twice in some cases
2008-04-23 19:47:23 +00:00
smatz
ccfe024a2a
(svn r12852) -Fix: do not try to draw rail catenary above non-rail station tiles
2008-04-23 19:07:18 +00:00
glx
e3ca91dc15
(svn r12850) -Fix (r12848): compilation was broken for some platforms
2008-04-23 13:36:52 +00:00
peter1138
24cccc8333
(svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering.
2008-04-23 12:03:47 +00:00
peter1138
fff763b5ce
(svn r12847) -Cleanup: Identing and variable scope
2008-04-23 11:57:58 +00:00
rubidium
39a715f1f3
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
2008-04-23 00:16:21 +00:00
rubidium
2d860049a7
(svn r12844) -Fix: the industry tick trigger should only be triggered once every 256 ticks, not every tick... Also bail out of the triggers a little earlier if you know they are not going to happen anyway.
2008-04-23 00:14:49 +00:00
bjarni
501b89b8de
(svn r12843) -Feature [FS#1945]: The autoreplace window is now resizable in both directions
...
The code to open this window is also unified for all vehicle types
2008-04-22 23:16:36 +00:00
glx
46bd824b3e
(svn r12842) -Codechange [FS#1604]: scale message history by map size
2008-04-22 21:18:55 +00:00
peter1138
c5211354a6
(svn r12839) -Codechange: Allocate temporary engine data when loading GRFs as needed instead of statically.
2008-04-22 18:20:41 +00:00
belugas
da134d5a39
(svn r12837) -Codechange: Alignment of widget array
2008-04-22 14:40:09 +00:00
rubidium
845b827fbc
(svn r12836) -Fix: SunOS non-dedicated server compilation.
2008-04-21 23:04:05 +00:00
peter1138
5dcd689f56
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
2008-04-21 20:50:58 +00:00
frosch
173ac52da5
(svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'.
2008-04-21 17:04:17 +00:00
rubidium
5ef8c01ce7
(svn r12819) -Codechange: handle more NewGRFs in the same way as TTDP does it, i.e. testing the low bits for 0xFF or 0 instead of all bits.
2008-04-21 14:33:33 +00:00
rubidium
22140d82c6
(svn r12818) -Codechange: make callbacks 31 and 37 behave like they do in TTDP according to frosch's survey.
2008-04-21 13:45:03 +00:00
rubidium
a40bba8bac
(svn r12817) -Feature: the ability to play NewGRF sounds for industries and stations.
2008-04-21 11:29:01 +00:00
rubidium
2a779a5e10
(svn r12816) -Fix: the cargo count in the performance rating window could be wrong.
2008-04-21 09:27:47 +00:00
rubidium
cea98ea0e6
(svn r12815) -Codechange: reshuffle some variables in the CargoPacket struct saving 4 of 36 bytes with a 32 bit compiler and 8 of 48 bytes on 64 bit compiler per cargo packets. There are generally more cargopackets in game than vehicles.
2008-04-21 09:20:42 +00:00
rubidium
dea4738382
(svn r12814) -Codechange: reshuffle some variables in the Vehicle struct saving 20 bytes with a 32 bit compiler and 32 bytes on 64 bit compiler per vehicle.
2008-04-21 08:35:27 +00:00
rubidium
c332c68170
(svn r12813) -Fix [FS#1943]: the 'last built railtype' got reset too often.
2008-04-21 07:57:51 +00:00
glx
4395bda7b5
(svn r12810) -Codechange: style and useless casts in CmdSetAutoReplace()
2008-04-20 21:49:57 +00:00
peter1138
b418ee5a4c
(svn r12809) -Fix (r1704): Possible out of bounds array access.
2008-04-20 21:38:20 +00:00
glx
f7d3d879c5
(svn r12808) -Fix: enforce autorenew values range in command
...
-Fix: typo in english.txt
2008-04-20 21:36:41 +00:00
rubidium
fccfcd093b
(svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan.
2008-04-20 11:40:33 +00:00
rubidium
b139756e2b
(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpp
2008-04-20 11:12:07 +00:00
rubidium
f55ffd14bd
(svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a uniform naming of the thing instead of using both names for the same thing.
2008-04-20 10:13:54 +00:00
rubidium
181b36ca0b
(svn r12801) -Codechange: remove the dependency of function.h in town_map.h
2008-04-20 08:43:31 +00:00
rubidium
15680e477a
(svn r12800) -Codechange: move the animated tile related functions out of texteff.cpp (it isn't a text effect after all). Also remove a few more functions from functions.
2008-04-20 08:22:59 +00:00
peter1138
4f8409daf6
(svn r12799) -Fix (r12798): Empty for-loop warnings from gcc 4.3+
2008-04-19 23:34:42 +00:00
peter1138
210d757499
(svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes)
2008-04-19 23:19:12 +00:00
bjarni
de015fbf90
(svn r12797) -Codechange: [autoreplace] moved wagon removal to a function of it's own
2008-04-19 22:51:52 +00:00
rubidium
c884d82e46
(svn r12796) -Fix: the dedicated blitter did segfault too, like the null blitter did.
2008-04-19 21:51:05 +00:00
rubidium
0e624275ee
(svn r12795) -Fix [FS#1938]: vehicles could break down during loading and keep loading. The intention of the break down code is not to break down when having zero speed, therefor break downs now do not happen when loading.
2008-04-19 21:23:42 +00:00
bjarni
c360e71e3c
(svn r12794) -Doc: added missing doxygen comment in autoreplace_cmd.cpp
2008-04-19 19:01:57 +00:00
peter1138
4f2c2656e7
(svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln)
2008-04-19 18:03:24 +00:00
bjarni
01549e1574
(svn r12792) -Codechange: [autoreplace] added a function to figure out if a replacement is needed and if so, to which EngineID
...
It's designed to save a bit of CPU time, specially if the replacement isn't buildable (think autorenew of old vehicle)
2008-04-19 17:47:56 +00:00
bjarni
ad3ef0fb26
(svn r12791) -Codechange: [autoreplace] Added a flag parameter (listens for DC_EXEC and DC_QUERY_COST) and included more info when returning CommandCost
...
This allowed cleaning up the code in MaybeReplaceVehicle()
2008-04-19 15:14:20 +00:00
rubidium
752c8d8f2e
(svn r12790) -Codechange: code style fixes. Patch by Alberth.
2008-04-19 13:28:48 +00:00
rubidium
24b5c91039
(svn r12789) -Codechange: rename AssignWindowViewport to InitializeWindowViewport because the viewport is now part of the window struct. Patch by Alberth.
2008-04-19 13:17:19 +00:00
rubidium
1dcf912f06
(svn r12788) -Codechange: unduplicate some vehicle GUI code. Patch by Alberth.
2008-04-19 13:07:37 +00:00
rubidium
c84fe27ca9
(svn r12787) -Documentation: add/fix documentation of some functions. Patch by Alberth.
2008-04-19 13:05:05 +00:00
rubidium
118a680fd3
(svn r12786) -Change: remove more function from functions.h.
2008-04-19 13:04:29 +00:00
rubidium
222988603f
(svn r12785) -Codechange: put all news-type related constants in the same array. Patch by cirdan.
2008-04-19 12:50:02 +00:00
rubidium
161b588631
(svn r12784) -Codechange: handle the asynchronious save 'handlers' in saveload.cpp instead of openttd.cpp.
2008-04-19 10:18:38 +00:00
rubidium
e0722751c6
(svn r12783) -Codechange: do not statically allocate the 'temporary map3 array' in the oldloader.
2008-04-19 08:34:03 +00:00
rubidium
49cfba55bb
(svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore.
2008-04-19 08:21:55 +00:00
rubidium
15242b1784
(svn r12780) -Fix: the null blitter did segfault.
2008-04-18 23:32:10 +00:00
rubidium
dde68e922a
(svn r12779) -Codechange: remove a few constants from openttd.h.
2008-04-18 21:49:38 +00:00
smatz
14dc60c8a1
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
2008-04-18 21:38:36 +00:00
smatz
f32ecbcadb
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
2008-04-18 21:33:21 +00:00
egladil
8e49daf3e1
(svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion.
2008-04-18 21:21:25 +00:00
rubidium
e5eac05c6e
(svn r12773) -Codechange: replace some magic numbers with enums.
2008-04-18 19:26:52 +00:00
rubidium
fb466f4db2
(svn r12772) -Codechange: some vehicle.cpp coding style.
2008-04-18 17:53:06 +00:00
rubidium
7edc9b65c6
(svn r12771) -Codechange: remove more from variables.h.
2008-04-18 16:51:54 +00:00
rubidium
0cecc4af20
(svn r12769) -Codechange: some coding style cleanups.
2008-04-18 15:18:16 +00:00
rubidium
8c2c7c27ea
(svn r12768) -Codechange: move the statusbar GUI to it's own file.
2008-04-18 15:13:45 +00:00
rubidium
dc16b4f2b4
(svn r12767) -Codechange: merge all main toolbar related functions into a single file instead of scattering the functionality over several files.
2008-04-18 15:11:39 +00:00
rubidium
31411d4755
(svn r12766) -Add: sorting by road vehicle/train length. Based on a patch by Sir Bob.
2008-04-18 10:58:11 +00:00
rubidium
1b2773445d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
2008-04-18 10:16:51 +00:00
rubidium
acafc26426
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
2008-04-18 04:54:09 +00:00
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
2008-04-18 04:37:06 +00:00
belugas
6daaf0fc55
(svn r12760) -Fix(r12759): Remove a now useless comment
2008-04-18 03:20:59 +00:00
belugas
8e4b259352
(svn r12759) -Fix(r12358): There is no need to mask callback result for pre-version7 since CBID_INDTILE_SHAPE_CHECK (cb2F) is really 15 bits.
2008-04-18 03:17:22 +00:00
belugas
184ffbb976
(svn r12758) -Fix(r4712, r12745): Use a bool when it's about boolean evaluation. a TileIndex is hardly a bool, of course of course. Thanks for good old MSVC warnings.
2008-04-18 01:35:17 +00:00
rubidium
b1d1a4ac66
(svn r12757) -Codechange: move all cheat related stuff from all over the place to a single location.
2008-04-17 21:21:01 +00:00
smatz
5050ba84fb
(svn r12756) -Cleanup: variable scope and coding style in station*
2008-04-17 20:03:28 +00:00
glx
a2884f0a3c
(svn r12755) -Fix (r12706): aborting map generation was not properly handled
2008-04-17 19:53:13 +00:00
rubidium
02cdf01507
(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
2008-04-17 19:10:30 +00:00
smatz
059e94e355
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
2008-04-17 18:24:45 +00:00
rubidium
e098b50379
(svn r12752) -Codechange: replace some magic constants in player_gui.cpp. Patch by Yexo.
2008-04-17 18:12:53 +00:00
rubidium
00f0bf98ee
(svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory.
2008-04-17 11:47:22 +00:00
rubidium
5796fb3b34
(svn r12750) -Fix (r12749): viewport for industry new messages was not shown properly.
2008-04-17 11:25:12 +00:00
rubidium
c31287206d
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
2008-04-17 09:42:44 +00:00
peter1138
0cd14f9ebb
(svn r12747) -Codechange: Add varaction retrieval of station animation frame
2008-04-17 06:53:52 +00:00
peter1138
b2095f37ac
(svn r12746) -Codechange: Add map storage for station animation frame
2008-04-17 06:52:56 +00:00
smatz
9488db56d4
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
2008-04-17 00:44:20 +00:00
rubidium
1367c90161
(svn r12741) -Codechange: do not allocate the viewport drawer each time on the stack, but only once and reuse this.
2008-04-16 21:06:21 +00:00
rubidium
4703eb2036
(svn r12740) -Codechange: use a vector instead of allocating memory in a byte array for ChildScreenSpriteToDraw.
2008-04-16 20:39:35 +00:00
rubidium
5254131d9c
(svn r12739) -Codechange: use a vector instead of allocating memory in a byte array for ParentSpriteToDraw.
2008-04-16 20:01:04 +00:00
smatz
1f22f47b3b
(svn r12738) -Fix (r12736): some sprites could be left unsorted
2008-04-16 19:36:30 +00:00
peter1138
7957bdde13
(svn r12737) -Codechange: Replace vector with a cut down class to allocate space as necessary. This avoids copying data around for vector's push_back() function.
2008-04-16 19:01:09 +00:00
rubidium
208dd15c91
(svn r12736) -Codechange: a (small) touch of coding style in viewport.cpp.
2008-04-16 18:28:05 +00:00
rubidium
6ab158f9d9
(svn r12735) -Codechange: use a vector instead of allocating memory in a byte array for TileSpriteToDraw.
2008-04-16 14:18:15 +00:00
rubidium
0c9120a882
(svn r12734) -Codechange: use a vector instead of allocating memory in a big byte array for StringSpriteToDraw.
2008-04-16 14:15:00 +00:00
belugas
8a669f04cd
(svn r12733) -Codechange: Merge two more Widgets arrays (town views ) into one.
2008-04-16 03:05:56 +00:00
smatz
dccf5b4509
(svn r12731) -Fix (r12726): copying a 16bit array into 32bit wouldn't work
2008-04-15 23:07:06 +00:00
rubidium
9d3a08523a
(svn r12726) -Fix [FS#1877]: overflow causing strange building behaviour in towns.
2008-04-15 22:27:28 +00:00
frosch
9346e067f3
(svn r12717) -Fix (r11107): Check the TILE_NOT_SLOPED flag of the _north_ tile of multi-tile houses to decide if autoslope is allowed.
2008-04-15 13:10:01 +00:00
frosch
7ba1d9076f
(svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs.
2008-04-15 12:25:35 +00:00
rubidium
fd38b3f850
(svn r12714) -Fix [FS#1904]: do not move windows below the toolbar on resizes unless they would go behind the toolbar.
2008-04-14 23:26:31 +00:00
rubidium
2152e1c420
(svn r12713) -Fix: misleading comment. Patch by Yexo.
2008-04-14 21:49:13 +00:00
glx
3a84a74f4d
(svn r12711) -Codechange: remove unneeded loops
2008-04-14 20:48:17 +00:00
rubidium
172237e326
(svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo.
2008-04-14 20:31:21 +00:00
glx
62c178f326
(svn r12708) -Fix (FS#1914): increase default sound buffer size only for vista
2008-04-14 20:14:32 +00:00
rubidium
be7e36e0b9
(svn r12707) -Fix: do not crash very hard on unrecognised savegames, just go back to the intro menu instead.
2008-04-14 20:00:28 +00:00
rubidium
12188e7a5d
(svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable.
2008-04-14 19:54:33 +00:00
belugas
a8008db23d
(svn r12705) -Codechange: enumification of some more widgets
2008-04-14 17:50:15 +00:00
belugas
8418bc5050
(svn r12704) -Codechange: code style cleanup, mostly switch case alignment
2008-04-14 17:06:36 +00:00
rubidium
fc1f32a693
(svn r12701) -Codechange: do not explicitly number a widget enum because that causes a big diff when adding something.
2008-04-14 13:23:16 +00:00
maedhros
c0fbfd03ac
(svn r12700) -Cleanup (r12699): Remove an unused string.
2008-04-14 12:42:01 +00:00
maedhros
1f59821020
(svn r12699) -Codechange: Unify the order drawing code for orders and timetables.
2008-04-14 12:40:09 +00:00
rubidium
14b307a621
(svn r12698) -Codechange: skip orders to stations that do not have a train part anymore, just like is done for road vehicles and ships.
2008-04-14 07:08:43 +00:00
rubidium
304cb0e1e2
(svn r12697) -Codechange: give signs_gui.cpp a touch of coding style.
2008-04-13 22:25:18 +00:00
rubidium
4f0bfa91ab
(svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems.
2008-04-13 19:46:26 +00:00
rubidium
9a73b698d4
(svn r12695) -Codechange: only allocate window structs when needed. Based on a patch by Alberth.
2008-04-13 19:25:14 +00:00
rubidium
04138ddffc
(svn r12694) -Fix: do not call the mouse over callback on already deleted windows.
2008-04-13 19:06:30 +00:00
rubidium
2310557716
(svn r12693) -Documentation: add some documentation to some window related stuff. Based on a patch by Albert.
2008-04-13 19:01:26 +00:00
rubidium
87ddcb0d5a
(svn r12692) -Codechange: swap to functions to remove a function declaration.
2008-04-13 18:59:32 +00:00
glx
668e218600
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
2008-04-13 17:59:43 +00:00
smatz
a5c456e75e
(svn r12690) -Cleanup: remove unused table from tgp.cpp
2008-04-13 17:27:36 +00:00
rubidium
e8ee93b593
(svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles.
2008-04-13 16:54:19 +00:00
rubidium
145ea54474
(svn r12688) -Change: make default non-stop for depot/waypoint orders the same as for stations.
2008-04-13 16:50:55 +00:00
rubidium
af3723e217
(svn r12687) -Change: show when a vehicle is actually leaving the station instead of loading/unloading.
2008-04-13 16:48:28 +00:00
glx
5e2a5953a4
(svn r12686) -Fix: MSVC signed/unsigned warning
2008-04-13 15:07:36 +00:00
smatz
305dc1001b
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
2008-04-13 14:19:08 +00:00
rubidium
e1ab9c2eea
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
2008-04-13 11:35:57 +00:00
rubidium
d7bae069e1
(svn r12683) -Fix [FS#1906]: in some cases a news messages would not be shown.
2008-04-13 11:15:48 +00:00
rubidium
372830b731
(svn r12682) -Fix [FS#1920]: removing road pieces from a town gave you twice the intended penalty.
2008-04-13 10:32:29 +00:00
rubidium
9349767e1d
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
2008-04-13 10:26:39 +00:00
belugas
604c5bbfb7
(svn r12679) -Codechange : a little bit of widget enumification
2008-04-13 01:51:12 +00:00
rubidium
ed43ffe435
(svn r12678) -Fix [FS#1918]: when a road vehicle has a tram only stop multiple times in a row in it's orders, only the first one would be skipped.
2008-04-12 22:40:56 +00:00
peter1138
a3e2d8f577
(svn r12676) -Codechange: Reinstate colour selection buses, absent since r6455.
2008-04-12 22:19:34 +00:00
peter1138
447a31b702
(svn r12675) -Codechange: Add support for custom drawing of drop down list items.
2008-04-12 22:12:27 +00:00
peter1138
a45c1d45e5
(svn r12674) -Fix [FS#1902]: Colour remaps on station sprites only worked for company colours.
2008-04-12 22:11:21 +00:00
peter1138
711909fa0c
(svn r12672) -Codechange: Add support for variably-sized drop down list items.
2008-04-12 20:32:18 +00:00
smatz
f44aa5e088
(svn r12671) -Fix (r12644): orders window of competitors' vehicles was missing a resizebox
2008-04-12 20:15:57 +00:00
rubidium
ed250cc7b5
(svn r12670) -Add: unconditional/always order 'jump/skip' variable.
2008-04-12 13:07:25 +00:00
rubidium
8c89250f58
(svn r12669) -Fix (r12667): crash when a vehicle has never been to a station and the load percentage conditional variable is evaluated.
2008-04-12 12:51:16 +00:00
rubidium
8410bff078
(svn r12668) -Fix (12667): swapping of variables went wrong.
2008-04-12 12:19:53 +00:00
rubidium
ac94b6384b
(svn r12667) -Feature: conditional 'skip/jump' orders.
2008-04-12 11:58:19 +00:00
rubidium
04b9600920
(svn r12666) -Fix: the time table GUI did not show some data in the correct manner.
2008-04-12 11:15:25 +00:00
rubidium
e9014c99b3
(svn r12665) -Codechange: make the internal speed <-> display speed conversions available to a bigger part of the code.
2008-04-12 10:00:52 +00:00
rubidium
8226c92c8a
(svn r12664) -Codechange: do not force the 'color' pointer to be non-NULL when trying to get the load percentage.
2008-04-12 09:59:58 +00:00
rubidium
00d23c57b3
(svn r12663) -Codechange: move the definition from 'order_d' to a more appropriate place and do not misuse it for the time table GUI.
2008-04-11 21:19:03 +00:00
belugas
02a907f306
(svn r12662) -Codechange: Comment-code style application
2008-04-11 18:00:51 +00:00
rubidium
cebe2001ba
(svn r12661) -Add: ability to send a vehicle (using default orders) to the nearest depot.
2008-04-11 15:58:46 +00:00
rubidium
3919c30c2d
(svn r12660) -Codechange: make the creation of depot order strings a little more modular (instead of causing a string explosion).
2008-04-11 14:27:18 +00:00
rubidium
00051b2721
(svn r12659) -Cleanup: some style cleanups in vehicle.cpp.
2008-04-11 13:19:44 +00:00
rubidium
570519d79b
(svn r12658) -Codechange: unify a vast portion of the CmdSend<VehicleType>ToDepot commands.
2008-04-11 08:40:10 +00:00
rubidium
62bdc381e7
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
2008-04-11 08:14:43 +00:00
rubidium
3a0cb23548
(svn r12656) -Fix: tooltips for some order buttons are outdated/incorrect.
2008-04-10 22:18:33 +00:00
rubidium
d781fc7cc9
(svn r12655) -Change: show the current state in the drop down 'buttons'.
2008-04-10 22:17:06 +00:00
rubidium
5d6ef7bc6e
(svn r12654) -Codechange: remove some unneeded right click handling due to the splitting of the load/refit button.
2008-04-10 22:07:24 +00:00
rubidium
31f982f1f9
(svn r12653) -Codechange: disable load/unload dropdowns when there is a 'via' non-stop order to emphasize that loading/unloading will not be done.
2008-04-10 17:52:48 +00:00
rubidium
ba0a5814c2
(svn r12652) -Codechange: rework the order GUI a little more to make it a little more clear that 'transfer' is just an unload type.
2008-04-10 17:23:51 +00:00
peter1138
63116691a9
(svn r12651) -Fix (r12644) [FS#1915]: Dropdown widget width should be one pixel less than window width, not one more.
2008-04-10 11:59:18 +00:00
rubidium
6379c30d26
(svn r12650) -Feature: ability to force a vehicle to not load at a station.
...
-Feature: ability to force a vehicle to not unload at a station.
2008-04-10 10:18:03 +00:00
rubidium
3974bf2199
(svn r12649) -Fix: refit orders not being shown.
...
-Fix: unusable non-stop orders shown for waypoints and depots.
2008-04-10 10:02:15 +00:00
rubidium
5992dad01f
(svn r12648) -Feature: allow four different non-stop types in a single game instead of two. The "TTDP compatible order" setting now only sets the default behaviour of new trains.
...
-Feature: allow three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting.
2008-04-10 08:30:15 +00:00
belugas
fa1359ebc6
(svn r12647) -Codechange: Ooops... Too fast on the job... forgot to indent 3 lines
2008-04-10 02:23:38 +00:00
belugas
ccd49d81a8
(svn r12646) -Codechange: another run of code-style cleanup
2008-04-10 02:14:14 +00:00
belugas
f484b2e1c7
(svn r12645) -Codechange: a bit of code-style cleanup
2008-04-10 02:10:26 +00:00
rubidium
2ac6af4e48
(svn r12644) -Codechange: rework the order gui a little to prepare it for some future changes.
2008-04-09 23:00:12 +00:00
rubidium
c9e9e6005b
(svn r12643) -Codechange: be more explicit about the orders a vehicle has (non stop and full load are ambiguous and depend on some patch settings).
2008-04-09 22:01:23 +00:00
smatz
e075ade119
(svn r12642) -Fix: remove buggy buoys at tile 0 from old TTDP savegames
2008-04-09 21:33:36 +00:00
rubidium
70f3413a36
(svn r12641) -Codechange: do not use the same button for two completely distinct tasks, just make an extra button for it and hide them when not needed.
2008-04-09 19:52:33 +00:00
rubidium
82155367f6
(svn r12640) -Codechange: let GetLoadType make a difference between full load and full load any based on the patch setting instead of using the patch setting directly.
2008-04-09 18:26:19 +00:00
rubidium
d178345947
(svn r12639) -Fix: order window was not marked dirty on changed orders.
2008-04-09 17:48:22 +00:00
rubidium
55f0d01235
(svn r12638) -Codechange: give order_gui.cpp a touch of coding style.
2008-04-09 16:16:04 +00:00
rubidium
ab7b05da50
(svn r12637) -Fix [FS#1913]: possible NULL pointer dereference when reading some NewGRF data.
2008-04-09 14:05:50 +00:00
rubidium
c41624bb94
(svn r12636) -Codechange: make CmdModifyOrder a little more flexible and remove 'hack' that used the full load flag to set the service if needed flag.
2008-04-09 12:46:43 +00:00
belugas
caa3b659b0
(svn r12635) -Codechange: a bit of a code-style cleanup
2008-04-09 02:16:04 +00:00
belugas
25e5e5b1a9
(svn r12634) -Feature: Financial and Player Selection Face windows are now remembering their position when toggling sizes
2008-04-09 02:02:39 +00:00
rubidium
d8f88f06d4
(svn r12633) -Fix: could not make a (go-to) depot order.
2008-04-08 22:41:14 +00:00
smatz
627322b9f7
(svn r12632) -Fix (r12547): with invisible catenary, trams were be drawn over a bridge
2008-04-08 21:28:47 +00:00
rubidium
3abf0eea7c
(svn r12631) -Fix [FS#1911]: sometimes aircraft couldn't find their way to their depot.
2008-04-08 18:53:25 +00:00
maedhros
85e5053b68
(svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders.
2008-04-08 16:15:31 +00:00
frosch
96700d5605
(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
...
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
2008-04-08 15:48:32 +00:00
rubidium
71a2dd21fd
(svn r12628) -Fix: TTDP compatible non-stop wasn't handled properly.
2008-04-08 13:32:44 +00:00
peter1138
310170364f
(svn r12624) -Codechange: Make drawing of catenary an attribute of rail types, instead of deciding by the rail type directly.
2008-04-08 07:19:29 +00:00
rubidium
b0ca38e20a
(svn r12622) -Fix: infinite loop in case your compiler decides that enums are unsigned by default. Patch by Dominik.
2008-04-07 22:15:31 +00:00
rubidium
d31dee2717
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
2008-04-07 21:02:27 +00:00
rubidium
ee02dd7dad
(svn r12619) -Codechange: lots of documentation about window related stuff. Patch by Alberth.
2008-04-07 20:28:58 +00:00
rubidium
f04ecd2e4a
(svn r12618) -Codechange: as load and unload type are now split, some case statements got ugly.
2008-04-07 20:18:51 +00:00
rubidium
d74c6ffb62
(svn r12617) -Codechange: add type safety to the Order's load and unload types.
2008-04-07 20:03:46 +00:00
smatz
42a66ef990
(svn r12616) -Codechange: r12591 didn't work as expected for NDS, move one function back to cpp
2008-04-07 20:02:36 +00:00
rubidium
f1cd7ef5ee
(svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness.
2008-04-07 19:18:56 +00:00
belugas
45165fe075
(svn r12609) -Codechange: Remove wrong comments and give more comments on the drawing part of subsidies
2008-04-07 17:02:39 +00:00
rubidium
77dca1f023
(svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order.
2008-04-07 15:04:00 +00:00
smatz
ac389e16d2
(svn r12605) -Cleanup: variable scope and coding style in train*
2008-04-07 12:36:50 +00:00
rubidium
f46ae97d8e
(svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively.
2008-04-07 11:45:53 +00:00
rubidium
c57a1d74c3
(svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere.
2008-04-07 08:59:04 +00:00
smatz
6af1fb2bdd
(svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining
2008-04-06 23:49:45 +00:00