Commit Graph

3309 Commits

Author SHA1 Message Date
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